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.
-
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...- ExylonFiber
- Thread
- 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
- Replies: 5
- Forum: Programming and Scripting
-
E
Windows 10 How to enumerate Storage Devices
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...- ExylonFiber
- Thread
- buffering code device list drivers enumeration firmware handle information msdn nvme storage adapter storage devices
- Replies: 5
- Forum: Programming and Scripting
-
V
Windows 10 stdlib rename api opening new handle when trying to write over network to mounted location
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...- viveklord100
- Thread
- api computer management data transfer delete error handling file access file management file opening file operations file system handle mac mounting network process explorer process monitor rename smb windows
- Replies: 3
- Forum: Windows Networking