-
I'm having difficulty in detecting if the mouse/keyboard
are pulled out from the CPU. I want to prompt a message
if someone pulled out any one of the devices from the CPU.
I tried few API calls but they are only checking if the mouse is installed or not and not checking if the mouse itself is removed from the CPU.
Please help.
Thanx guys.
-
Erm, I'm sorry, but that's not possible. If there IS a method for detecting the absence of a mouse, it must be done through a low-level device driver that can directly access the hardware. In Windows 95, device drivers are 16-bit linear executables, and in windows NT, they are 32-bit portable executables with certain exported functions. Visual Basic is incapable of producing either.