基本介紹
該函式為當前進程返回系統環境變數,它取代了DOS模式下的相應函式:GetDOSEnvironment()
函式原型:
LPTCHWINAPIGetEnvironmentStrings(void);
參數說明:
該函式不需要參數.
說明:
不要使用該函式來獲取或設備系統環境變數.相反,應該使用GetEnvironmentVariable和SetEnvironmentVariable 函式來訪問當前進程的系統環境變數.當不再需要當前進程的系統環境變數塊時,應該調用FreeEnvironmentStrings函式來釋放.
另請參閱:
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase.h;include Windows.h.
Import Library: Use kernel32.lib.
DLL: Requires Kernel32.dll.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Processes and Threads Overview, Process and Thread Functions, CreateProcess, GetEnvironmentVariable, SetEnvironmentVariable, FreeEnvironmentStrings