HRESULT SetGuid(
REFGUID guid
);
Sets the globally unique identifier (GUID) associated with the type description.
The return value of the returned HRESULT is one of the following:
| Return value | Meaning |
|---|---|
| S_OK | Success. |
| STG_E_INSUFFICIENTMEMORY | Out of memory. |
| E_OUTOFMEMORY | Out of memory. |
| E_ACCESSDENIED | Cannot write to the destination. |
For an interface, this is an interface ID (IID); for a coclass, it is a class ID (CLSID). For information on GUIDs, see Chapter 8, "Type Libraries and the Object Description Language.'