未分类--Windows API--DestroyEnvironmentBlock

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件[email protected]

 

DestroyEnvironmentBlock Function

--------------------------------------------------------------------------------

Frees environment variables created by the CreateEnvironmentBlock function.
这个CreateEnvironmentBlock函数释放创建的环境变量。
Syntax

BOOL WINAPI DestroyEnvironmentBlock(         
LPVOID lpEnvironment
);
Parameters

lpEnvironment
[in] Pointer to the environment block created by CreateEnvironmentBlock.
指针指向通过CreateEnvironmentBlock创建的环境块。
The environment block is an array of null-terminated Unicode strings.
这个环境块是以null结尾的Unicode字符串数组。
The list ends with two nulls (\0\0).
这个list结尾是两个nulls (\0\0)。
Return Value
TRUE if successful; otherwise, FALSE.
如果成功是TRUE,否则是FALSE。
To get extended error information, call GetLastError.
去获得额外的错误信息,调用GetLastError。

Function Information

Minimum DLL Version Userenv.dll
Custom Implementation No
Header Userenv.h
Import library Userenv.lib
Minimum operating systems Windows 2000 Professional, Windows NT 4.0

See Also

User Profiles Overview, User Profiles Reference, CreateEnvironmentBlock

--------------------------------------------------------------------------------

 

你可能感兴趣的:(windows,api)