Win32API 一時フォルダのパスを取得する GetTempPath
#include <windows.h> int main() { char szPath[1024]; DWORD dwBuffSize; dwBuffSize = GetTempPath( sizeof(szPath)/sizeof(szPath[0]), szPath); printf("TempPath = %s\n", szPath); printf("Length = %u\n", dwBuffSize); return 0; }