The GetHint method retrieves the type of Active Directory object to which this GPO can be linked.
HRESULT GetHint( GROUP_POLICY_HINT_TYPE *gpHint );
Receives the directory service type. This parameter can be one of the following values.
No link information is available.
The object can be linked to a computer (local or remote).
The object can be linked to a site.
The object can be linked to a domain.
The object can be linked to an organizational unit.
If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes defined in the Platform SDK header file WinError.h.
The Group Policy Object Editor cannot determine which Active Directory objects are linked to a particular GPO. The GetHint method provides linking information based on how the user started the Group Policy Object Editor. It can be started in the following ways:
- As an extension to the Active Directory Manager. Navigate to the site, domain, or organizational unit, then select Group Policy.
- As a stand-alone MMC tool with a specific link.
- As a stand-alone MMC tool without a specific link.
|Windows version||Windows Vista Windows Server 2008|