Share via


IProvideClassInfo2::GetGUID

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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.

Syntax

HRESULT GetGUID(
  DWORD dwGuidKind, 
  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 Value

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

Header ocidl.h, ocidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later