IDXDiagContainer::GetProp

Retrieves an instance of the specified property.

HRESULT GetProp(
  LPCWSTR pwszPropName,
  VARIANT * pvarProp
);

Parameters

pwszPropName
[in] Specifies the NULL-terminated name of the property.
pvarProp
Receives an instance of the property specified in pwszPropName. Check the method's return value and call VariantClear only if the method succeeds.

Return Values

Returns S_OK if successful. Otherwise, returns one of the error codes for VariantCopy or the following value: E_INVALIDARG.

Requirements

Header: Declared in Dxdiag.h.