SHGetSpecialFolderPathで、特殊フォルダのパスを取得する。
SHGetSpecialFolderPathW 関数 (shlobj_core.h) - Win32 apps | Microsoft Learn
SHGetSpecialFolderPath.rcで、
Item4とItem4-1を追加。
CSIDL_PROFILEは、このユーザのプロファイルフォルダ。
![Item4-1を選択すると、](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20221230/20221230135805.png)
Item4-1を選択すると、
![自分のプロファイルフォルダのパスが取得できた。](https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20221230/20221230140004.png)
自分のプロファイルフォルダのパスが取得できた。
SHGetSpecialFolderPathで、特殊フォルダのパスを取得する。
SHGetSpecialFolderPathW 関数 (shlobj_core.h) - Win32 apps | Microsoft Learn
SHGetSpecialFolderPath.rcで、
Item4とItem4-1を追加。
CSIDL_PROFILEは、このユーザのプロファイルフォルダ。
Item4-1を選択すると、
自分のプロファイルフォルダのパスが取得できた。