My Study/Function

GetTempPath

sharememory 2010. 2. 24. 14:27

DWORD WINAPI GetTempPath(
  __in   DWORD nBufferLength,
  __out  LPTSTR lpBuffer
);

그 컴퓨터의 temporary files경로를 가져 옴

nBufferLength : 가져올 문자열 담을 변수 크기
lpBuffer : 담을 버퍼 주소

성공하면 그 값의 길이를 반환
실패하면 0