How to Get Device Name?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
So in my application, I am working with a HANDLE that is returned from CreateFile that opens up a physical or logical device. Is it possible to obtain the drive letter or physical number from just the handle? Ive tried the FileMapping method but
it doesnt seem to work and I havent really found anything from DeviceIoControl, unless I passed over something...

View the full article
 
Back
Top