My Study/Function

GetWindowsDirectory

sharememory 2010. 2. 24. 12:43

UINT WINAPI GetWindowsDirectory(
  __out  LPTSTR lpBuffer,
  __in   UINT uSize
);
c:\WINDOWS 경로 가져옴

lpBuffer : Windows 디렉터리 정보를 저장할 버퍼의 주소값을 지정
uSize : 첫 번째 인자로 전달된 버퍼의 길이를 지정