2 * The parameters of many functions changes between different OS versions
3 * (NT uses Unicode strings, 95 uses ASCII strings)
5 * Copyright 1997 Marcus Meissner
12 #include "debugtools.h"
19 #include "shell32_main.h"
20 #include "wine/undocshell.h"
22 DEFAULT_DEBUG_CHANNEL(shell);
24 /*************************************************************************
25 * ParseFieldA [internal]
27 * copys a field from a ',' delimited string
29 * first field is nField = 1
31 DWORD WINAPI ParseFieldA(
37 WARN("('%s',0x%08lx,%p,%ld) semi-stub.\n",src,nField,dst,len);
39 if (!src || !src[0] || !dst || !len)
42 /* skip n fields delimited by ',' */
45 if (*src=='\0') return FALSE;
46 if (*(src++)==',') nField--;
49 /* copy part till the next ',' to dst */
50 while ( *src!='\0' && *src!=',' && (len--)>0 ) *(dst++)=*(src++);
52 /* finalize the string */
58 /*************************************************************************
59 * ParseFieldW [internal]
61 * copys a field from a ',' delimited string
63 * first field is nField = 1
65 DWORD WINAPI ParseFieldW(LPCWSTR src, DWORD nField, LPWSTR dst, DWORD len)
67 FIXME("(%s,0x%08lx,%p,%ld) stub\n",
68 debugstr_w(src), nField, dst, len);
72 /*************************************************************************
73 * ParseFieldAW [SHELL32.58]
75 DWORD WINAPI ParseFieldAW(LPCVOID src, DWORD nField, LPVOID dst, DWORD len)
77 if (SHELL_OsIsUnicode())
78 return ParseFieldW(src, nField, dst, len);
79 return ParseFieldA(src, nField, dst, len);
82 /*************************************************************************
83 * GetFileNameFromBrowse [SHELL32.63]
86 BOOL WINAPI GetFileNameFromBrowse(
90 LPCSTR lpstrInitialDir,
95 FIXME("(%04x,%s,%ld,%s,%s,%s,%s):stub.\n",
96 hwndOwner, lpstrFile, nMaxFile, lpstrInitialDir, lpstrDefExt,
97 lpstrFilter, lpstrTitle);
99 /* puts up a Open Dialog and requests input into targetbuf */
100 /* OFN_HIDEREADONLY|OFN_NOCHANGEDIR|OFN_FILEMUSTEXIST|OFN_unknown */
101 strcpy(lpstrFile,"x:\\dummy.exe");
105 /*************************************************************************
106 * SHGetSetSettings [SHELL32.68]
108 VOID WINAPI SHGetSetSettings(DWORD x, DWORD y, DWORD z)
110 FIXME("0x%08lx 0x%08lx 0x%08lx\n", x, y, z);
113 /*************************************************************************
114 * SHGetSettings [SHELL32.@]
117 * the registry path are for win98 (tested)
118 * and possibly are the same in nt40
121 VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask)
125 DWORD dwDataSize = sizeof (DWORD);
127 TRACE("(%p 0x%08lx)\n",lpsfs,dwMask);
129 if (RegCreateKeyExA(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
130 0, 0, 0, KEY_ALL_ACCESS, 0, &hKey, 0))
133 if ( (SSF_SHOWEXTENSIONS & dwMask) && !RegQueryValueExA(hKey, "HideFileExt", 0, 0, (LPBYTE)&dwData, &dwDataSize))
134 lpsfs->fShowExtensions = ((dwData == 0) ? 0 : 1);
136 if ( (SSF_SHOWINFOTIP & dwMask) && !RegQueryValueExA(hKey, "ShowInfoTip", 0, 0, (LPBYTE)&dwData, &dwDataSize))
137 lpsfs->fShowInfoTip = ((dwData == 0) ? 0 : 1);
139 if ( (SSF_DONTPRETTYPATH & dwMask) && !RegQueryValueExA(hKey, "DontPrettyPath", 0, 0, (LPBYTE)&dwData, &dwDataSize))
140 lpsfs->fDontPrettyPath = ((dwData == 0) ? 0 : 1);
142 if ( (SSF_HIDEICONS & dwMask) && !RegQueryValueExA(hKey, "HideIcons", 0, 0, (LPBYTE)&dwData, &dwDataSize))
143 lpsfs->fHideIcons = ((dwData == 0) ? 0 : 1);
145 if ( (SSF_MAPNETDRVBUTTON & dwMask) && !RegQueryValueExA(hKey, "MapNetDrvBtn", 0, 0, (LPBYTE)&dwData, &dwDataSize))
146 lpsfs->fMapNetDrvBtn = ((dwData == 0) ? 0 : 1);
148 if ( (SSF_SHOWATTRIBCOL & dwMask) && !RegQueryValueExA(hKey, "ShowAttribCol", 0, 0, (LPBYTE)&dwData, &dwDataSize))
149 lpsfs->fShowAttribCol = ((dwData == 0) ? 0 : 1);
151 if (((SSF_SHOWALLOBJECTS | SSF_SHOWSYSFILES) & dwMask) && !RegQueryValueExA(hKey, "Hidden", 0, 0, (LPBYTE)&dwData, &dwDataSize))
153 { if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = 0;
154 if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 0;
156 else if (dwData == 1)
157 { if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = 1;
158 if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 0;
160 else if (dwData == 2)
161 { if (SSF_SHOWALLOBJECTS & dwMask) lpsfs->fShowAllObjects = 0;
162 if (SSF_SHOWSYSFILES & dwMask) lpsfs->fShowSysFiles = 1;
167 TRACE("-- 0x%04x\n", *(WORD*)lpsfs);
170 /*************************************************************************
171 * SHShellFolderView_Message [SHELL32.73]
174 * hwndCabinet defines the explorer cabinet window that contains the
175 * shellview you need to communicate with
176 * uMsg identifying the SFVM enum to perform
180 * Message SFVM_REARRANGE = 1
181 * This message gets sent when a column gets clicked to instruct the
182 * shell view to re-sort the item list. lParam identifies the column
185 int WINAPI SHShellFolderView_Message(
190 FIXME("%04x %08lx %08lx stub\n",hwndCabinet, dwMessage, dwParam);
194 /*************************************************************************
195 * RegisterShellHook [SHELL32.181]
198 * hwnd [I] window handle
202 * exported by ordinal
204 BOOL WINAPI RegisterShellHook(
208 FIXME("(0x%08x,0x%08lx):stub.\n",hWnd, dwType);
211 /*************************************************************************
212 * ShellMessageBoxW [SHELL32.182]
214 * Format and output errormessage.
216 * idText resource ID of title or LPSTR
217 * idTitle resource ID of title or LPSTR
220 * exported by ordinal
222 int WINAPIV ShellMessageBoxW(
230 WCHAR szText[100],szTitle[100];
231 LPCWSTR pszText = szText, pszTitle = szTitle, pszTemp;
235 va_start(args, uType);
236 /* wvsprintfA(buf,fmt, args); */
238 TRACE("(%08lx,%08lx,%p,%p,%08x)\n",
239 (DWORD)hInstance,(DWORD)hWnd,lpText,lpCaption,uType);
241 if (!HIWORD(lpCaption))
242 LoadStringW(hInstance, (DWORD)lpCaption, szTitle, sizeof(szTitle)/sizeof(szTitle[0]));
244 pszTitle = lpCaption;
247 LoadStringW(hInstance, (DWORD)lpText, szText, sizeof(szText)/sizeof(szText[0]));
251 FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING,
252 pszText, 0, 0, (LPWSTR)&pszTemp, 0, &args);
256 ret = MessageBoxW(hWnd,pszTemp,pszTitle,uType);
257 LocalFree((HLOCAL)pszTemp);
261 /*************************************************************************
262 * ShellMessageBoxA [SHELL32.183]
264 int WINAPIV ShellMessageBoxA(
272 char szText[100],szTitle[100];
273 LPCSTR pszText = szText, pszTitle = szTitle, pszTemp;
277 va_start(args, uType);
278 /* wvsprintfA(buf,fmt, args); */
280 TRACE("(%08lx,%08lx,%p,%p,%08x)\n",
281 (DWORD)hInstance,(DWORD)hWnd,lpText,lpCaption,uType);
283 if (!HIWORD(lpCaption))
284 LoadStringA(hInstance, (DWORD)lpCaption, szTitle, sizeof(szTitle));
286 pszTitle = lpCaption;
289 LoadStringA(hInstance, (DWORD)lpText, szText, sizeof(szText));
293 FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING,
294 pszText, 0, 0, (LPSTR)&pszTemp, 0, &args);
298 ret = MessageBoxA(hWnd,pszTemp,pszTitle,uType);
299 LocalFree((HLOCAL)pszTemp);
303 /*************************************************************************
304 * SHFree [SHELL32.195]
307 * free_ptr() - frees memory using IMalloc
308 * exported by ordinal
311 void WINAPI SHFree(LPVOID x)
314 WORD len = *(LPWORD)((LPBYTE)x-2);
316 if ( *(LPWORD)((LPBYTE)x+len) != 0x7384)
319 if ( (*(LPWORD)((LPBYTE)x-4)) != 0x8271)
322 memset((LPBYTE)x-4, 0xde, len+6);
324 TRACE("%p len=%u\n",x, len);
330 HeapFree(GetProcessHeap(), 0, x);
333 /*************************************************************************
334 * SHAlloc [SHELL32.196]
337 * void *task_alloc(DWORD len), uses SHMalloc allocator
338 * exported by ordinal
340 LPVOID WINAPI SHAlloc(DWORD len)
345 ret = (LPVOID) HeapAlloc(GetProcessHeap(),0,len+6);
347 ret = (LPVOID) HeapAlloc(GetProcessHeap(),0,len);
351 *(LPWORD)(ret) = 0x8271;
352 *(LPWORD)(ret+2) = (WORD)len;
353 *(LPWORD)(ret+4+len) = 0x7384;
355 memset(ret, 0xdf, len);
357 TRACE("%lu bytes at %p\n",len, ret);
361 /*************************************************************************
362 * SHRegisterDragDrop [SHELL32.86]
365 * exported by ordinal
367 HRESULT WINAPI SHRegisterDragDrop(
369 LPDROPTARGET pDropTarget)
371 FIXME("(0x%08x,%p):stub.\n", hWnd, pDropTarget);
372 if (GetShellOle()) return pRegisterDragDrop(hWnd, pDropTarget);
376 /*************************************************************************
377 * SHRevokeDragDrop [SHELL32.87]
380 * exported by ordinal
382 HRESULT WINAPI SHRevokeDragDrop(HWND hWnd)
384 FIXME("(0x%08x):stub.\n",hWnd);
388 /*************************************************************************
389 * SHDoDragDrop [SHELL32.88]
392 * exported by ordinal
394 HRESULT WINAPI SHDoDragDrop(
396 LPDATAOBJECT lpDataObject,
397 LPDROPSOURCE lpDropSource,
401 FIXME("(0x%04x %p %p 0x%08lx %p):stub.\n",
402 hWnd, lpDataObject, lpDropSource, dwOKEffect, pdwEffect);
406 /*************************************************************************
407 * ArrangeWindows [SHELL32.184]
410 WORD WINAPI ArrangeWindows(
417 FIXME("(0x%08x 0x%08lx %p 0x%04x %p):stub.\n",
418 hwndParent, dwReserved, lpRect, cKids, lpKids);
422 /*************************************************************************
423 * SignalFileOpen [SHELL32.103]
426 * exported by ordinal
429 SignalFileOpen (DWORD dwParam1)
431 FIXME("(0x%08lx):stub.\n", dwParam1);
436 /*************************************************************************
437 * SHAddToRecentDocs [SHELL32.@]
440 * uFlags [IN] SHARD_PATH or SHARD_PIDL
441 * pv [IN] string or pidl, NULL clears the list
446 DWORD WINAPI SHAddToRecentDocs (UINT uFlags,LPCVOID pv)
447 { if (SHARD_PIDL==uFlags)
448 { FIXME("(0x%08x,pidl=%p):stub.\n", uFlags,pv);
451 { FIXME("(0x%08x,%s):stub.\n", uFlags,(char*)pv);
455 /*************************************************************************
456 * SHCreateShellFolderViewEx [SHELL32.174]
459 * see IShellFolder::CreateViewObject
461 HRESULT WINAPI SHCreateShellFolderViewEx(
462 LPCSHELLFOLDERVIEWINFO psvcbi, /* [in] shelltemplate struct */
463 LPSHELLVIEW* ppv) /* [out] IShellView pointer */
468 TRACE("sf=%p pidl=%p cb=%p mode=0x%08x parm=0x%08lx\n",
469 psvcbi->pshf, psvcbi->pidlFolder, psvcbi->lpfnCallback,
470 psvcbi->uViewMode, psvcbi->dwUser);
472 psf = IShellView_Constructor(psvcbi->pshf);
475 return E_OUTOFMEMORY;
477 IShellView_AddRef(psf);
478 hRes = IShellView_QueryInterface(psf, &IID_IShellView, (LPVOID *)ppv);
479 IShellView_Release(psf);
483 /*************************************************************************
484 * SHWinHelp [SHELL32.127]
487 HRESULT WINAPI SHWinHelp (DWORD v, DWORD w, DWORD x, DWORD z)
488 { FIXME("0x%08lx 0x%08lx 0x%08lx 0x%08lx stub\n",v,w,x,z);
491 /*************************************************************************
492 * SHRunControlPanel [SHELL32.161]
495 HRESULT WINAPI SHRunControlPanel (DWORD x, DWORD z)
496 { FIXME("0x%08lx 0x%08lx stub\n",x,z);
499 /*************************************************************************
500 * ShellExecuteEx [SHELL32.291]
503 BOOL WINAPI ShellExecuteExAW (LPVOID sei)
504 { if (SHELL_OsIsUnicode())
505 return ShellExecuteExW (sei);
506 return ShellExecuteExA (sei);
508 /*************************************************************************
509 * ShellExecuteExA [SHELL32.292]
511 * placeholder in the commandline:
516 * %I adress of a global item ID (explorer switch /idlist)
517 * %L ??? path/url/current file ???
519 * %* all following parameters (see batfile)
521 BOOL WINAPI ShellExecuteExA (LPSHELLEXECUTEINFOA sei)
522 { CHAR szApplicationName[MAX_PATH],szCommandline[MAX_PATH],szPidl[20];
525 STARTUPINFOA startup;
526 PROCESS_INFORMATION info;
528 WARN("mask=0x%08lx hwnd=0x%04x verb=%s file=%s parm=%s dir=%s show=0x%08x class=%s incomplete\n",
529 sei->fMask, sei->hwnd, sei->lpVerb, sei->lpFile,
530 sei->lpParameters, sei->lpDirectory, sei->nShow,
531 (sei->fMask & SEE_MASK_CLASSNAME) ? sei->lpClass : "not used");
533 ZeroMemory(szApplicationName,MAX_PATH);
535 strcpy(szApplicationName, sei->lpFile);
537 ZeroMemory(szCommandline,MAX_PATH);
538 if (sei->lpParameters)
539 strcpy(szCommandline, sei->lpParameters);
541 if (sei->fMask & (SEE_MASK_CLASSKEY | SEE_MASK_INVOKEIDLIST | SEE_MASK_ICON | SEE_MASK_HOTKEY |
542 SEE_MASK_CONNECTNETDRV | SEE_MASK_FLAG_DDEWAIT |
543 SEE_MASK_DOENVSUBST | SEE_MASK_FLAG_NO_UI | SEE_MASK_UNICODE |
544 SEE_MASK_NO_CONSOLE | SEE_MASK_ASYNCOK | SEE_MASK_HMONITOR ))
546 FIXME("flags ignored: 0x%08lx\n", sei->fMask);
549 /* launch a document by fileclass like 'Wordpad.Document.1' */
550 if (sei->fMask & SEE_MASK_CLASSNAME)
552 /* the commandline contains 'c:\Path\wordpad.exe "%1"' */
553 HCR_GetExecuteCommand(sei->lpClass, (sei->lpVerb) ? sei->lpVerb : "open", szCommandline, 256);
554 /* fixme: get the extension of lpFile, check if it fits to the lpClass */
555 TRACE("SEE_MASK_CLASSNAME->'%s'\n", szCommandline);
558 /* process the IDList */
559 if ( (sei->fMask & SEE_MASK_INVOKEIDLIST) == SEE_MASK_INVOKEIDLIST) /*0x0c*/
561 SHGetPathFromIDListA (sei->lpIDList,szApplicationName);
562 TRACE("-- idlist=%p (%s)\n", sei->lpIDList, szApplicationName);
566 if (sei->fMask & SEE_MASK_IDLIST )
568 pos = strstr(szCommandline, "%I");
572 HGLOBAL hmem = SHAllocShared ( sei->lpIDList, ILGetSize(sei->lpIDList), 0);
573 pv = SHLockShared(hmem,0);
574 sprintf(szPidl,":%p",pv );
577 gap = strlen(szPidl);
579 memmove(pos+gap,pos+2,len);
580 memcpy(pos,szPidl,gap);
586 TRACE("execute:'%s','%s'\n",szApplicationName, szCommandline);
588 strcat(szApplicationName, " ");
589 strcat(szApplicationName, szCommandline);
591 ZeroMemory(&startup,sizeof(STARTUPINFOA));
592 startup.cb = sizeof(STARTUPINFOA);
594 if (! CreateProcessA(NULL, szApplicationName,
595 NULL, NULL, FALSE, 0,
596 NULL, NULL, &startup, &info))
598 sei->hInstApp = GetLastError();
604 /* Give 30 seconds to the app to come up */
605 if ( WaitForInputIdle ( info.hProcess, 30000 ) == 0xFFFFFFFF )
606 ERR("WaitForInputIdle failed: Error %ld\n", GetLastError() );
608 if(sei->fMask & SEE_MASK_NOCLOSEPROCESS)
609 sei->hProcess = info.hProcess;
611 CloseHandle( info.hProcess );
612 CloseHandle( info.hThread );
615 /*************************************************************************
616 * ShellExecuteExW [SHELL32.293]
619 BOOL WINAPI ShellExecuteExW (LPSHELLEXECUTEINFOW sei)
620 { SHELLEXECUTEINFOA seiA;
625 memcpy(&seiA, sei, sizeof(SHELLEXECUTEINFOA));
628 seiA.lpVerb = HEAP_strdupWtoA( GetProcessHeap(), 0, sei->lpVerb);
631 seiA.lpFile = HEAP_strdupWtoA( GetProcessHeap(), 0, sei->lpFile);
633 if (sei->lpParameters)
634 seiA.lpParameters = HEAP_strdupWtoA( GetProcessHeap(), 0, sei->lpParameters);
636 if (sei->lpDirectory)
637 seiA.lpDirectory = HEAP_strdupWtoA( GetProcessHeap(), 0, sei->lpDirectory);
639 if ((sei->fMask & SEE_MASK_CLASSNAME) && sei->lpClass)
640 seiA.lpClass = HEAP_strdupWtoA( GetProcessHeap(), 0, sei->lpClass);
644 ret = ShellExecuteExA(&seiA);
646 if (seiA.lpVerb) HeapFree( GetProcessHeap(), 0, (LPSTR) seiA.lpVerb );
647 if (seiA.lpFile) HeapFree( GetProcessHeap(), 0, (LPSTR) seiA.lpFile );
648 if (seiA.lpParameters) HeapFree( GetProcessHeap(), 0, (LPSTR) seiA.lpParameters );
649 if (seiA.lpDirectory) HeapFree( GetProcessHeap(), 0, (LPSTR) seiA.lpDirectory );
650 if (seiA.lpClass) HeapFree( GetProcessHeap(), 0, (LPSTR) seiA.lpClass );
655 static LPUNKNOWN SHELL32_IExplorerInterface=0;
656 /*************************************************************************
657 * SHSetInstanceExplorer [SHELL32.176]
662 HRESULT WINAPI SHSetInstanceExplorer (LPUNKNOWN lpUnknown)
663 { TRACE("%p\n", lpUnknown);
664 SHELL32_IExplorerInterface = lpUnknown;
665 return (HRESULT) lpUnknown;
667 /*************************************************************************
668 * SHGetInstanceExplorer [SHELL32.@]
671 * gets the interface pointer of the explorer and a reference
673 HRESULT WINAPI SHGetInstanceExplorer (LPUNKNOWN * lpUnknown)
674 { TRACE("%p\n", lpUnknown);
676 *lpUnknown = SHELL32_IExplorerInterface;
678 if (!SHELL32_IExplorerInterface)
681 IUnknown_AddRef(SHELL32_IExplorerInterface);
684 /*************************************************************************
685 * SHFreeUnusedLibraries [SHELL32.123]
690 void WINAPI SHFreeUnusedLibraries (void)
694 /*************************************************************************
695 * DAD_SetDragImage [SHELL32.136]
700 BOOL WINAPI DAD_SetDragImage(
701 HIMAGELIST himlTrack,
704 FIXME("%p %p stub\n",himlTrack, lppt);
707 /*************************************************************************
708 * DAD_ShowDragImage [SHELL32.137]
713 BOOL WINAPI DAD_ShowDragImage(BOOL bShow)
715 FIXME("0x%08x stub\n",bShow);
718 /*************************************************************************
719 * ReadCabinetState [NT 4.0:SHELL32.651]
722 HRESULT WINAPI ReadCabinetState(DWORD u, DWORD v)
723 { FIXME("0x%04lx 0x%04lx stub\n",u,v);
726 /*************************************************************************
727 * WriteCabinetState [NT 4.0:SHELL32.652]
730 HRESULT WINAPI WriteCabinetState(DWORD u)
731 { FIXME("0x%04lx stub\n",u);
734 /*************************************************************************
735 * FileIconInit [SHELL32.660]
738 BOOL WINAPI FileIconInit(BOOL bFullInit)
739 { FIXME("(%s)\n", bFullInit ? "true" : "false");
742 /*************************************************************************
743 * IsUserAdmin [NT 4.0:SHELL32.680]
746 HRESULT WINAPI IsUserAdmin(void)
751 /*************************************************************************
752 * SHAllocShared [SHELL32.520]
755 * parameter1 is return value from HeapAlloc
756 * parameter2 is equal to the size allocated with HeapAlloc
757 * parameter3 is return value from GetCurrentProcessId
759 * the return value is posted as lParam with 0x402 (WM_USER+2) to somewhere
760 * WM_USER+2 could be the undocumented CWM_SETPATH
761 * the allocated memory contains a pidl
763 HGLOBAL WINAPI SHAllocShared(LPVOID psrc, DWORD size, DWORD procID)
767 TRACE("ptr=%p size=0x%04lx procID=0x%04lx\n",psrc,size,procID);
768 hmem = GlobalAlloc(GMEM_FIXED, size);
772 pmem = GlobalLock (hmem);
777 memcpy (pmem, psrc, size);
781 /*************************************************************************
782 * SHLockShared [SHELL32.521]
785 * parameter1 is return value from SHAllocShared
786 * parameter2 is return value from GetCurrentProcessId
787 * the receiver of (WM_USER+2) trys to lock the HANDLE (?)
788 * the returnvalue seems to be a memoryadress
790 LPVOID WINAPI SHLockShared(HANDLE hmem, DWORD procID)
791 { TRACE("handle=0x%04x procID=0x%04lx\n",hmem,procID);
792 return GlobalLock(hmem);
794 /*************************************************************************
795 * SHUnlockShared [SHELL32.522]
798 * parameter1 is return value from SHLockShared
800 BOOL WINAPI SHUnlockShared(LPVOID pv)
803 return GlobalUnlock((HANDLE)pv);
805 /*************************************************************************
806 * SHFreeShared [SHELL32.523]
809 * parameter1 is return value from SHAllocShared
810 * parameter2 is return value from GetCurrentProcessId
812 BOOL WINAPI SHFreeShared(
816 TRACE("handle=0x%04x 0x%04lx\n",hMem,pid);
817 return GlobalFree(hMem);
820 /*************************************************************************
821 * SetAppStartingCursor [SHELL32.99]
823 HRESULT WINAPI SetAppStartingCursor(HWND u, DWORD v)
824 { FIXME("hwnd=0x%04x 0x%04lx stub\n",u,v );
827 /*************************************************************************
828 * SHLoadOLE [SHELL32.151]
831 HRESULT WINAPI SHLoadOLE(DWORD u)
832 { FIXME("0x%04lx stub\n",u);
835 /*************************************************************************
836 * DriveType [SHELL32.64]
839 HRESULT WINAPI DriveType(DWORD u)
840 { FIXME("0x%04lx stub\n",u);
843 /*************************************************************************
844 * SHAbortInvokeCommand [SHELL32.198]
847 HRESULT WINAPI SHAbortInvokeCommand(void)
851 /*************************************************************************
852 * SHOutOfMemoryMessageBox [SHELL32.126]
855 int WINAPI SHOutOfMemoryMessageBox(
860 FIXME("0x%04x %s 0x%08x stub\n",hwndOwner, lpCaption, uType);
863 /*************************************************************************
864 * SHFlushClipboard [SHELL32.121]
867 HRESULT WINAPI SHFlushClipboard(void)
872 /*************************************************************************
873 * SHWaitForFileToOpen [SHELL32.97]
876 BOOL WINAPI SHWaitForFileToOpen(
881 FIXME("%p 0x%08lx 0x%08lx stub\n", pidl, dwFlags, dwTimeout);
885 /************************************************************************
886 * shell32_654 [SHELL32.654]
888 * NOTES: first parameter seems to be a pointer (same as passed to WriteCabinetState)
889 * second one could be a size (0x0c). The size is the same as the structure saved to
890 * HCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState
891 * I'm (js) guessing: this one is just ReadCabinetState ;-)
893 HRESULT WINAPI shell32_654 (DWORD x, DWORD y)
894 { FIXME("0x%08lx 0x%08lx stub\n",x,y);
898 /************************************************************************
899 * RLBuildListOfPaths [SHELL32.146]
904 DWORD WINAPI RLBuildListOfPaths (void)
908 /************************************************************************
909 * SHValidateUNC [SHELL32.173]
912 HRESULT WINAPI SHValidateUNC (DWORD x, DWORD y, DWORD z)
914 FIXME("0x%08lx 0x%08lx 0x%08lx stub\n",x,y,z);
918 /************************************************************************
919 * DoEnvironmentSubstA [SHELL32.@]
922 HRESULT WINAPI DoEnvironmentSubstA(LPSTR x, LPSTR y)
924 FIXME("(%s, %s) stub\n", debugstr_a(x), debugstr_a(y));
928 /************************************************************************
929 * DoEnvironmentSubstW [SHELL32.@]
932 HRESULT WINAPI DoEnvironmentSubstW(LPWSTR x, LPWSTR y)
934 FIXME("(%s, %s): stub\n", debugstr_w(x), debugstr_w(y));
938 /************************************************************************
939 * DoEnvironmentSubst [SHELL32.53]
942 HRESULT WINAPI DoEnvironmentSubstAW(LPVOID x, LPVOID y)
944 if (SHELL_OsIsUnicode())
945 return DoEnvironmentSubstW(x, y);
946 return DoEnvironmentSubstA(x, y);
949 /*************************************************************************
950 * shell32_243 [SHELL32.243]
952 * Win98+ by-ordinal routine. In Win98 this routine returns zero and
953 * does nothing else. Possibly this does something in NT or SHELL32 5.0?
957 BOOL WINAPI shell32_243(DWORD a, DWORD b)
962 /*************************************************************************
963 * SHELL32_714 [SHELL32]
965 DWORD WINAPI SHELL32_714(LPVOID x)
967 FIXME("(%s)stub\n", debugstr_w(x));
971 /*************************************************************************
972 * SHAddFromPropSheetExtArray [SHELL32.167]
974 DWORD WINAPI SHAddFromPropSheetExtArray(DWORD a, DWORD b, DWORD c)
976 FIXME("(%08lx,%08lx,%08lx)stub\n", a, b, c);
980 /*************************************************************************
981 * SHCreatePropSheetExtArray [SHELL32.168]
983 DWORD WINAPI SHCreatePropSheetExtArray(DWORD a, LPCSTR b, DWORD c)
985 FIXME("(%08lx,%s,%08lx)stub\n", a, debugstr_a(b), c);
989 /*************************************************************************
990 * SHReplaceFromPropSheetExtArray [SHELL]
992 DWORD WINAPI SHReplaceFromPropSheetExtArray(DWORD a, DWORD b, DWORD c, DWORD d)
994 FIXME("(%08lx,%08lx,%08lx,%08lx)stub\n", a, b, c, d);
998 /*************************************************************************
999 * SHDestroyPropSheetExtArray [SHELL32.169]
1001 DWORD WINAPI SHDestroyPropSheetExtArray(DWORD a)
1003 FIXME("(%08lx)stub\n", a);