HRESULT IProvideClassInfo2::GetGUID(GUIDKIND Sorte, GUID *Guid);
Le résultat est rangé dans Guid.
#include <windows.h>
#include <winbase.h>
#include <ole2.h>
IProvideClassInfo2 *pIProvideClassInfo2;
GUID Guid;
...
memset(&Guid, 0, sizeof(GUID));
if (pIProvideClassInfo2->GetGUID(GUIDKIND_DEFAULT_SOURCE_DISP_IID, &GUID)!=S_OK)
{
...
}
...