ReactOS 0.4.15-dev-8434-g155a7c7
shlinstobj.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "objbase.h"
#include "oleauto.h"
#include "shdocvw.h"
#include "wine/debug.h"
Include dependency graph for shlinstobj.c:

Go to the source code of this file.

Classes

struct  _RegistryPropertyBag
 
struct  _InstanceObjectFactory
 

Macros

#define COBJMACROS
 
#define CHARS_IN_GUID   39
 

Typedefs

typedef struct _RegistryPropertyBag RegistryPropertyBag
 
typedef struct _InstanceObjectFactory InstanceObjectFactory
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (shdocvw)
 
static RegistryPropertyBagimpl_from_IPropertyBag (IPropertyBag *iface)
 
static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_QueryInterface (IPropertyBag *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI RegistryPropertyBag_IPropertyBag_AddRef (IPropertyBag *iface)
 
static ULONG WINAPI RegistryPropertyBag_IPropertyBag_Release (IPropertyBag *iface)
 
static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Read (IPropertyBag *iface, LPCOLESTR pwszPropName, VARIANT *pVar, IErrorLog *pErrorLog)
 
static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Write (IPropertyBag *iface, LPCOLESTR pwszPropName, VARIANT *pVar)
 
static HRESULT RegistryPropertyBag_Constructor (HKEY hInitPropertyBagKey, REFIID riid, LPVOID *ppvObject)
 
static InstanceObjectFactoryimpl_from_IClassFactory (IClassFactory *iface)
 
static HRESULT WINAPI InstanceObjectFactory_IClassFactory_QueryInterface (IClassFactory *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI InstanceObjectFactory_IClassFactory_AddRef (IClassFactory *iface)
 
static ULONG WINAPI InstanceObjectFactory_IClassFactory_Release (IClassFactory *iface)
 
static HRESULT WINAPI InstanceObjectFactory_IClassFactory_CreateInstance (IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObj)
 
static HRESULT WINAPI InstanceObjectFactory_IClassFactory_LockServer (IClassFactory *iface, BOOL fLock)
 
static HRESULT InstanceObjectFactory_Constructor (REFCLSID rclsid, IPropertyBag *pPropertyBag, REFIID riid, LPVOID *ppvObject)
 
HRESULT SHDOCVW_GetShellInstanceObjectClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppvClassObj)
 

Variables

static const IPropertyBagVtbl RegistryPropertyBag_IPropertyBagVtbl
 
static const IClassFactoryVtbl InstanceObjectFactory_IClassFactoryVtbl
 

Macro Definition Documentation

◆ CHARS_IN_GUID

#define CHARS_IN_GUID   39

Definition at line 42 of file shlinstobj.c.

◆ COBJMACROS

#define COBJMACROS

Definition at line 28 of file shlinstobj.c.

Typedef Documentation

◆ InstanceObjectFactory

◆ RegistryPropertyBag

Function Documentation

◆ impl_from_IClassFactory()

static InstanceObjectFactory * impl_from_IClassFactory ( IClassFactory iface)
inlinestatic

◆ impl_from_IPropertyBag()

◆ InstanceObjectFactory_Constructor()

static HRESULT InstanceObjectFactory_Constructor ( REFCLSID  rclsid,
IPropertyBag pPropertyBag,
REFIID  riid,
LPVOID ppvObject 
)
static

Definition at line 324 of file shlinstobj.c.

326{
327 InstanceObjectFactory *pInstanceObjectFactory;
328 HRESULT hr = E_FAIL;
329
330 TRACE("(RegistryPropertyBag=%p, riid=%s, ppvObject=%p)\n", pPropertyBag,
332
333 pInstanceObjectFactory = heap_alloc(sizeof(InstanceObjectFactory));
334 if (pInstanceObjectFactory) {
335 pInstanceObjectFactory->IClassFactory_iface.lpVtbl = &InstanceObjectFactory_IClassFactoryVtbl;
336 pInstanceObjectFactory->m_cRef = 0;
337 pInstanceObjectFactory->m_clsidInstance = *rclsid;
338 pInstanceObjectFactory->m_pPropertyBag = pPropertyBag;
339 IPropertyBag_AddRef(pPropertyBag);
340
341 IClassFactory_AddRef(&pInstanceObjectFactory->IClassFactory_iface);
342 hr = IClassFactory_QueryInterface(&pInstanceObjectFactory->IClassFactory_iface,
343 riid, ppvObject);
344 IClassFactory_Release(&pInstanceObjectFactory->IClassFactory_iface);
345 }
346
347 return hr;
348}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
#define E_FAIL
Definition: ddrawi.h:102
REFIID riid
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
HRESULT hr
Definition: shlfolder.c:183
static const IClassFactoryVtbl InstanceObjectFactory_IClassFactoryVtbl
Definition: shlinstobj.c:315
#define TRACE(s)
Definition: solgame.cpp:4
IPropertyBag * m_pPropertyBag
Definition: shlinstobj.c:207
IClassFactory IClassFactory_iface
Definition: shlinstobj.c:204
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082

Referenced by SHDOCVW_GetShellInstanceObjectClassObject().

◆ InstanceObjectFactory_IClassFactory_AddRef()

static ULONG WINAPI InstanceObjectFactory_IClassFactory_AddRef ( IClassFactory iface)
static

Definition at line 236 of file shlinstobj.c.

237{
239 ULONG cRef;
240
241 TRACE("(iface=%p)\n", iface);
242
243 cRef = InterlockedIncrement(&This->m_cRef);
244
245 if (cRef == 1)
246 IClassFactory_LockServer(iface, TRUE);
247
248 return cRef;
249}
#define InterlockedIncrement
Definition: armddk.h:53
#define TRUE
Definition: types.h:120
static InstanceObjectFactory * impl_from_IClassFactory(IClassFactory *iface)
Definition: shlinstobj.c:210
uint32_t ULONG
Definition: typedefs.h:59

◆ InstanceObjectFactory_IClassFactory_CreateInstance()

static HRESULT WINAPI InstanceObjectFactory_IClassFactory_CreateInstance ( IClassFactory iface,
IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppvObj 
)
static

Definition at line 269 of file shlinstobj.c.

271{
273 IPersistPropertyBag *pPersistPropertyBag;
274 HRESULT hr;
275
276 TRACE("(pUnkOuter=%p, riid=%s, ppvObj=%p)\n", pUnkOuter, debugstr_guid(riid), ppvObj);
277
278 hr = CoCreateInstance(&This->m_clsidInstance, NULL, CLSCTX_INPROC_SERVER,
279 &IID_IPersistPropertyBag, (LPVOID*)&pPersistPropertyBag);
280 if (FAILED(hr)) {
281 TRACE("Failed to create instance of %s. hr = %08x\n",
282 debugstr_guid(&This->m_clsidInstance), hr);
283 return hr;
284 }
285
286 hr = IPersistPropertyBag_Load(pPersistPropertyBag, This->m_pPropertyBag, NULL);
287 if (FAILED(hr)) {
288 TRACE("Failed to initialize object from PropertyBag: hr = %08x\n", hr);
289 IPersistPropertyBag_Release(pPersistPropertyBag);
290 return hr;
291 }
292
293 hr = IPersistPropertyBag_QueryInterface(pPersistPropertyBag, riid, ppvObj);
294 IPersistPropertyBag_Release(pPersistPropertyBag);
295
296 return hr;
297}
#define NULL
Definition: types.h:112
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
#define FAILED(hr)
Definition: intsafe.h:51
const GUID IID_IPersistPropertyBag
Definition: proxy.cpp:11

◆ InstanceObjectFactory_IClassFactory_LockServer()

static HRESULT WINAPI InstanceObjectFactory_IClassFactory_LockServer ( IClassFactory iface,
BOOL  fLock 
)
static

Definition at line 299 of file shlinstobj.c.

301{
302 TRACE("(iface=%p, fLock=%d) stub\n", iface, fLock);
303
304 if (fLock)
306 else
308
309 return S_OK;
310}
#define S_OK
Definition: intsafe.h:52
static void SHDOCVW_LockModule(void)
Definition: shdocvw.h:59
static void SHDOCVW_UnlockModule(void)
Definition: shdocvw.h:60

◆ InstanceObjectFactory_IClassFactory_QueryInterface()

static HRESULT WINAPI InstanceObjectFactory_IClassFactory_QueryInterface ( IClassFactory iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 215 of file shlinstobj.c.

217{
219
220 TRACE("iface=%p, riid=%s, ppv=%p)\n", iface, debugstr_guid(riid), ppv);
221
222 if (!ppv)
223 return E_INVALIDARG;
224
226 *ppv = &This->IClassFactory_iface;
227 } else {
228 *ppv = NULL;
229 return E_NOINTERFACE;
230 }
231
232 IUnknown_AddRef((IUnknown*)*ppv);
233 return S_OK;
234}
const GUID IID_IUnknown
const GUID IID_IClassFactory
#define E_INVALIDARG
Definition: ddrawi.h:101
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ InstanceObjectFactory_IClassFactory_Release()

static ULONG WINAPI InstanceObjectFactory_IClassFactory_Release ( IClassFactory iface)
static

Definition at line 251 of file shlinstobj.c.

252{
254 ULONG cRef;
255
256 TRACE("(iface=%p)\n", iface);
257
258 cRef = InterlockedDecrement(&This->m_cRef);
259
260 if (cRef == 0) {
261 IClassFactory_LockServer(iface, FALSE);
262 IPropertyBag_Release(This->m_pPropertyBag);
264 }
265
266 return cRef;
267}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52
#define FALSE
Definition: types.h:117

◆ RegistryPropertyBag_Constructor()

static HRESULT RegistryPropertyBag_Constructor ( HKEY  hInitPropertyBagKey,
REFIID  riid,
LPVOID ppvObject 
)
static

Definition at line 175 of file shlinstobj.c.

175 {
176 HRESULT hr = E_FAIL;
177 RegistryPropertyBag *pRegistryPropertyBag;
178
179 TRACE("(hInitPropertyBagKey=%p, riid=%s, ppvObject=%p)\n", hInitPropertyBagKey,
181
182 pRegistryPropertyBag = heap_alloc(sizeof(RegistryPropertyBag));
183 if (pRegistryPropertyBag) {
184 pRegistryPropertyBag->IPropertyBag_iface.lpVtbl = &RegistryPropertyBag_IPropertyBagVtbl;
185 pRegistryPropertyBag->m_cRef = 0;
186 pRegistryPropertyBag->m_hInitPropertyBagKey = hInitPropertyBagKey;
187
188 /* The clasping AddRef/Release is for the case that QueryInterface fails, which will result
189 * in a reference count of 0 in the Release call, which will result in object destruction.*/
190 IPropertyBag_AddRef(&pRegistryPropertyBag->IPropertyBag_iface);
191 hr = IPropertyBag_QueryInterface(&pRegistryPropertyBag->IPropertyBag_iface, riid, ppvObject);
192 IPropertyBag_Release(&pRegistryPropertyBag->IPropertyBag_iface);
193 }
194
195 return hr;
196}
static const IPropertyBagVtbl RegistryPropertyBag_IPropertyBagVtbl
Definition: shlinstobj.c:166
IPropertyBag IPropertyBag_iface
Definition: shlinstobj.c:50

Referenced by SHDOCVW_GetShellInstanceObjectClassObject().

◆ RegistryPropertyBag_IPropertyBag_AddRef()

static ULONG WINAPI RegistryPropertyBag_IPropertyBag_AddRef ( IPropertyBag iface)
static

Definition at line 81 of file shlinstobj.c.

82{
84 ULONG cRef;
85
86 TRACE("(iface=%p)\n", iface);
87
88 cRef = InterlockedIncrement(&This->m_cRef);
89
90 if (cRef == 1)
92
93 return cRef;
94}
static RegistryPropertyBag * impl_from_IPropertyBag(IPropertyBag *iface)
Definition: shlinstobj.c:55

◆ RegistryPropertyBag_IPropertyBag_QueryInterface()

static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_QueryInterface ( IPropertyBag iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 60 of file shlinstobj.c.

62{
64
65 TRACE("(iface=%p, riid=%s, ppv=%p)\n", iface, debugstr_guid(riid), ppv);
66
67 if (!ppv)
68 return E_INVALIDARG;
69
71 *ppv = &This->IPropertyBag_iface;
72 } else {
73 *ppv = NULL;
74 return E_NOINTERFACE;
75 }
76
77 IUnknown_AddRef((IUnknown*)*ppv);
78 return S_OK;
79}
const GUID IID_IPropertyBag

◆ RegistryPropertyBag_IPropertyBag_Read()

static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Read ( IPropertyBag iface,
LPCOLESTR  pwszPropName,
VARIANT pVar,
IErrorLog pErrorLog 
)
static

Definition at line 115 of file shlinstobj.c.

117{
119 WCHAR *pwszValue;
120 DWORD dwType, cbData;
121 LONG res;
122 VARTYPE vtDst = V_VT(pVar);
123 HRESULT hr = S_OK;
124
125 TRACE("(iface=%p, pwszPropName=%s, pVar=%p, pErrorLog=%p)\n", iface, debugstr_w(pwszPropName),
126 pVar, pErrorLog);
127
128 res = RegQueryValueExW(This->m_hInitPropertyBagKey, pwszPropName, NULL, &dwType, NULL, &cbData);
129 if (res != ERROR_SUCCESS)
130 return E_INVALIDARG;
131
132 pwszValue = heap_alloc(cbData);
133 if (!pwszValue)
134 return E_OUTOFMEMORY;
135
136 res = RegQueryValueExW(This->m_hInitPropertyBagKey, pwszPropName, NULL, &dwType,
137 (LPBYTE)pwszValue, &cbData);
138 if (res != ERROR_SUCCESS) {
139 heap_free(pwszValue);
140 return E_INVALIDARG;
141 }
142
143 V_VT(pVar) = VT_BSTR;
144 V_BSTR(pVar) = SysAllocString(pwszValue);
145 heap_free(pwszValue);
146
147 if (vtDst != VT_BSTR) {
148 hr = VariantChangeTypeEx(pVar, pVar, LOCALE_SYSTEM_DEFAULT, 0, vtDst);
149 if (FAILED(hr))
150 SysFreeString(V_BSTR(pVar));
151 }
152
153 return hr;
154}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define ERROR_SUCCESS
Definition: deptool.c:10
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
Definition: reg.c:4103
unsigned short VARTYPE
Definition: compat.h:2254
@ VT_BSTR
Definition: compat.h:2303
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint res
Definition: glext.h:9613
#define debugstr_w
Definition: kernel32.h:32
#define LOCALE_SYSTEM_DEFAULT
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
long LONG
Definition: pedump.c:60
unsigned char * LPBYTE
Definition: typedefs.h:53
HRESULT WINAPI VariantChangeTypeEx(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, LCID lcid, USHORT wFlags, VARTYPE vt)
Definition: variant.c:988
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ RegistryPropertyBag_IPropertyBag_Release()

static ULONG WINAPI RegistryPropertyBag_IPropertyBag_Release ( IPropertyBag iface)
static

Definition at line 96 of file shlinstobj.c.

97{
99 ULONG cRef;
100
101 TRACE("(iface=%p)\n", iface);
102
103 cRef = InterlockedDecrement(&This->m_cRef);
104
105 if (cRef == 0) {
106 TRACE("Destroying This=%p)\n", This);
107 RegCloseKey(This->m_hInitPropertyBagKey);
110 }
111
112 return cRef;
113}
#define RegCloseKey(hKey)
Definition: registry.h:49

◆ RegistryPropertyBag_IPropertyBag_Write()

static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Write ( IPropertyBag iface,
LPCOLESTR  pwszPropName,
VARIANT pVar 
)
static

Definition at line 156 of file shlinstobj.c.

158{
159 FIXME("(iface=%p, pwszPropName=%s, pVar=%p) stub\n", iface, debugstr_w(pwszPropName), pVar);
160 return E_NOTIMPL;
161}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ SHDOCVW_GetShellInstanceObjectClassObject()

HRESULT SHDOCVW_GetShellInstanceObjectClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppvClassObj 
)

Definition at line 365 of file shlinstobj.c.

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 };
374 WCHAR wszCLSIDInstance[CHARS_IN_GUID];
375 CLSID clsidInstance;
376 HKEY hInstanceKey, hInitPropertyBagKey;
377 DWORD dwType, cbBytes = sizeof(wszCLSIDInstance);
378 IPropertyBag *pInitPropertyBag;
379 HRESULT hr;
380 LONG res;
381
382 TRACE("(rclsid=%s, riid=%s, ppvClassObject=%p)\n", debugstr_guid(rclsid), debugstr_guid(riid),
383 ppvClassObj);
384
385 /* Figure if there is an 'Instance' subkey for the given CLSID and acquire a handle. */
386 if (!StringFromGUID2(rclsid, wszInstanceKey + 6, CHARS_IN_GUID))
388 wszInstanceKey[5+CHARS_IN_GUID] = '\\'; /* Repair the null-termination. */
389 if (ERROR_SUCCESS != RegOpenKeyExW(HKEY_CLASSES_ROOT, wszInstanceKey, 0, KEY_READ, &hInstanceKey))
390 /* If there is no 'Instance' subkey, then it's not a Shell Instance Object. */
392
393 if (ERROR_SUCCESS != RegQueryValueExW(hInstanceKey, wszCLSID, NULL, &dwType, (LPBYTE)wszCLSIDInstance, &cbBytes) ||
394 FAILED(CLSIDFromString(wszCLSIDInstance, &clsidInstance)))
395 {
396 /* 'Instance' should have a 'CLSID' value with a well-formed clsid-string. */
397 FIXME("Failed to infer instance CLSID! %s\n", debugstr_w(wszCLSIDInstance));
398 RegCloseKey(hInstanceKey);
400 }
401
402 /* Try to open the 'InitPropertyBag' subkey. */
403 res = RegOpenKeyExW(hInstanceKey, wszInitPropertyBag, 0, KEY_READ, &hInitPropertyBagKey);
404 RegCloseKey(hInstanceKey);
405 if (res != ERROR_SUCCESS) {
406 /* Besides 'InitPropertyBag's, shell instance objects might be initialized by streams.
407 * So this case might not be an error. */
408 TRACE("No InitPropertyBag key found!\n");
410 }
411
412 /* If the construction succeeds, the new RegistryPropertyBag is responsible for closing
413 * hInitPropertyBagKey. */
415 (LPVOID*)&pInitPropertyBag);
416 if (FAILED(hr)) {
417 RegCloseKey(hInitPropertyBagKey);
418 return hr;
419 }
420
421 /* Construct an Instance Object Factory, which creates objects of class 'clsidInstance'
422 * and asks them to initialize themselves with the help of the 'pInitiPropertyBag' */
423 hr = InstanceObjectFactory_Constructor(&clsidInstance, pInitPropertyBag, riid, ppvClassObj);
424 IPropertyBag_Release(pInitPropertyBag); /* The factory will hold a reference the bag. */
425
426 return hr;
427}
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
Definition: reg.c:3333
HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id)
Definition: compobj.c:2338
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
Definition: compobj.c:2434
#define KEY_READ
Definition: nt_native.h:1023
static HRESULT InstanceObjectFactory_Constructor(REFCLSID rclsid, IPropertyBag *pPropertyBag, REFIID riid, LPVOID *ppvObject)
Definition: shlinstobj.c:324
static HRESULT RegistryPropertyBag_Constructor(HKEY hInitPropertyBagKey, REFIID riid, LPVOID *ppvObject)
Definition: shlinstobj.c:175
#define CHARS_IN_GUID
Definition: shlinstobj.c:42
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663
#define HKEY_CLASSES_ROOT
Definition: winreg.h:10

