Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi,

I have my virtual disk driver running under windows xp for success but just only for Administrator account. When i try to access disk drive (m:) under other account it is unavaible. Disk device is created with IoCreateDeviceSecure:
RtlInitUnicodeString(&sddl, _T("D:P(A;;GA;;;SY)(A;;GA;;;LS)(A;;GA;;;BA)(A;;GA;;;BU)(A;;GA;;;WD)(A;;GA;;;RC)(A;;GA;;;AU)(A;;GA;;;BG)(A;;GA;;;IU)"));
// here i try to list all and give access to all



    status = IoCreateDeviceSecure(
                 DriverObject,
                 sizeof(DEVICE_EXTENSION),
                 &device_name,
                 DeviceType,
                 FILE_DEVICE_SECURE_OPEN | FILE_REMOVABLE_MEDIA,
                 FALSE,
                 &sddl,
                 NULL,
                 &device_object
             );
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900