GetEnvironmentStrings

王朝百科·作者佚名  2010-03-02  
宽屏版  字体:   |    |    |  超大  

该函数为当前进程返回系统环境变量,它取代了DOS模式下的相应函数:GetDOSEnvironment()

函数原型:

LPVOID GetEnvironmentStrings(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.

Import Library: Use kernel32.lib.

Unicode: Implemented as Unicode and ANSI versions on Windows NT.

Processes and Threads Overview, Process and Thread Functions, CreateProcess, GetEnvironmentVariable, SetEnvironmentVariable, FreeEnvironmentStrings

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有