Share via


IGPMPermission Property Methods

The property methods of the IGPMPermission interface get the properties described in the following table. For a general discussion of property methods, see Interface Property Methods in the ADSI documentation.

Properties

Denied

Value that indicates whether the permission is denied. If VARIANT_TRUE, the permission is denied.

Access type: Read-only

Scripting data type: Boolean

// C++ method syntax
HRESULT get_Denied(
  [out] VARIANT_BOOL* pVal
);

Inheritable

Value that indicates whether the permission can be inherited by child containers. If VARIANT_TRUE, the permission can be inherited.

When setting security for GPOs, the value of this property is always VARIANT_TRUE; For WMI filters, it is always VARIANT_FALSE. For permSOMWMICreate, permSOMWMIFullControl, and permSOMGPOCreate, the value is always VARIANT_FALSE.

Access type: Read-only

Scripting data type: Boolean

// C++ method syntax
HRESULT get_Inheritable(
  [out] VARIANT_BOOL* pVal
);

Inherited

Value that indicates whether the permission is inherited from a parent container. If VARIANT_TRUE, the permission is inherited.

Access type: Read-only

Scripting data type: Boolean

// C++ method syntax
HRESULT get_Inherited(
  [out] VARIANT_BOOL* pVal
);

Permission

The policy-related permission level; for example, permGPOApply, permWMIFilterEdit, and permSOMLink. For a complete list of the supported permission levels, see the IGPM::CreatePermission method.

Access type: Read-only

Scripting data type: String

// C++ method syntax
HRESULT get_Permission(
  [out] GPMPermissionType* pVal
);

Trustee

Returns the IGPMTrustee interface and the trustee part of the permission.

Access type: Read-only

Scripting data type: GPMTrustee

// C++ method syntax
HRESULT get_Trustee(
  [out] IGPMTrustee* pGPMTrustee
);

Remarks

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

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Gpmgmt.h
IDL
Gpmgmt.idl
DLL
Gpmgmt.dll
IID
IID_IGPMPermission is defined as 35EBCA40-E1A1-4A02-8905-D79416FB464A

See also

IGPMPermission

IGPM

IGPMTrustee

IGPMSecurityInfo