The GetCustData method retrieves the value of a custom data item associated with the type.

 HRESULT GetCustData(
   [in] REFGUID guid,
   [out] VARIANT* pVarVal
 );

guid: MUST be a GUID associated with the custom data item.

pVarVal: MUST be set to the value associated with the GUID using the [custom] attribute (as specified in section 2.2.49.3), or VT_EMPTY if the type does not have a value associated with the GUID.

Return Values: The method MUST return information in an HRESULT data structure, defined in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following conditions: