# IProvideClassInfo2::GetGUID

Returns a GUID corresponding to the specified dwGuidKind. The dwGuidKind parameter has several values defined. See GUIDKIND. Additional flags can be defined at a later time and will be recognized by an IProvideClassInfo2 implementation.

HRESULT GetGUID(

DWORD dwGuidKind, | //Desired GUID
GUID* pGUID | //Pointer to the desired GUID
); |

Parameters

dwGuidKind
  [in] Specifies the GUID desired on return. This parameter takes a value from the GUIDKIND enumeration.
pGUID
  [out] Pointer to the caller’s variable in which to store the GUID associated with dwGuidKind.

Return Values

S_OK
  The GUID was successfully returned in *pGUID.
E_POINTER
  The address in pGUID is not valid (such as NULL).
E_UNEXPECTED
  An unknown error occurred.
E_INVALIDARG
  The dwGuidKind value does not correspond to a supported GUID kind.

Remarks

E_NOTIMPL is not a valid return code since it would be pointless to implement this interface without implementing this method.

See Also

GUIDKIND