Is it possible to capture plugging/unplugging events of Devices in WMI while the computer is ON



hello,
We wanted to know whether it is possible to capture events
like if a keyboard is removed while the computer is still ON. We tried
out a couple of classes like Win32_Keyboard (used C#) , but it gave
only static information i.e eventhough the keyboard was disconnected
the Win32_Keyboard class showed that it is connected.We also tried to
use some of the Event classes like Win32_DeviceChangeEvent but this
class also works for only USB devices like pendrives. Actually we are
using PS/2 keyboard and Mouse. Does WMI support the Events generated
by PS/2 devices?
We are also confused about a fact that, whether
plugging and unplugging of a Keyboard is termed as Plug and Play? or
is it called as Hot plugging? If one removes a Keyboard or a mouse
while the Computer is still ON, does the Windows Operating System
recieve some Hardware Event, if it gets such an event from where can
we get the details of such an Event.
.



Relevant Pages

  • Re: USB device removal while in hibernate crashes system after res
    ... The wired apple keyboard is the ... hibernate saves the pre-shutdown/power off state and restores ... if XP expects to see the Apple keyboard ... USB devices are supposed to be enumerated. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Motherboard failure?
    ... No mouse or keyboard. ... >> the computer multiple times and still nothing. ... >> USB devices are working now. ... My relatives. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: How to dynamically get the info about the presence of keyboard & mouse
    ... presence of a keyboard ... Note that plugging or unplugging a PS/2 keyboard or PS/2 mouse is not a ...
    (microsoft.public.vc.mfc)
  • Re: Mouse and Keyboard do not Respond after install of Service Pack 2
    ... Make sure that USB devices are being recognized during the boot in BIOS. ... My daughter recently had to reinstall Windows XP which then required her to ... After a few failed attempts the Service Pack download seemed to be ... On restart on reaching the login page both the Mouse and Keyboard are frozen ...
    (microsoft.public.windowsxp.general)
  • Re: [linux-usb-devel] Re: USB troubles in rc2
    ... > USB devices it boots, but when I plug my keyboard in, nothing works ... and EHCI under light testing (which included a keyboard). ... "dmesg" output showing usb init ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)