ReactOS  0.4.13-dev-257-gfabbd7c
shell32.cpp
Go to the documentation of this file.
1 /*
2  * Shell basics
3  *
4  * Copyright 1998 Marcus Meissner
5  * Copyright 1998 Juergen Schmied (jsch) * <juergen.schmied@metronet.de>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  */
21 
22 #include "precomp.h"
23 
24 #include "shell32_version.h"
25 
27 
28 /*
29  * Implemented
30  */
32 WINAPI
33 AddCommasW(DWORD lValue, LPWSTR lpNumber)
34 {
35  WCHAR szValue[MAX_PATH], szSeparator[8 + 1];
36  NUMBERFMTW numFormat;
37 
40  szSeparator,
41  _countof(szSeparator));
42 
43  numFormat.NumDigits = 0;
44  numFormat.LeadingZero = 0;
45  numFormat.Grouping = 3; // FIXME! Use GetLocaleInfoW with LOCALE_SGROUPING and interpret the result.
46  numFormat.lpDecimalSep = szSeparator;
47  numFormat.lpThousandSep = szSeparator;
48  numFormat.NegativeOrder = 0;
49 
50  swprintf(szValue, L"%lu", lValue);
51 
53  0,
54  szValue,
55  &numFormat,
56  lpNumber,
57  MAX_PATH) != 0)
58  {
59  return lpNumber;
60  }
61 
62  wcscpy(lpNumber, szValue);
63  return lpNumber;
64 }
65 
66 /*
67  * Implemented
68  */
70 WINAPI
71 RegenerateUserEnvironment(LPVOID *lpEnvironment, BOOL bUpdateSelf)
72 {
75  return FALSE;
76 
77  BOOL bResult = CreateEnvironmentBlock(lpEnvironment, hUserToken, TRUE);
78  if (!bResult || !lpEnvironment)
79  {
81  return FALSE;
82  }
83 
84  if (bUpdateSelf)
85  {
86  LPWSTR pszz = (LPWSTR)*lpEnvironment;
87  if (!pszz)
88  return FALSE;
89 
90  while (*pszz)
91  {
92  size_t cch = wcslen(pszz);
93  LPWSTR pchEqual = wcschr(pszz, L'=');
94  if (pchEqual)
95  {
96  CStringW strName(pszz, pchEqual - pszz);
97  SetEnvironmentVariableW(strName, pchEqual + 1);
98  }
99  pszz += cch + 1;
100  }
101  }
102 
104 
105  return bResult;
106 }
107 
108 /**************************************************************************
109  * Default ClassFactory types
110  */
112 HRESULT IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, const IID *riidInst, IClassFactory **theFactory);
113 
114 
115 /**************************************************************************
116  * Default ClassFactory Implementation
117  *
118  * SHCreateDefClassObject
119  *
120  * NOTES
121  * Helper function for dlls without their own classfactory.
122  * A generic classfactory is returned.
123  * When the CreateInstance of the cf is called the callback is executed.
124  */
125 
126 class IDefClFImpl :
127  public CComObjectRootEx<CComMultiThreadModelNoCS>,
128  public IClassFactory
129 {
130 private:
133  const IID *riidInst;
134  LONG *pcRefDll; /* pointer to refcounter in external dll (ugrrr...) */
135 public:
136  IDefClFImpl();
138 
139  // IClassFactory
141  virtual HRESULT WINAPI LockServer(BOOL fLock);
142 
145 END_COM_MAP()
146 };
147 
149 {
150  lpfnCI = NULL;
151  riidInst = NULL;
152  pcRefDll = NULL;
153  rclsid = NULL;
154 }
155 
156 HRESULT IDefClFImpl::Initialize(LPFNCREATEINSTANCE lpfnCIx, PLONG pcRefDllx, const IID *riidInstx)
157 {
158  lpfnCI = lpfnCIx;
159  riidInst = riidInstx;
160  pcRefDll = pcRefDllx;
161 
162  if (pcRefDll)
164 
165  TRACE("(%p)%s\n", this, shdebugstr_guid(riidInst));
166  return S_OK;
167 }
168 
169 /******************************************************************************
170  * IDefClF_fnCreateInstance
171  */
173 {
174  TRACE("%p->(%p,%s,%p)\n", this, pUnkOuter, shdebugstr_guid(&riid), ppvObject);
175 
176  *ppvObject = NULL;
177 
179  {
180  return lpfnCI(pUnkOuter, riid, ppvObject);
181  }
182 
183  ERR("unknown IID requested %s\n", shdebugstr_guid(&riid));
184  return E_NOINTERFACE;
185 }
186 
187 /******************************************************************************
188  * IDefClF_fnLockServer
189  */
191 {
192  TRACE("%p->(0x%x), not implemented\n", this, fLock);
193  return E_NOTIMPL;
194 }
195 
196 /**************************************************************************
197  * IDefClF_fnConstructor
198  */
199 
201 {
202  return ShellObjectCreatorInit<IDefClFImpl>(lpfnCI, pcRefDll, riidInst, IID_PPV_ARG(IClassFactory, theFactory));
203 }
204 
205 /******************************************************************************
206  * SHCreateDefClassObject [SHELL32.70]
207  */
209  REFIID riid,
210  LPVOID* ppv,
211  LPFNCREATEINSTANCE lpfnCI, /* [in] create instance callback entry */
212  LPDWORD pcRefDll, /* [in/out] ref count of the dll */
213  REFIID riidInst) /* [in] optional interface to the instance */
214 {
215  IClassFactory *pcf;
216  HRESULT hResult;
217 
218  TRACE("%s %p %p %p %s\n", shdebugstr_guid(&riid), ppv, lpfnCI, pcRefDll, shdebugstr_guid(&riidInst));
219 
221  return E_NOINTERFACE;
222  hResult = IDefClF_fnConstructor(lpfnCI, (PLONG)pcRefDll, &riidInst, &pcf);
223  if (FAILED(hResult))
224  return hResult;
225  *ppv = pcf;
226  return S_OK;
227 }
228 
229 /**************************************************************************
230  * CStartMenuDummy
231  */
233  public CComCoClass<CStartMenuDummy, &CLSID_StartMenu>,
234  public CComObjectRootEx<CComMultiThreadModelNoCS>
235 {
236 private:
237  CStartMenuDummy();
238  virtual ~CStartMenuDummy();
239 
240 public:
242 
244  {
245  public:
247  {
248  if (ppv == NULL)
249  return E_POINTER;
250  *ppv = NULL;
251  if (pv != NULL)
252  return CLASS_E_NOAGGREGATION;
254  }
255  };
256 };
257 
258 /**************************************************************************
259  * CShell32Module
260  */
262 {
263 public:
264  void Term()
265  {
266  CComCreatorCentralInstance< ATL::CComObject< CDrivesFolder > >::Term();
267  CComCreatorCentralInstance< ATL::CComObject< CDesktopFolder > >::Term();
268  CComModule::Term();
269  }
270 };
271 
272 
273 BEGIN_OBJECT_MAP(ObjectMap)
274  OBJECT_ENTRY(CLSID_ActiveDesktop, CActiveDesktop)
275  OBJECT_ENTRY(CLSID_ShellFSFolder, CFSFolder)
276  OBJECT_ENTRY(CLSID_MyComputer, CDrivesFolder)
277  OBJECT_ENTRY(CLSID_ShellDesktop, CDesktopFolder)
278  OBJECT_ENTRY(CLSID_ShellItem, CShellItem)
279  OBJECT_ENTRY(CLSID_ShellLink, CShellLink)
280  OBJECT_ENTRY(CLSID_Shell, CShellDispatch)
281  OBJECT_ENTRY(CLSID_DragDropHelper, CDropTargetHelper)
282  OBJECT_ENTRY(CLSID_ControlPanel, CControlPanelFolder)
283  OBJECT_ENTRY(CLSID_MyDocuments, CMyDocsFolder)
284  OBJECT_ENTRY(CLSID_NetworkPlaces, CNetFolder)
286  OBJECT_ENTRY(CLSID_Printers, CPrinterFolder)
288  OBJECT_ENTRY(CLSID_ShellFldSetExt, CFolderOptions)
289  OBJECT_ENTRY(CLSID_RecycleBin, CRecycleBin)
290  OBJECT_ENTRY(CLSID_OpenWithMenu, COpenWithMenu)
291  OBJECT_ENTRY(CLSID_NewMenu, CNewMenu)
294  OBJECT_ENTRY(CLSID_MenuBand, CMenuBand)
295  OBJECT_ENTRY(CLSID_MenuDeskBar, CMenuDeskBar)
296  OBJECT_ENTRY(CLSID_MergedFolder, CMergedFolder)
297  OBJECT_ENTRY(CLSID_ExeDropHandler, CExeDropHandler)
298  OBJECT_ENTRY(CLSID_QueryAssociations, CQueryAssociations)
299  OBJECT_ENTRY(CLSID_UserNotification, CUserNotification)
301 
303 
304 
305 /***********************************************************************
306  * DllGetVersion [SHELL32.@]
307  *
308  * Retrieves version information of the 'SHELL32.DLL'
309  *
310  * PARAMS
311  * pdvi [O] pointer to version information structure.
312  *
313  * RETURNS
314  * Success: S_OK
315  * Failure: E_INVALIDARG
316  *
317  * NOTES
318  * Returns version of a shell32.dll from IE4.01 SP1.
319  */
320 
322 {
323  /* FIXME: shouldn't these values come from the version resource? */
324  if (pdvi->cbSize == sizeof(DLLVERSIONINFO) ||
325  pdvi->cbSize == sizeof(DLLVERSIONINFO2))
326  {
327  pdvi->dwMajorVersion = WINE_FILEVERSION_MAJOR;
328  pdvi->dwMinorVersion = WINE_FILEVERSION_MINOR;
329  pdvi->dwBuildNumber = WINE_FILEVERSION_BUILD;
330  pdvi->dwPlatformID = WINE_FILEVERSION_PLATFORMID;
331  if (pdvi->cbSize == sizeof(DLLVERSIONINFO2))
332  {
333  DLLVERSIONINFO2 *pdvi2 = (DLLVERSIONINFO2 *)pdvi;
334 
335  pdvi2->dwFlags = 0;
336  pdvi2->ullVersion = MAKEDLLVERULL(WINE_FILEVERSION_MAJOR,
340  }
341  TRACE("%u.%u.%u.%u\n",
342  pdvi->dwMajorVersion, pdvi->dwMinorVersion,
343  pdvi->dwBuildNumber, pdvi->dwPlatformID);
344  return S_OK;
345  }
346  else
347  {
348  WARN("wrong DLLVERSIONINFO size from app\n");
349  return E_INVALIDARG;
350  }
351 }
352 
353 /*************************************************************************
354  * global variables of the shell32.dll
355  * all are once per process
356  *
357  */
359 
360 /*************************************************************************
361  * SHELL32 DllMain
362  *
363  * NOTES
364  * calling oleinitialize here breaks sone apps.
365  */
367 {
368  TRACE("%p 0x%x %p\n", hInstance, dwReason, fImpLoad);
370  {
372  gModule.Init(ObjectMap, hInstance, &LIBID_Shell32);
373 
375 
376  /* get full path to this DLL for IExtractIconW_fnGetIconLocation() */
378  swShell32Name[MAX_PATH - 1] = '\0';
379 
380  /* Initialize comctl32 */
381  INITCOMMONCONTROLSEX InitCtrls;
382  InitCtrls.dwSize = sizeof(INITCOMMONCONTROLSEX);
384  InitCommonControlsEx(&InitCtrls);
385 
386  /* Bad idea, initialization in DllMain! */
388  }
389  else if (dwReason == DLL_PROCESS_DETACH)
390  {
392  SIC_Destroy();
394  gModule.Term();
395  }
396  return TRUE;
397 }
398 
399 /***********************************************************************
400  * DllCanUnloadNow (SHELL32.@)
401  */
403 {
404  return gModule.DllCanUnloadNow();
405 }
406 
407 /*************************************************************************
408  * DllGetClassObject [SHELL32.@]
409  * SHDllGetClassObject [SHELL32.128]
410  */
412 {
413  HRESULT hResult;
414 
415  TRACE("CLSID:%s,IID:%s\n", shdebugstr_guid(&rclsid), shdebugstr_guid(&riid));
416 
417  hResult = gModule.DllGetClassObject(rclsid, riid, ppv);
418  TRACE("-- pointer to class factory: %p\n", *ppv);
419  return hResult;
420 }
421 
422 /***********************************************************************
423  * DllRegisterServer (SHELL32.@)
424  */
426 {
427  HRESULT hr;
428 
430  if (FAILED(hr))
431  return hr;
432 
434  if (FAILED(hr))
435  return hr;
436 
438  if (FAILED(hr))
439  return hr;
440 
441  return S_OK;
442 }
443 
444 /***********************************************************************
445  * DllUnregisterServer (SHELL32.@)
446  */
448 {
449  HRESULT hr;
450 
452  if (FAILED(hr))
453  return hr;
454 
456  if (FAILED(hr))
457  return hr;
458 
459  return S_OK;
460 }
461 
462 /*************************************************************************
463  * DllInstall [SHELL32.@]
464  *
465  * PARAMETERS
466  *
467  * BOOL bInstall - TRUE for install, FALSE for uninstall
468  * LPCWSTR pszCmdLine - command line (unused by shell32?)
469  */
470 
472 {
473  FIXME("%s %s: stub\n", bInstall ? "TRUE":"FALSE", debugstr_w(cmdline));
474  return S_OK; /* indicate success */
475 }
LPWSTR lpThousandSep
Definition: winnls.h:643
const GUID CLSID_AdminFolderShortcut
#define STDAPI
Definition: basetyps.h:41
HRESULT DllCanUnloadNow()
Definition: atlbase.h:928
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:607
#define HRESULT
Definition: msvc.h:9
virtual HRESULT WINAPI LockServer(BOOL fLock)
Definition: shell32.cpp:190
#define REFIID
Definition: guiddef.h:113
HRESULT DllRegisterServer(BOOL bRegTypeLib=TRUE)
Definition: atlbase.h:940
#define CloseHandle
Definition: compat.h:398
#define E_NOINTERFACE
Definition: winerror.h:2364
LPWSTR lpDecimalSep
Definition: winnls.h:642
HRESULT hr
Definition: shlfolder.c:183
#define TOKEN_WRITE
Definition: setypes.h:899
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
static STDMETHODIMP CreateInstance(void *pv, REFIID riid, LPVOID *ppv)
Definition: shell32.cpp:246
STDAPI DllRegisterServer()
Definition: shell32.cpp:425
#define OBJECT_ENTRY(clsid, class)
Definition: atlcom.h:653
void FreeChangeNotifications(void)
Definition: changenotify.c:190
REFIID riid
Definition: precomp.h:44
#define REFCLSID
Definition: guiddef.h:112
#define _countof(array)
Definition: fontsub.cpp:30
#define LOCALE_USER_DEFAULT
#define WARN(fmt,...)
Definition: debug.h:111
#define CALLBACK
Definition: compat.h:27
LONG * pcRefDll
Definition: shell32.cpp:134
REFIID LPVOID * ppv
Definition: atlbase.h:39
const char * shdebugstr_guid(const struct _GUID *id)
Definition: debughlp.cpp:414
WCHAR swShell32Name[MAX_PATH]
Definition: folders.cpp:22
UINT Grouping
Definition: winnls.h:641
LPFNCREATEINSTANCE lpfnCI
Definition: shellole.c:61
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
STDAPI_(BOOL) DllMain(HINSTANCE hInstance
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
#define WINE_FILEVERSION_MINOR
TCHAR * cmdline
Definition: stretchblt.cpp:32
EXTERN_C LPWSTR WINAPI AddCommasW(DWORD lValue, LPWSTR lpNumber)
Definition: shell32.cpp:33
BOOL WINAPI CreateEnvironmentBlock(OUT LPVOID *lpEnvironment, IN HANDLE hToken, IN BOOL bInherit)
Definition: environment.c:505
#define IID_PPV_ARG(Itype, ppType)
struct tagINITCOMMONCONTROLSEX INITCOMMONCONTROLSEX
HRESULT WINAPI DllInstall(BOOL bInstall, LPCWSTR cmdline)
Definition: shell32.cpp:471
UINT NegativeOrder
Definition: winnls.h:644
INT WINAPI GetLocaleInfoW(LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len)
Definition: lang.c:1098
HRESULT Init(_ATL_OBJMAP_ENTRY *p, HINSTANCE, const GUID *plibid)
Definition: atlbase.h:797
HINSTANCE hInstance
Definition: charmap.c:20
const GUID CLSID_FontsFolderShortcut
#define ICC_WIN95_CLASSES
Definition: commctrl.h:66
#define LOCALE_STHOUSAND
Definition: winnls.h:43
static HANDLE hUserToken
Definition: umpnpmgr.c:67
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
#define debugstr_w
Definition: kernel32.h:32
UINT NumDigits
Definition: winnls.h:639
#define FIXME(fmt,...)
Definition: debug.h:110
STDAPI DllGetVersion(DLLVERSIONINFO *pdvi)
Definition: shell32.cpp:321
#define STDMETHODIMP
Definition: basetyps.h:43
#define E_INVALIDARG
Definition: ddrawi.h:101
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:201
HRESULT DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: atlbase.h:935
smooth NULL
Definition: ftsmooth.c:416
STDAPI DllUnregisterServer()
Definition: shell32.cpp:447
BOOL WINAPI DllMain(IN HINSTANCE hinstDLL, IN DWORD dwReason, IN LPVOID lpvReserved)
Definition: kbsdll.c:83
WINE_DEFAULT_DEBUG_CHANNEL(shell)
#define ICC_USEREX_CLASSES
Definition: commctrl.h:68
virtual ~CStartMenuDummy()
#define WINE_FILEVERSION_MAJOR
HRESULT WINAPI SHCreateDefClassObject(REFIID riid, LPVOID *ppv, LPFNCREATEINSTANCE lpfnCI, LPDWORD pcRefDll, REFIID riidInst)
Definition: shell32.cpp:208
#define DLL_PROCESS_DETACH
Definition: compat.h:119
HRESULT Initialize(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, const IID *riidInstx)
Definition: shell32.cpp:156
#define MAKEDLLVERULL(mjr, mnr, bld, qfe)
Definition: shlwapi.h:1982
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
EXTERN_C BOOL WINAPI RegenerateUserEnvironment(LPVOID *lpEnvironment, BOOL bUpdateSelf)
Definition: shell32.cpp:71
#define ICC_DATE_CLASSES
Definition: commctrl.h:67
#define TRACE(s)
Definition: solgame.cpp:4
_CONST_RETURN wchar_t *__cdecl wcschr(_In_z_ const wchar_t *_Str, wchar_t _Ch)
const GUID CLSID_StartMenu
__wchar_t WCHAR
Definition: xmlstorage.h:180
HRESULT WINAPI UpdateRegistryFromResource(LPCTSTR lpszRes, BOOL bRegister, struct _ATL_REGMAP_ENTRY *pMapEntries=NULL)
Definition: atlbase.h:439
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IUnknown
HANDLE WINAPI GetCurrentProcess(VOID)
Definition: proc.c:1168
#define MAX_PATH
Definition: compat.h:26
#define swprintf(buf, format,...)
Definition: sprintf.c:56
#define WINAPI
Definition: msvc.h:8
return TRUE
Definition: shell32.cpp:396
DWORD dwReason
Definition: shell32.cpp:366
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD LPVOID fImpLoad
Definition: shell32.cpp:367
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW(IN LPCWSTR lpName, IN LPCWSTR lpValue)
Definition: environ.c:259
HRESULT WINAPI RSHELL_CStartMenu_CreateInstance(REFIID riid, void **ppv)
Definition: CStartMenu.cpp:418
HRESULT(CALLBACK * LPFNCREATEINSTANCE)(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
Definition: shell32.cpp:111
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
void InitChangeNotifications(void)
Definition: changenotify.c:183
static const WCHAR L[]
Definition: oid.c:1250
#define TOKEN_READ
Definition: setypes.h:897
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:893
const IID * riidInst
Definition: shell32.cpp:133
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662
#define DECLARE_REGISTRY_RESOURCEID(x)
Definition: atlcom.h:605
const GUID CLSID_MenuBandSite
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
#define InterlockedIncrement
Definition: armddk.h:53
void shell(int argc, const char *argv[])
Definition: cmds.c:1231
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: shell32.cpp:411
#define E_NOTIMPL
Definition: ddrawi.h:99
#define WINE_FILEVERSION_PLATFORMID
HRESULT IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, const IID *riidInst, IClassFactory **theFactory)
Definition: shell32.cpp:200
#define WINE_FILEVERSION_BUILD
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
Definition: security.c:296
STDAPI DllCanUnloadNow()
Definition: shell32.cpp:402
const WCHAR * class
Definition: main.c:68
uint32_t * LPDWORD
Definition: typedefs.h:57
void SIC_Destroy(void)
Definition: iconcache.cpp:632
CShell32Module gModule
Definition: shell32.cpp:302
UINT LeadingZero
Definition: winnls.h:640
#define IDR_FOLDEROPTIONS
Definition: shresdef.h:788
LPFNCREATEINSTANCE lpfnCI
Definition: shell32.cpp:132
#define BEGIN_OBJECT_MAP(x)
Definition: atlcom.h:649
HRESULT DllUnregisterServer(BOOL bUnRegTypeLib=TRUE)
Definition: atlbase.h:945
#define END_COM_MAP()
Definition: atlcom.h:552
INT WINAPI GetNumberFormatW(LCID lcid, DWORD dwFlags, LPCWSTR lpszValue, const NUMBERFMTW *lpFormat, LPWSTR lpNumberStr, int cchOut)
Definition: lcformat.c:1198
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define E_POINTER
Definition: winerror.h:2365
#define EXTERN_C
Definition: basetyps.h:12
const GUID IID_IClassFactory
signed int * PLONG
Definition: retypes.h:5
#define IsEqualCLSID(rclsid1, rclsid2)
Definition: guiddef.h:91
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
virtual HRESULT WINAPI CreateInstance(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObject)
Definition: shell32.cpp:172
HINSTANCE shell32_hInstance
Definition: shell32.cpp:358
#define END_OBJECT_MAP()
Definition: atlcom.h:651
#define IDR_STARTMENU
Definition: shresdef.h:801
CLSID * rclsid
Definition: shell32.cpp:131
HRESULT SHELL_RegisterShellFolders(void) DECLSPEC_HIDDEN
Definition: shellpath.c:2538