createfile

  1. E

    Windows 10 Cannot Create Handle to Storage Device Using CreateFile Function

    I cannot open a handle to any of my storage devices. 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...
  2. G

    Windows 8.1 CRC error reading volume.

    I am using CreateFile to open a snapshot volume, and ReadFile to read from it. On one system I had an attempt to read 1 mb fail with a CRC error. As I understand it, the drive should be doing its own bad sector mapping, but apparently it's not. I know that NTFS has bad sector handling, does...
  3. C

    Windows 7 win 7 x64 trouble

    Every time I create a program with masm and use the CreateFile api it always fails unless I use read access rights. Even some downloaded programs file when they hit CreateFile on my computer. I can usually get around it by using xp compatibility mode and the CreateFile is redirected to...
  4. C

    Windows 7 CreateFile failing on Com ports greater than 9

    Hi ALl, Searching the forum didn't turn up anything relevant, so here goes. I've got an MFC C++ application that uses CreateFile() to open a bluetooth device mapped to a virtual com port, and it isn't working on Windows 7 for com ports greater than 9. In fact, specifying the com port as...
Back
Top