I am developing a Visual C (6.0) DLL, (pure C without MFC) to be called by a Visual Basic main program for keyboard and mouse activities tracking to generate random number.

Can I use SetWindowsHookEx to achieve this?
Is there any complete source samples for this case?
Anyone can help explain the THREAD/INSTANCE and how it is structured in my case?

Thanks a lot.