Share via


GetObjectType

Applies To: Windows 8, Windows 8.1

Returns the type of the object that caused the error.

HRESULT GetObjectType
  ([out, retval] CObjectType* pObjectType)
;

Parameters

  • pObjectType
    [out] Pointer to the CObjectType field that indicates the element that caused the error.

Return Value

The following table describes possible return values.

Return Value Description

S_OK

The function successfully returned the object type.

E_POINTER

Invalid pointer.

Remarks

The object type can be any of the following values:

  • Unknown

  • Profile

  • Collector

  • Provider

See Also

Reference

IControlErrorInfo