Hi Blake Coverett thanks for your reply . My english writing is very bad sorry. i want unplug a mouse from computer and turn on it , then after loading the windowsxp , plug in the PS/2 mouse and open it's port and read its data bits . please more help me . I guess that RegisterRawInputDevices can help me , but I can't findout it . If possible for you help me more. :rose::rose::rose: