char ch[MAX_PATH];ch[0]=0;if (GetEnvironmentVariable("HOMEPATH", ch, MAX_PATH) >0) ........
"HOMEPATH" - \Documents and Settings\Dmitriy"WINDIR" - C:\WINDOWS“TEMP” - C:\DOCUME~1\Dmitriy\LOCALS~1\Temp