IGPMDomain2::CreateGPOFromStarterGPO method

Creates and retrieves a GPMGPO object from a GPMStarterGPO object. This method creates a new GPMGPO object. Then, this method copies the contents of the GPMStarterGPO object into the GPMGPO object. Finally, this method updates the appropriate attributes of the GPMGPO object to reflect the configured data.

Syntax

HRESULT CreateGPOFromStarterGPO(
  IGPMStarterGPO *pGPOTemplate,
  IGPMGPO        **ppnewGPO
);

Parameters

pGPOTemplate

A pointer to a GPMStarterGPO object from which the new Group Policy object (GPO) will be created.

ppnewGPO

Address of a pointer to an GPMGPO object that represents the new GPO.

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

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

See Also

IGPMDomain2