Create a GUID

by ixmx


#include <Objbase.h>
#pragma comment(lib,"Ole32.lib")
 
	...
	GUID guid;
	HRESULT hr = CoCreateGuid(&guid);
	if(S_OK == hr)
	{//sucess
		...
	}
 
Advertisements