SaferCreateLevel function
The SaferCreateLevel function opens a SAFER_LEVEL_HANDLE.
Syntax
BOOL WINAPI SaferCreateLevel( _In_ DWORD dwScopeId, _In_ DWORD dwLevelId, _In_ DWORD OpenFlags, _Out_ SAFER_LEVEL_HANDLE *pLevelHandle, _Reserved_ LPVOID lpReserved );
Parameters
- dwScopeId [in]
-
The scope of the level to be created. The following table shows the possible values.
Value Meaning - SAFER_SCOPEID_MACHINE
- 1
The scope of the created level is by computer.
- SAFER_SCOPEID_USER
- 2
The scope of the created level is by user.
- dwLevelId [in]
-
The level of the handle to be opened. The following table shows the possible values.
- OpenFlags [in]
-
This can be the following value.
Value Meaning - SAFER_LEVEL_OPEN
- 1
- pLevelHandle [out]
-
The returned SAFER_LEVEL_HANDLE. When you have finished using the handle, close it by calling the SaferCloseLevel function.
- lpReserved
-
This parameter is reserved for future use. Set it to NULL.
Return value
Returns nonzero if successful or zero otherwise.
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 |
|
|
Library |
|
|
DLL |
|