Who knows USB driver in WinCE?
Posted on 2000-03-09
I am converting the usbmouse.dll into my own driver. When I study the codes, I can't understand the following codes.
In the init routine,
m_hThread = CreateThread(0, 0, MouseThreadStub, this, 0, NULL);
ULONG CALLBACK CD12::MouseThreadStub(PVOID context)
CD12 * pMouse = (CD12 *)context;
And it will call the MouseThread routine. My question is,
why doesn't it call MouseThread directly in CreateThread? Instead, it call a stub routine, in this routine, it invoke the MouseThread?
If I don't make it clear, Let me know