IGPMDomain::GetGPO method

Retrieves a GPMGPO object with a specified Group Policy object (GPO) ID. The group policy object ID is represented by a GUID.

Syntax


HRESULT GetGPO(
  [in]  BSTR        bstrGuid,
  [out] IGPMGPO **ppGPO
);

Parameters

bstrGuid [in]

Required. GUID representing the ID of the group policy object to access. Use null-terminated string.

ppGPO [out]

Address of a pointer to the IGPMGPO interface for the group policy object ID and domain specified.

Return value

C++

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

JScript

Returns a reference to a GPMGPO object.

VB

Returns a reference to a GPMGPO object.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMDomain is defined as 6B21CC14-5A00-4F44-A738-FEEC8A94C7E3

See also

IGPMDomain
IGPMGPO

 

 

Show: