Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...