367{
368 WCHAR wszInstanceKey[] = {
'C',
'L',
'S',
'I',
'D',
'\\',
'{',
'0',
'0',
'0',
'0',
'0',
'0',
'0',
'0',
'-',
369 '0','0','0','0','-','0','0','0','0','-','0','0','0','0','-','0','0','0','0','0','0','0','0',
370 '0','0','0','0','}','\\','I','n','s','t','a','n','c','e', 0 };
371 static const WCHAR wszCLSID[] = {
'C',
'L',
'S',
'I',
'D',0 };
372 static const WCHAR wszInitPropertyBag[] =
373 { 'I','n','i','t','P','r','o','p','e','r','t','y','B','a','g',0 };
376 HKEY hInstanceKey, hInitPropertyBagKey;
377 DWORD dwType, cbBytes =
sizeof(wszCLSIDInstance);
381
383 ppvClassObj);
384
385
390
392
395 {
396
397 FIXME(
"Failed to infer instance CLSID! %s\n",
debugstr_w(wszCLSIDInstance));
400 }
401
402
406
407
408 TRACE(
"No InitPropertyBag key found!\n");
410 }
411
412
413
415 (
LPVOID*)&pInitPropertyBag);
419 }
420
421
422
424 IPropertyBag_Release(pInitPropertyBag);
425
427}
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id)
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
static HRESULT InstanceObjectFactory_Constructor(REFCLSID rclsid, IPropertyBag *pPropertyBag, REFIID riid, LPVOID *ppvObject)
static HRESULT RegistryPropertyBag_Constructor(HKEY hInitPropertyBagKey, REFIID riid, LPVOID *ppvObject)
#define CLASS_E_CLASSNOTAVAILABLE
#define HKEY_CLASSES_ROOT