Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

how to get the device handler from volume name?

$
0
0

I build a program that directly interact with USB( In my case, volume is 'G')

So CreateFile,ReadFile,WriteFile must be used to build my program...

But volume name is resolved by users, So it should be variables....

HANDLE WINAPI CreateFile( _In_      LPCTSTR lpFileName, _In_      DWORD dwDesiredAccess, _In_      DWORD dwShareMode, _In_opt_  LPSECURITY_ATTRIBUTES lpSecurityAttributes, _In_      DWORD dwCreationDisposition, _In_      DWORD dwFlagsAndAttributes, _In_opt_  HANDLE hTemplateFile );

onyl 'lpFileName' wasn't resolved

If you can give me some advice, tip, any help, please tell me somethings



 

Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>