I have a utility to create and restore copies of flash disks. Im using CreateFile("\\.\PhysicalDriveX", ...)
for this inclusive locking and unmounting the current volumes on this device. It is focused on windows 7 and I'm using .Net4.0 and C# for this (I do a DllImport of the winapi-calls, so it should not matter).
On my development pc, it is working as a regular user for external drives (USB-sticks, flash disks, ...). On a customer machine (also windows7), it does not. It needs to be run as administrator. To make bad things worse, I do not have access to the customer machine.
I'd like to run the utility without evelated access rights (this triggers other bugs) but I can start other processes evelated. Does anyone have an advice, which access rights I do have to check/ alter? At best, with a hint to the right WinAPI-function ;)