- Device Object Security Group Policy
- Posted by mbenetti on July 13th, 2005
I need to get a hardware disk id.
I use
CreateFile (\\\\.\\PhysicalDrive0",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, 0, NULL);
and DeviceIoControl (hPhysicalDriveIOCTL, DFP_GET_VERSION....)
In several server windows domain it works correctly with normal user rights,
but I found with some windows domain that it work only if have
administrator rights. I must use it without administrator rights. I suppose
that this depends on group policy setting, - is that true? Is it possible
to give via group policy to PhysicalDrive normal user rights?
I found the utility WINOBJ.EXE. With this I can change permissions to
PhysicalDrive0 but when I had to reboot the PC the permission went back to
original state.
I thank you in advance fro your kind attention and cooperation.
Best regards,
Nicola Micheli
nmicheli@gsttn.it
Voice Developer
- Posted by Maxim S. Shatskih on July 13th, 2005
Try extracting it from the PnP registry using SetupDi calls. They will
possibly work for non-admin.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"mbenetti" <nmicheli@gsttn.it> wrote in message
news
CEAAF90-4FF0-402B-B1BA-DC5EF6058E2D@microsoft.com...
- Posted by James Antognini [MSFT] on July 14th, 2005
Yes, this can be done. Part of the problem is to determine which PnP entry
to modify.
--
James Antognini
Windows DDK Support
This posting is provided "AS IS" with no warranties, and confers no rights.
"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:OrVj0h$hFHA.1252@TK2MSFTNGP09.phx.gbl...
- Object-group help on PIX 501 (Routers) by Ian McKellan
- Group policy problem related to client-side security extension (Security & Administration) by Rob Commarota
- How to put real device object into control object's device extensi (Drivers) by Robert
- Dtermining Security Attributes of a Device Object!!! (Drivers) by Subodh Radheshyam Gupta
- access range ? Via object group ? (Routers) by barret bonden

