#include #pragma comment(lib, "C:\borland\bcc55\Lib\PSDK\shlwapi.lib") #include void PathGetTempPath(void) { char buf[MAX_PATH]; GetTempPath(MAX_PATH, buf); printf("一時ディレクトリまでのパスは'%s'である。\n", buf); } int main(void) { PathGetTempPath(); return 0; }