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

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

guid: MUST be the GUID associated with the custom data item using the [custom] attribute, as specified in section 2.2.49.2.

pVarVal: MUST be set to the value of the custom data item, or VT_EMPTY if there is no custom data item associated with the specified 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: