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.
handle
About this tag
The handle tag on WindowsForum.com covers discussions about Windows file and device handles, including issues with opening handles to storage devices using the CreateFile function, enumerating storage devices, and handle leaks in COM clients or the Perflib.lib component. Topics include handle management in C/C++ code, network file operations where renaming opens new handles, and troubleshooting handle leaks on Windows 7, Server 2008 R2, and other versions. The content is technical, focusing on Windows API usage, kernel-mode vs. user-mode programming, and debugging handle-related problems in enterprise and development contexts.
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 trying to build a list of storage devices for this particular section of code found on MSDN page:
https://docs.microsoft.com/en-us/windows-hardware/drivers/storage/upgrading-firmware-for-an-nvme-device
typedef struct _DEVICE_LIST {
HANDLE Handle...
I have a folder present in windows , which i am mounting from mac side using smb. Into this mounted location i'm trying to write a new file over the network.
After writing the data into the file , the handle is closed.
Now i need to rename the file over network from mac side . So for that...
api
computer management
data transfer
delete
error handling
file access
file management
file opening
file operations
file system
handle
mac
mounting
network
permissions
process explorer
process monitor
rename
smb
windows