UINT WINAPI GetWindowsDirectory(
__out LPTSTR lpBuffer,
__in UINT uSize
);
// GetWindowsDirectory.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <Windows.h>
int main()
{
char Path[MAX_PATH];
GetWindowsDirectory(Path, MAX_PATH);
printf ("%s\n", Path);
return 0;
}
C:\Windows
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |