Is it possible to use RegisterDeviceNotification() for a system drive, with UAC enabled? It works perfectly without UAC, but with UAC CreateFile() fails with Access Denied.
Here is how CreateFile is called:
aHandle:=CreateFile(PChar(sDevice), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
Is there a way to adjust CreateFile() parameters to just get minimum read permissions for the drive, or is it not possible without Administrator privileges at all?
Thanks in advance.