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