i want to write one c program that check whether usb mouse is installed or not in pc? can anyone help me how can i start?
Printable View
i want to write one c program that check whether usb mouse is installed or not in pc? can anyone help me how can i start?
If you just want to know whether any mouse is installed (as opposed to specifically a USB mouse) then you can use
See http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspxCode:bool IsMouse()
{
return GetSystemMetrics(SM_CMOUSEBUTTONS) > 0;
}