IProvideClassInfo2::GetGUID (Windows CE 5.0)
This method returns a GUID corresponding to the specified dwGuidKind.
The dwGuidKind parameter has several values defined. Additional flags can be defined at a later time and will be recognized by an IProvideClassInfo2 implementation.
HRESULT GetGUID(DWORDdwGuidKind,GUID* pGUID);
Parameters
- dwGuidKind
[in] 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
The following table shows the return values for this method.
Value | Description |
---|---|
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 because it would be pointless to implement this interface without implementing this method.
E_INVALIDARG is not valid when dwGuidKind is GUIDKIND_DEFAULT_SOURCE_DISP_IID.
To determine whether the platform supports this interface, see Determining Supported COM APIs.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Ocidl.h, Ocidl.idl.
Link Library: Ole32.lib, Uuid.lib.
Send Feedback on this topic to the authors