IGPMGPO::SetSecurityInfo method

Sets the list of permissions for the group policy object (GPO), such as who is granted permission to edit it. The method replaces the existing list of permissions.

Syntax

HRESULT SetSecurityInfo(
  IGPMSecurityInfo *pSecurityInfo
);

Parameters

pSecurityInfo

Pointer to the security information to apply to the GPO.

Return Value

JScript

Returns S_OK if successful. Returns a failure code if an error occurs.

VB

Returns S_OK if successful. Returns a failure code if an error occurs.

Remarks

For more information about policy-related permissions, see IGPM::CreatePermission.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See Also

IGPMGPO

IGPMSecurityInfo