SafeArrayGetIID Function

Returns the GUID of the interface contained within a given safe array.

HRESULT SafeArrayGetIID(  
  SAFEARRAY *psa, 
  GUID *pguid  
);

psa

Points to an array descriptor created by SafeArrayCreate.

pguid

Points to the storage of the GUID of the interface.

The return value obtained from the returned HRESULT is one of the following.

Return value

Meaning

S_OK

Success.

E_INVALIDARG

If psa is null or if the array descriptor does not have the FADF_HAVEIID flag set.

Show:
© 2014 Microsoft