SafeArraySetIID Function

Sets the GUID of the interface for the given safe array.

HRESULT SafeArraySetIID(  
  SAFEARRAY *psa,              
  REFGUID  pguid  
);

psa

A pointer to the safe array descriptor.

pguid

A pointer to the IID.

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

Value

Meaning

S_OK

Success.

E_INVALIDARG

If psa is null or if the array descriptor does not have the FADF_HAVEIID flag set. For more information about the FADF_HAVEIID flag see SAFEARRAY Data Type [Automation].

Show:
© 2014 Microsoft