草庐IT

lpszVolumeMountPoint

全部标签

windows - 获取特定驱动器的 GUID

我想找出特定驱动器盘符的Drive-GUID。我有以下代码:FunctionGetVolumeNameForVolumeMountPoint(lpszVolumeMountPoint:LPCTSTR;lpszVolumeName:LPTSTR;cchBufferLength:DWORD):BOOL;stdcall;external'kernel32.dll'name'GetVolumeNameForVolumeMountPointW';procedureTForm1.Button1Click(Sender:TObject);varBuffer:array[0..50]ofAnsiCha