Expand Minimize
This topic has not yet been rated - Rate this topic

DestroyEnvironmentBlock function

Frees environment variables created by the CreateEnvironmentBlock function.

Syntax


BOOL WINAPI DestroyEnvironmentBlock(
  _In_  LPVOID lpEnvironment
);

Parameters

lpEnvironment [in]

Type: LPVOID

Pointer to the environment block created by CreateEnvironmentBlock. The environment block is an array of null-terminated Unicode strings. The list ends with two nulls (\0\0).

Return value

Type: BOOL

TRUE if successful; otherwise, FALSE. To get extended error information, call GetLastError.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Userenv.h

Library

Userenv.lib

DLL

Userenv.dll

See also

User Profiles Overview
User Profiles Reference
CreateEnvironmentBlock

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.