SaferCloseLevel function (winsafer.h)

The SaferCloseLevel function closes a SAFER_LEVEL_HANDLE that was opened by using the
SaferIdentifyLevel function or the SaferCreateLevel function.

Syntax

BOOL SaferCloseLevel(
  [in] SAFER_LEVEL_HANDLE hLevelHandle
);

Parameters

[in] hLevelHandle

The SAFER_LEVEL_HANDLE to be closed.

Return value

TRUE if the function succeeds; otherwise, FALSE. For extended error information, call GetLastError.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winsafer.h
Library Advapi32.lib
DLL Advapi32.dll
API set ext-ms-win-advapi32-safer-l1-1-0 (introduced in Windows 8)