ExylonFiber
Well-Known Member
- Joined
- Apr 25, 2020
I cannot open a handle to any of my storage devices.
I also tried copying the full path from WinObj: \GLOBAL??\PhysicalDrive0 and \\.\PhysicalDisk0 and \\\\?\\PhysicalDisk0
I also tried all CreateFile Variants (CreateFile, CreateFileA, CreateFileW)
What the heck is going on with it here?
Does it have to be a Kernel Mode Driver project in Visual Studio? CPP or C?
Any help would be much appreciated as I have read the documentation and answers on forums very carefully to be sure I am doing this right.
Thank you,
ExylonFiber (Xylianth)
Code:
HANDLE h = CreateFile(L"\\\\.\\PhysicalDisk0", GENERIC_READ | GENERIC_WRITE, FILE_READ_ACCESS | FILE_WRITE_ACCESS,
0, OPEN_EXISTING, 0, 0);
I also tried copying the full path from WinObj: \GLOBAL??\PhysicalDrive0 and \\.\PhysicalDisk0 and \\\\?\\PhysicalDisk0
I also tried all CreateFile Variants (CreateFile, CreateFileA, CreateFileW)
What the heck is going on with it here?
Does it have to be a Kernel Mode Driver project in Visual Studio? CPP or C?
Any help would be much appreciated as I have read the documentation and answers on forums very carefully to be sure I am doing this right.
Thank you,
ExylonFiber (Xylianth)