IGPMGPO::IsComputerEnabled method (gpmgmt.h)

Checks whether the computer policies in the GPO are enabled.

Syntax

HRESULT IsComputerEnabled(
  [out] VARIANT_BOOL *pvbEnabled
);

Parameters

[out] pvbEnabled

Value that indicates whether the computer policies in the GPO are enabled. If VARIANT_TRUE, they are enabled.

Return value

C++

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

JScript

Value that indicates whether the computer policies in the GPO are enabled. If VARIANT_TRUE, they are enabled.

VB

Value that indicates whether the computer policies in the GPO are enabled. If VARIANT_TRUE, they are enabled.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMGPO