SaferSetPolicyInformation function
The SaferSetPolicyInformation function sets the global policy controls.
Syntax
BOOL WINAPI SaferSetPolicyInformation( _In_ DWORD dwScopeId, _In_ SAFER_POLICY_INFO_CLASS SaferPolicyInfoClass, _In_ DWORD InfoBufferSize, _In_ PVOID InfoBuffer, _Reserved_ LPVOID lpReserved );
Parameters
- dwScopeId [in]
-
The scope of the query. The following table shows the possible values.
Value Meaning - SAFER_SCOPEID_MACHINE
- 1
The scope of the query is by computer.
- SAFER_SCOPEID_USER
- 2
The scope of the query is by user.
- SaferPolicyInfoClass [in]
-
A SAFER_POLICY_INFO_CLASS enumeration value that specifies the type of policy information that should be set. The specified value determines the size and type of the InfoBuffer parameter. The following table shows the possible values.
- InfoBufferSize [in]
-
The size, in bytes, of the InfoBuffer parameter.
- InfoBuffer [in]
-
A buffer to contain the results of the query. The size and type of the returned information is determined by the SaferPolicyInfoClass parameter. For the type of the returned information for each possible value of the SaferPolicyInfoClass parameter, see the SaferPolicyInfoClass parameter.
- lpReserved
-
Reserved for future use. This parameter should be set to NULL.
Return value
TRUE if the function succeeds; 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 |
|
|
Library |
|
|
DLL |
|