LoginSignup
0
0

More than 5 years have passed since last update.

ボリューム名からドライブレターを取得する

Posted at

FilterGetDosNameを使う。

コード

wchar_t driveLetter[15] = { 0 };
//ボリューム名
wchar_t volumeName = L"¥¥Device¥¥HarddiskVolume3";

FilterGetDosName(volumeName, driveLetter, sizeof(driveLetter) / sizeof(WCHAR));
printf("%ls",driveLetter); // >> D:

参考

https://msdn.microsoft.com/en-us/library/windows/hardware/ff540492(v=vs.85).aspx
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0