SaferIdentifyLevel function

The SaferIdentifyLevel function retrieves information about a level.

Syntax

BOOL SaferIdentifyLevel(
  DWORD                  dwNumProperties,
  PSAFER_CODE_PROPERTIES pCodeProperties,
  SAFER_LEVEL_HANDLE     *pLevelHandle,
  LPVOID                 lpReserved
);

Parameters

dwNumProperties

Number of SAFER_CODE_PROPERTIES structures in the pCodeproperties parameter.

pCodeProperties

Array of SAFER_CODE_PROPERTIES structures. Each structure contains a code file to be checked and the criteria used to check the file.

pLevelHandle

The returned SAFER_LEVEL_HANDLE. When you have finished using the handle, close it by calling the SaferCloseLevel function.

lpReserved

Reserved for future use. Should be set to NULL.

Beginning with Windows 8 and Windows Server 2012 SRP_POLICY_APPX is defined as Windows Store app.

Return Value

TRUE if a SAFER_LEVEL_HANDLE was opened; otherwise, FALSE. For extended error information, call GetLastError.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winsafer.h
Library Advapi32.lib
DLL Advapi32.dll