You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
createfile
About this tag
The CreateFile function is a core Windows API used for opening handles to files, devices, volumes, and COM ports. Discussions on WindowsForum.com cover common issues such as failing to open physical drives or COM ports above COM9, permission errors when creating files with specific access rights, and CRC errors when reading volume snapshots. Users also explore workarounds like using XP compatibility mode or manifest elevation files. Topics include Python file permission handling, MASM assembly programming, and MFC C++ applications. Troubleshooting often involves adjusting access flags, using correct device paths like \\.\PhysicalDisk0, or handling legacy compatibility.
What is the best way to read a files owner and permissions, create a new file then apply those permissions without using the subprocess method or command line icacls etc.
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...
access
c++
code snippet
createfile
data access
diagnostics
disk
error
file access
file management
handle
kernel-mode
programming help
storage devices
visual studio
windows api
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...
bad sectors
crc error
createfile
data integrity
disk management
drive issues
error handling
file level
file system
ntfs
operating system
read operations
readfile
storage
system issues
volume management
volume snapshot
windows
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...
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...
access violation
bluetooth
c++
com port
compatibility
createfile
debugging
development
device management
error handling
mfc
programming
sdk
software issues
threading issues
user support
virtual com
windows 7
workaround