Referenced by DllGetClassObject().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( shdocvw  )

Variable Documentation

◆ InstanceObjectFactory_IClassFactoryVtbl

const IClassFactoryVtbl InstanceObjectFactory_IClassFactoryVtbl
static
Initial value:
= {
}
static HRESULT WINAPI InstanceObjectFactory_IClassFactory_LockServer(IClassFactory *iface, BOOL fLock)
Definition: shlinstobj.c:299
static HRESULT WINAPI InstanceObjectFactory_IClassFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObj)
Definition: shlinstobj.c:269
static HRESULT WINAPI InstanceObjectFactory_IClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv)
Definition: shlinstobj.c:215
static ULONG WINAPI InstanceObjectFactory_IClassFactory_Release(IClassFactory *iface)
Definition: shlinstobj.c:251
static ULONG WINAPI InstanceObjectFactory_IClassFactory_AddRef(IClassFactory *iface)
Definition: shlinstobj.c:236

Definition at line 315 of file shlinstobj.c.

Referenced by InstanceObjectFactory_Constructor().

◆ RegistryPropertyBag_IPropertyBagVtbl

const IPropertyBagVtbl RegistryPropertyBag_IPropertyBagVtbl
static
Initial value:
= {
}
static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Read(IPropertyBag *iface, LPCOLESTR pwszPropName, VARIANT *pVar, IErrorLog *pErrorLog)
Definition: shlinstobj.c:115
static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_Write(IPropertyBag *iface, LPCOLESTR pwszPropName, VARIANT *pVar)
Definition: shlinstobj.c:156
static HRESULT WINAPI RegistryPropertyBag_IPropertyBag_QueryInterface(IPropertyBag *iface, REFIID riid, void **ppv)
Definition: shlinstobj.c:60
static ULONG WINAPI RegistryPropertyBag_IPropertyBag_AddRef(IPropertyBag *iface)
Definition: shlinstobj.c:81
static ULONG WINAPI RegistryPropertyBag_IPropertyBag_Release(IPropertyBag *iface)
Definition: shlinstobj.c:96

Definition at line 166 of file shlinstobj.c.

Referenced by RegistryPropertyBag_Constructor().