cliffordcheung Posted June 18, 2003 Posted June 18, 2003 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 Quote
*Gurus* Derek Stone Posted June 18, 2003 *Gurus* Posted June 18, 2003 What exceptions are being thrown, if any? What exactly isn't working? Quote Posting Guidelines
cliffordcheung Posted June 19, 2003 Author Posted June 19, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.