Platform SDK: Group Policy

DeleteAllGPOLinks

The DeleteAllGPOLinks function deletes all GPO links for the specified site, domain, or organizational unit.

HRESULT DeleteAllGPOLinks(
  LPOLESTR lpContainer
);

Parameters

lpContainer
[in] Specifies the Active Directory path to the site, domain, or organizational unit.

Return Values

If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the Platform SDK header file WinError.h.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Gpedit.h.
  Library: Use Userenv.lib.

See Also

Group Policy Overview, Group Policy Functions, CreateGPOLink