Ways to get Device handler

cliffordcheung

Newcomer
Joined
Jun 18, 2003
Messages
2
Location
Singapore
Hi all,

I'm required to write a pgm that can send standard UFI commands to USB removable flash storage device thru DeviceIOControl() in both Win2k and WinXP. This require me to obtain the correct device handler and I did this using CreateFile(). All works well until I logged in as a limited user, or in fact as any other user other than admin.

Is there a way that I can still obtain the handler to complete the DeviceIOControl() operation or other alternative methods to communicate with the device when I don't have admin priviledges?

Thank you for your advice and help.

Regards,
Clifford
 
When I use CreateFile(), I can't get a handler back from the function when I m not an admin. But if I were an admin, I can get the handler with the same function.

The function will return INVALID_HANDLE_VALUE...

So do you have any idea to get a device handler from other function(s) instead of CreateFile()

Thanks for your help.

Regards,
Clifford
 
Back
Top