The Grimoire of Nonsense

個人的なメモを残すブログ

2017-09-06から1日間の記事一覧

論理ドライブからデバイスマッピング名を取得する

Windowsの論理ドライブ名*1からデバイスマッピング名*2を取得するサンプル。 連想配列を使うとよさそうなので連想配列に格納したよっ。 #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <map> #include <Windows.h> using namespace std; typedef map<string, string> StrMap; typedef pair<string, string></string,></string,></windows.h></map></string></cstring></cstdlib></cstdio>…