Share via


IClientComponent::State Property

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

IClientComponent::State is a read-only property, in Configuration Manager, that defines the state of the component that can be installed, enabled, or disabled.

[IDL]
HRESULT State([out, retval] EComponentState* pVal);

Parameters

  • pVal
    Data type: EComponentState

    Qualifiers: [out, retval]

    Pointer to one of the following values from the EComponentState enumeration:

    Name Actual Value Description

    COMPONENT_STATE_INSTALLED

    0

    The component is currently installed.

    COMPONENT_STATE_ENABLED

    1

    The component is currently enabled.

    COMPONENT_STATE_DISABLED

    2

    The component is currently disabled.

Return Value

An HRESULT code. Possible values include, but are not limited to, the following:

  • S_OK
    The method succeeded.

Requirements

CPApplet.DLL

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

IClientComponent Client COM Automation Interface