Export (0) Print
Expand All

SaferIdentifyLevel function

The SaferIdentifyLevel function retrieves information about a level.

Syntax


BOOL WINAPI SaferIdentifyLevel(
  _In_        DWORD dwNumProperties,
  _In_opt_    PSAFER_CODE_PROPERTIES pCodeProperties,
  _Out_       SAFER_LEVEL_HANDLE *pLevelHandle,
  _Reserved_  LPVOID lpReserved
);

Parameters

dwNumProperties [in]

Number of SAFER_CODE_PROPERTIES structures in the pCodeproperties parameter.

pCodeProperties [in, optional]

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

pLevelHandle [out]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinSafer.h

Library

Advapi32.lib

DLL

Advapi32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft