Re: How to eject removable devices programmatically?
- From: Uwe Sieber <mail@xxxxxxxxxxxxx>
- Date: Sun, 14 Jan 2007 16:28:42 +0100
Pavel A. wrote:
"Uwe Sieber" wrote:
....It uses CM_Query_And_Remove_SubTree to remove the USB device.
But this function requires admin previleges while
CM_Request_Device_Eject works without. No idea why.
Maybe this is controlled by a Local/Group policy "Devices: allow format and eject removable media"
Just tried it: Doesn't help. It also doesn't help for
IOCTL_STORAGE_EJECT_MEDIA because there seems to be
no way to get the required handle to the storage volume.
Uwe
.
- References:
- Re: How to eject removable devices programmatically?
- From: Uwe Sieber
- Re: How to eject removable devices programmatically?
- Prev by Date: Re: How to eject removable devices programmatically?
- Next by Date: getting a thread's state and CPU utilization
- Previous by thread: Re: How to eject removable devices programmatically?
- Next by thread: RE: Custom GINA logon failing for Remote Desktop sessions
- Index(es):
Relevant Pages
|