mirror of
https://github.com/reactos/wine.git
synced 2025-03-07 12:17:33 +00:00

Sun Sep 27 14:25:38 1998 Petter Reinholdtsen <pere@td.org.uit.no> * [files/drive.c] Make sure GetDriveType32A() handles param NULL. Added some doc on function. Sun Sep 27 14:07:26 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk> * [controls/edit.c] [windows/win.c] Don't call SetWindowLong() in EDIT_WM_NCREATE. Fix SetWindowLong(GWL_[EX]STYLE) to work for 16bit windows. Remove UpdateWindow() call. Sun Sep 27 13:41:22 1998 Alexandre Julliard <julliard@lrc.epfl.ch> * [scheduler/*.c] [server/event.c] [server/mutex.c] [server/semaphore.c] Implemented server-side synchronisation objects. Sun Sep 27 01:13:35 1998 Alex Priem <alexp@sci.kun.nl> * [dlls/comctl32/treeview.c] [include/treeview.h] [include/comctl.h] Treeview implementation. * [dlls/comctl32/trackbar.c] [include/trackbar.h] Trackbar implementation. Sat Sep 26 20:49:13 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de> * [if1632/thunk.c] [tools/build.c] [win32/kernel32.c] Bugfix: several problems with flat thunks fixed. * [memory/selector.c] Bugfix: IsBad...Ptr16 didn't work for limit_in_pages segments. * [scheduler/thread.c] Bugfix: CreateThread: Allow id parameter == NULL. * [objects/gdiobj.c] Bugfix: IsGDIObject: Return correct object type for stock objects. * [msdos/dpmi.c] Bugfix: fixed typo in INT_DoRealModeInt. * [msdos/int21.c] Bugfix: int21 READ *must* use WIN16_hread, not _hread16. * [if1632/kernel.spec] [if1632/dummy.c] [if1632/thunk.c] [loader/ne/module.c] [scheduler/event.c] [scheduler/synchro.c] [scheduler/thread.c] [win32/kernel32.c] [win32/ordinals.c] Added names/stubs for all undocumented KERNEL routines (Win95). Added the following undoc. 16-bit equivalents to Win32 routines: KERNEL.441-443,449-453,456-462,471-476,479-486,488. Added stubs for some other KERNEL routines. * [memory/heap.c] [memory/global.c] [include/global.h] Implemented Local32... 32-bit local heap routines (KERNEL.208-215, 229). * [miscemu/instr.c] [loader/module.c] [include/module.h] Implemented __GP fault handling and HasGPHandler (KERNEL.338). * [misc/error.c] Implemented LogParamErrorRegs (KERNEL.327). * [loader/task.c] [include/windows.h] Implemented GetCodeInfo (KERNEL.104). * [loader/task.c] [scheduler/thread.c] [include/thread.h] Implemented [GS]etThreadQueue and [GS]etFastQueue (KERNEL.463/4, 624/5). * [if1632/gdi.spec] [objects/dc.c] [objects/dib.c] [objects/bitmap.c] [include/windows.h] Bugfix: fixed wrong parameter for CreateDIBSection16. Added [GS]etDIBColorTable16, stub for GetBoundsRect16. Partially implemented BITMAP_GetObject16 for DIBs. * [if1632/gdi.spec] [relay32/gdi32.spec] [objects/palette.c] Added some GDI stubs. * [if1632/Makefile.in] [if1632/display.spec] [if1632/mouse.spec] [if1632/keyboard.spec] [if1632/builtin.c] [windows/keyboard.c] Added some stubs for Win16 drivers: KEYBOARD, MOUSE, DISPLAY. * [if1632/wprocs.spec] [msdos/vxd.c] Added some stubs for VxDs: VMM, ConfigMG, TimerAPI. * [msdos/int2f.c] Added some stubs for real-mode network drivers. Sat Sep 26 18:18:18 1998 Marcus Meissner <marcus@jet.franken.de> * [configure.in] Merged in some more of the FreeBSD ports/emulators/wine patches. (Maintainer(s) of this port: You can just submit these patches to Alexandre directly.) * [loader/pe_image.c] Check filesize of image against size derived from header to spot truncated executeables without crashing. * [files/directory.c] Set envvar "COMSPEC". One win32(!!) program crashes without it. * [multimedia/mmio.c] Added mmioSetInfo32. * [include/file.h] Return STD_ERROR_HANDLE for AUX and PRT dos handles. * [loader/module.c] Handle executeables with spaces in their names a bit better in CreateProcess. * [relay32/msvfw32.spec][if1632/msvideo.spec][multimedia/msvideo.c][include/vfw.h] Started on MS Video support (can load Win32 ICMs). * [tools/testrun] A bit smarter use of ps. * [memory/virtual.c] Report PAGE_GUARDed pages as PAGE_PROTECTED (AutoCAD LT R17 fails without that check (since Win95 doesn't know about PAGE_GUARD)). Sat Sep 26 15:04:05 1998 Ove Kaaven <ovek@arcticnet.no> * [include/miscemu.h] [if1632/builtin.c] [loader/task.c] [miscemu/instr.c] [msdos/dpmi.c] [msdos/int21.c] [msdos/interrupts.c] [windows/user.c] INT_[S|G]etHandler was renamed to INT_[S|G]etPMHandler. Added handlers to deal with real-mode interrupts; DOS programs are now able to hook real-mode interrupts. * [loader/dos/module.c] [msdos/dosmem.c] [msdos/int21.c] Moved real-mode interrupt table initialization to msdos/dosmem.c, and made new V86 tasks get a full copy of the existing "system memory" instead of almost empty space. Misc fixes. * [include/dosexe.h] [loader/dos/module.c] [msdos/dpmi.c] [msdos/int2f.c] First shot at letting DOS programs start up DPMI (but DPMI is still disabled for DOS programs, for pkunzip's sake). * [include/debugger.h] [debugger/break.c] [debugger/dbg.y] [debugger/registers.c] [debugger/memory.c] [debugger/info.c] [loader/dos/dosvm.c] First shot at making Wine's debugger work for DOS programs. The -debug flag works, as do "nexti" and "stepi". Sat Sep 26 13:13:13 1998 Juergen Schmied <juergen.schmied@metronet.de> * [dlls/shell32/dataobject.c] New classes IEnumFORMATETC implemented, IDataObject stubs. * [dlls/shell32/*.*][relay32/shell32.spec] Bugfixes. New: ICM_InsertItem(), ILCreateFromPath(). Implemented: ILCloneFirst(). Stubs: ILIsEqual(), ILFindChild(), SHLogILFromFSIL(), PathMatchSpec(), PathIsExe(). Changed: ILGetSize(), _ILIsDesktop(), PathCombine(). * [include/shlobj.h] New SHLGUID's New structures: DVTARGETDEVICE32, STGMEDIUM32, FORMATETC32, CLIPFORMAT32. New interfaces: IEnumFORMATETC, IDataObject, ICommDlgBrowser IDockingWindowFrame, IServiceProvider. * [dlls/shell32/folders.c] Stubs for IShellLink. * [loader/resource.c] Small fixes. * [misc/crtdll.c][relay32/crtdll.spec] New __dllonexit(). * [windows/message.c] SendNotifyMessageA, SendMessageCallBack32A half implemented. * [controls/edit.c] EDIT_WM_SetText set EF_UPDATE flag not for ES_MULTILINE. * [files/file.c] Handling of fileposition fixed. Fri Sep 25 18:13:30 1998 Patrik Stridvall <ps@leissner.se> * [include/windows.h] [include/wintypes.h] [ole/ole2nls.h] [relay32/kernel32.spec] Implemented EnumDateFormats and EnumTimeFormats. Only adds US English support. * [Makefile.in] [configure.in] [dlls/Makefile.in] [dlls/psapi/Makefile.in] [dlls/psapi/psapi_main.c] New files to implement stubs for PSAPI.DLL (NT only). * [relay32/Makefile.in] [relay32/builtin32.c] [relay32/psapi.spec] New spec file for PSAPI.DLL (NT only). * [scheduler/handle.c] HANDLE_GetObjPtr should only interpret the pseudo handles as the current thread or the current process if a thread or a process is requested. * [include/winversion.h] [misc/version.c] Adds the global function VERSION_GetVersion() so functions can have different behavior depending on the -winver flag. * [include/oledlg.h] [ole/oledlg.c] Minor fixes. * [windows/winproc.c] Minor changes. * [include/imm.h] [misc/imm.c] Now returns correct values under both Windows 95 and NT 4.0. Thu Sep 24 22:11:44 1998 Kristian Nielsen <kristian.nielsen@risoe.dk> * [configure.in] [include/acconfig.h] [include/thread.h] [scheduler/sysdeps.c] Autoconfig test for non-reentrant libc. Wed Sep 23 19:52:12 1998 Matthew Becker <mbecker@glasscity.net> * [*/*.c] Miscellaneous documentation updates and debugging output standardizations. * [objects/clipping.c] Added ExtSelectClipRgn. Wed Sep 23 00:03:28 EDT 1998 Pete Ratzlaff <pratzlaff@cfa.harvard.edu> * [include/windows.h] [if1632/user.spec] [relay32/user32.spec] [windows/keyboard.c] Added, marginally implemented, GetKeyboardLayoutName(). Only returns US English keyboard name. Tue Sep 22 16:32:41 1998 Marcel Baur <mbaur@iiic.ethz.ch> * [programs/control/*] New Winelib application. Mon Sep 21 00:29:18 1998 Peter Hunnisett <hunnise@nortel.ca> * [include/dplay.h][multimedia/dplay.c][ole/compobj.c] Added all DirectPlayLobby interfaces and enhanced DirectPlay and DirectPlayLobby support. Still not all that much. Useful enough if you just need to start a program, don't try any real dplay/lobby stuff. * [documentation/status/directplay] Added a very little bit. * [graphics/ddraw.c] - Call to SetWindowLong32A wasn't working because there was no memory set aside when the window class was registered. - Fixed some xlib reference counting and change the behaviour of DirectDrawSurface3_SetPalette to mimic observed behaviour (palette is associated will all backbuffers) - Also stored all palette colour fields and spit back our saved colour fields rather than query X for them. - Added plenty of AddRef and Release traces. - Added Xlib support for using -desktop option. - Fixed Xlib message handling. Messages weren't being passed to the application. Fixes mouse movements in some xlib DDraw games. - Added a few stubs. * [windows/win.c][include/winerror.h] Fixed up some error handling in WIN_SetWindowLong. SetLastError wasn't being used. Could cause problems with 0 return codes. Added new error in winerror (1400). * [AUTHORS] [include/authors.h] Added myself as a Wine author. Sun Sep 20 21:22:44 1998 Alexander Larsson <alla@lysator.liu.se> * [loader/module.c] Changed GetModuleFileName32A so that is returns the long version of the filename. Note that just the name is long, not the directories. Sat Sep 19 20:05:30 1998 Per Ångström <pang@mind.nu> * [controls/menu.c] Made a couple of fixes to make life easier for applications that alter their menus at runtime. * [windows/defdlg.c] Removed the cast of the return value from dialog procedures to a 16-bit bool. The return value needs to retain all its 32 bits, since it is not always a bool, such as when responding to the WM_NCHITTEST message. Fri Sep 18 11:30:38 1998 Sergey Turchanov <turchanov@usa.net> * [loader/resource.c] Fixed very funny bug (though gravely affecting further excecution) with FindResource[Ex]32 functions. * [include/multimon.h] [windows/multimon.c] [relay32/user32.spec] [include/windows.h] [windows/sysmetrics.c] Default implementation for Multimonitor API. * [include/windows.h] [windows/winpos.c] Fixed incorrect declaration (and behaviour) of GetWindowRect32. Wed Sep 16 10:21:15 1998 Gerard Patel <G.Patel@Wanadoo.fr> * [controls/edit.c] Fixed EDIT_EM_GetLine to use correctly length of lines. Tue Sep 15 20:40:16 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de> * [misc/tweak.c][include/tweak.h][controls/menu.c] Replaced the tweak graphic routines by calls to DrawEdge32(). * [misc/tweak.c][include/tweak.h][documentation/win95look] [wine.ini][*/*] Changed "look and feel" selection. Allows Win3.1, Win95 and Win98 (no GUI code implemented) look and feel. * [dlls/comctl32/header.c][include/header.h][include/commctrl.h] Started callback item support and did some minor improvements. * [dlls/comctl32/imagelist.c] Fixed bug in transparent image display. ImageList_GetIcon is still buggy :-( * [dlls/comctl32/toolbar.c] Fixed button drawing (partial hack). * [dlls/comctl32/commctrl.c] Fixed MenuHelp(). * [controls/button.c] Added 3d effect for groupbox. * [windows/msgbox.c] Added font support for message boxes. * [windows/nonclient.c] Fixed window moving bug. * [dlls/comctl32/*.c] Various improvements. * [dlls/comctl32/listview.c][dlls/comctl32/rebar.c] [include/commctrl.h] More messages. * [windows/syscolor.c][include/windows.h] Introduced new Win98 system colors. Tue Sep 15 18:29:45 1998 Wesley Filardo <eightknots@aol.com> * [files/profile.c] Added support in PROFILE_LoadWineIni for -config option * [misc/main.c] [include/options.h] Added -config option. Tue Sep 15 18:22:26 1998 Petter Reinholdtsen <pere@td.org.uit.no> * [documentation/Makefile.in] Make sure directory exists before installing into it. Tue Sep 15 01:47:33 1998 Pablo Saratxaga <pablo.sarachaga@ping.be> * [ole/nls/*] [ole/ole2nls.c] [include/winnls.h] Fixed a few errors and completed some NLS files. Mon Sep 14 01:23:45 1998 Joseph Pranevich <knight@baltimore.wwaves.com> * [include/miscemu.h] [msdos/interrupts.c] Removed a compilation warning, added INT 25 to the list of interrupts callable from DOS applications, added a debug message when unsupported interrupts are used. Sun Sep 13 19:55:22 1998 Lawson Whitney <lawson_whitney@juno.com> * [if1632/relay.c] CallProcEx32W should not reverse arguments. Sun Aug 17 21:18:12 1998 Eric Pouech <eric.pouech@lemel.fr> * [multimedia/midi.c] [multimedia/init.c] [multimedia/mmsys.c] [include/multimedia.h] [include/mmsystem.h] [multimedia/Makefile.in] [multimedia/midipatch.c] [if1632/multimedia.spec] Made MIDI input and output functional on OSS capable systems. * [multimedia/timer.c] Changes to trigger callbacks at the accurate pace even when fake timers are used.
1163 lines
42 KiB
C
1163 lines
42 KiB
C
#ifndef _WINE_SHLOBJ_H
|
|
#define _WINE_SHLOBJ_H
|
|
|
|
#include "shell.h"
|
|
#include "ole.h"
|
|
#include "ole2.h"
|
|
#include "compobj.h"
|
|
#include "storage.h"
|
|
#include "commctrl.h"
|
|
#include "interfaces.h"
|
|
|
|
#define STDMETHOD(xfn) HRESULT (CALLBACK *fn##xfn)
|
|
#define STDMETHOD_(type,xfn) type (CALLBACK *fn##xfn)
|
|
#define PURE
|
|
#define FAR
|
|
#define THIS_ THIS,
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
* DllGetClassObject
|
|
*/
|
|
DWORD WINAPI SHELL32_DllGetClassObject(LPCLSID,REFIID,LPVOID*);
|
|
|
|
|
|
typedef LPVOID LPBC; /* *IBindCtx really */
|
|
|
|
/* foreward declaration of the objects*/
|
|
typedef struct tagCONTEXTMENU *LPCONTEXTMENU, IContextMenu;
|
|
typedef struct tagSHELLEXTINIT *LPSHELLEXTINIT,IShellExtInit;
|
|
typedef struct tagENUMIDLIST *LPENUMIDLIST, IEnumIDList;
|
|
typedef struct tagSHELLFOLDER *LPSHELLFOLDER, IShellFolder;
|
|
typedef struct tagSHELLVIEW *LPSHELLVIEW, IShellView;
|
|
typedef struct tagSHELLBROWSER *LPSHELLBROWSER,IShellBrowser;
|
|
typedef struct tagDATAOBJECT *LPDATAOBJECT, IDataObject;
|
|
typedef struct tagSHELLICON *LPSHELLICON, IShellIcon;
|
|
typedef struct tagDOCKINGWINDOWFRAME *LPDOCKINGWINDOWFRAME, IDockingWindowFrame;
|
|
typedef struct tagSERVICEPROVIDER *LPSERVICEPROVIDER, IServiceProvider;
|
|
typedef struct tagCOMMDLGBROWSER *LPCOMMDLGBROWSER, ICommDlgBrowser;
|
|
typedef struct tagENUMFORMATETC *LPENUMFORMATETC, IEnumFORMATETC;
|
|
|
|
typedef struct IAdviseSink IAdviseSink, *LPIADVISESINK;
|
|
typedef struct IEnumSTATDATA IEnumSTATDATA, *LPENUMSTATDATA;
|
|
/****************************************************************************
|
|
* SHELL ID
|
|
*/
|
|
/* strange Objects */
|
|
DEFINE_SHLGUID(IID_IEnumUnknown, 0x00000100L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IEnumString, 0x00000101L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IEnumMoniker, 0x00000102L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IEnumFORMATETC, 0x00000103L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IEnumOLEVERB, 0x00000104L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IEnumSTATDATA, 0x00000105L, 0, 0);
|
|
|
|
DEFINE_SHLGUID(IID_IPersistStream, 0x00000109L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IPersistStorage, 0x0000010AL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IPersistFile, 0x0000010BL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IPersist, 0x0000010CL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IViewObject, 0x0000010DL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IDataObject, 0x0000010EL, 0, 0);
|
|
|
|
DEFINE_GUID (IID_IServiceProvider, 0x6D5140C1L, 0x7436, 0x11CE, 0x80, 0x34, 0x00, 0xAA, 0x00, 0x60, 0x09, 0xFA);
|
|
DEFINE_GUID (IID_IDockingWindow, 0x012dd920L, 0x7B26, 0x11D0, 0x8C, 0xA9, 0x00, 0xA0, 0xC9, 0x2D, 0xBF, 0xE8);
|
|
DEFINE_GUID (IID_IDockingWindowSite, 0x2A342FC2L, 0x7B26, 0x11D0, 0x8C, 0xA9, 0x00, 0xA0, 0xC9, 0x2D, 0xBF, 0xE8);
|
|
DEFINE_GUID (IID_IDockingWindowFrame, 0x47D2657AL, 0x7B27, 0x11D0, 0x8C, 0xA9, 0x00, 0xA0, 0xC9, 0x2D, 0xBF, 0xE8);
|
|
|
|
DEFINE_SHLGUID(CLSID_ShellDesktop, 0x00021400L, 0, 0);
|
|
DEFINE_SHLGUID(CLSID_ShellLink, 0x00021401L, 0, 0);
|
|
/* shell32 formatids */
|
|
DEFINE_SHLGUID(FMTID_Intshcut, 0x000214A0L, 0, 0);
|
|
DEFINE_SHLGUID(FMTID_InternetSite, 0x000214A1L, 0, 0);
|
|
/* command group ids */
|
|
DEFINE_SHLGUID(CGID_Explorer, 0x000214D0L, 0, 0);
|
|
DEFINE_SHLGUID(CGID_ShellDocView, 0x000214D1L, 0, 0);
|
|
|
|
/* shell32interface ids */
|
|
DEFINE_SHLGUID(IID_INewShortcutHookA, 0x000214E1L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellBrowser, 0x000214E2L, 0, 0);
|
|
#define SID_SShellBrowser IID_IShellBrowser
|
|
DEFINE_SHLGUID(IID_IShellView, 0x000214E3L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IContextMenu, 0x000214E4L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellIcon, 0x000214E5L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellFolder, 0x000214E6L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellExtInit, 0x000214E8L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellPropSheetExt, 0x000214E9L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IExtractIcon, 0x000214EBL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellLink, 0x000214EEL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellCopyHook, 0x000214EFL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IFileViewer, 0x000214F0L, 0, 0);
|
|
DEFINE_SHLGUID(IID_ICommDlgBrowser, 0x000214F1L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IEnumIDList, 0x000214F2L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IFileViewerSite, 0x000214F3L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IContextMenu2, 0x000214F4L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellExecuteHookA, 0x000214F5L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IPropSheetPage, 0x000214F6L, 0, 0);
|
|
DEFINE_SHLGUID(IID_INewShortcutHookW, 0x000214F7L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IFileViewerW, 0x000214F8L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellLinkW, 0x000214F9L, 0, 0);
|
|
DEFINE_SHLGUID(IID_IExtractIconW, 0x000214FAL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellExecuteHookW, 0x000214FBL, 0, 0);
|
|
DEFINE_SHLGUID(IID_IShellCopyHookW, 0x000214FCL, 0, 0);
|
|
|
|
/****************************************************************************
|
|
* STRRET
|
|
*/
|
|
#define STRRET_WSTR 0x0000
|
|
#define STRRET_OFFSET 0x0001
|
|
#define STRRET_CSTR 0x0002
|
|
|
|
typedef struct _STRRET
|
|
{ UINT32 uType; /* STRRET_xxx */
|
|
union
|
|
{ LPWSTR pOleStr; /* OLESTR that will be freed */
|
|
UINT32 uOffset; /* OffsetINT32o SHITEMID (ANSI) */
|
|
char cStr[MAX_PATH]; /* Buffer to fill in */
|
|
}u;
|
|
} STRRET,*LPSTRRET;
|
|
|
|
/*****************************************************************************
|
|
* IContextMenu interface
|
|
*/
|
|
#define THIS LPCONTEXTMENU this
|
|
|
|
/* default menu items*/
|
|
#define IDM_EXPLORE 0
|
|
#define IDM_OPEN 1
|
|
#define IDM_RENAME 2
|
|
#define IDM_LAST IDM_RENAME
|
|
|
|
/* QueryContextMenu uFlags */
|
|
#define CMF_NORMAL 0x00000000
|
|
#define CMF_DEFAULTONLY 0x00000001
|
|
#define CMF_VERBSONLY 0x00000002
|
|
#define CMF_EXPLORE 0x00000004
|
|
#define CMF_NOVERBS 0x00000008
|
|
#define CMF_CANRENAME 0x00000010
|
|
#define CMF_NODEFAULT 0x00000020
|
|
#define CMF_INCLUDESTATIC 0x00000040
|
|
#define CMF_RESERVED 0xffff0000 // View specific
|
|
|
|
/* GetCommandString uFlags */
|
|
#define GCS_VERBA 0x00000000 // canonical verb
|
|
#define GCS_HELPTEXTA 0x00000001 // help text (for status bar)
|
|
#define GCS_VALIDATEA 0x00000002 // validate command exists
|
|
#define GCS_VERBW 0x00000004 // canonical verb (unicode)
|
|
#define GCS_HELPTEXTW 0x00000005 // help text (unicode version)
|
|
#define GCS_VALIDATEW 0x00000006 // validate command exists (unicode)
|
|
#define GCS_UNICODE 0x00000004 // for bit testing - Unicode string
|
|
|
|
#define GCS_VERB GCS_VERBA
|
|
#define GCS_HELPTEXT GCS_HELPTEXTA
|
|
#define GCS_VALIDATE GCS_VALIDATEA
|
|
|
|
#define CMDSTR_NEWFOLDERA "NewFolder"
|
|
#define CMDSTR_VIEWLISTA "ViewList"
|
|
#define CMDSTR_VIEWDETAILSA "ViewDetails"
|
|
#define CMDSTR_NEWFOLDERW L"NewFolder"
|
|
#define CMDSTR_VIEWLISTW L"ViewList"
|
|
#define CMDSTR_VIEWDETAILSW L"ViewDetails"
|
|
|
|
#define CMDSTR_NEWFOLDER CMDSTR_NEWFOLDERA
|
|
#define CMDSTR_VIEWLIST CMDSTR_VIEWLISTA
|
|
#define CMDSTR_VIEWDETAILS CMDSTR_VIEWDETAILSA
|
|
|
|
#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY
|
|
#define CMIC_MASK_ICON SEE_MASK_ICON
|
|
#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI
|
|
#define CMIC_MASK_UNICODE SEE_MASK_UNICODE
|
|
#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE
|
|
#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME
|
|
#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM
|
|
#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE
|
|
#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK
|
|
|
|
#define CMIC_MASK_PTINVOKE 0x20000000
|
|
|
|
/*NOTE: When SEE_MASK_HMONITOR is set, hIcon is treated as hMonitor */
|
|
typedef struct tagCMINVOKECOMMANDINFO
|
|
{ DWORD cbSize; // sizeof(CMINVOKECOMMANDINFO)
|
|
DWORD fMask; // any combination of CMIC_MASK_*
|
|
HWND32 hwnd; // might be NULL (indicating no owner window)
|
|
LPCSTR lpVerb; // either a string or MAKEINTRESOURCE(idOffset)
|
|
LPCSTR lpParameters; // might be NULL (indicating no parameter)
|
|
LPCSTR lpDirectory; // might be NULL (indicating no specific directory)
|
|
INT32 nShow; // one of SW_ values for ShowWindow() API
|
|
|
|
DWORD dwHotKey;
|
|
HANDLE32 hIcon;
|
|
} CMINVOKECOMMANDINFO32, *LPCMINVOKECOMMANDINFO32;
|
|
|
|
typedef struct tagCMInvokeCommandInfoEx
|
|
{ DWORD cbSize; // must be sizeof(CMINVOKECOMMANDINFOEX)
|
|
DWORD fMask; // any combination of CMIC_MASK_*
|
|
HWND32 hwnd; // might be NULL (indicating no owner window)
|
|
LPCSTR lpVerb; // either a string or MAKEINTRESOURCE(idOffset)
|
|
LPCSTR lpParameters; // might be NULL (indicating no parameter)
|
|
LPCSTR lpDirectory; // might be NULL (indicating no specific directory)
|
|
INT32 nShow; // one of SW_ values for ShowWindow() API
|
|
|
|
DWORD dwHotKey;
|
|
|
|
HANDLE32 hIcon;
|
|
LPCSTR lpTitle; // For CreateProcess-StartupInfo.lpTitle
|
|
LPCWSTR lpVerbW; // Unicode verb (for those who can use it)
|
|
LPCWSTR lpParametersW; // Unicode parameters (for those who can use it)
|
|
LPCWSTR lpDirectoryW; // Unicode directory (for those who can use it)
|
|
LPCWSTR lpTitleW; // Unicode title (for those who can use it)
|
|
POINT32 ptInvoke; // Point where it's invoked
|
|
|
|
} CMINVOKECOMMANDINFOEX32, *LPCMINVOKECOMMANDINFOEX32;
|
|
|
|
|
|
typedef struct IContextMenu_VTable
|
|
{ // *** IUnknown methods ***
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
STDMETHOD(QueryContextMenu)(THIS_ HMENU32 hmenu,UINT32 indexMenu,UINT32 idCmdFirst, UINT32 idCmdLast,UINT32 uFlags) PURE;
|
|
STDMETHOD(InvokeCommand)(THIS_ LPCMINVOKECOMMANDINFO32 lpici) PURE;
|
|
STDMETHOD(GetCommandString)(THIS_ UINT32 idCmd,UINT32 uType,UINT32 * pwReserved,LPSTR pszName,UINT32 cchMax) PURE;
|
|
|
|
/* undocumented not only in ContextMenu2 */
|
|
STDMETHOD(HandleMenuMsg)(THIS_ UINT32 uMsg,WPARAM32 wParam,LPARAM lParam) PURE;
|
|
|
|
/* possibly another nasty entry from ContextMenu3 ?*/
|
|
void * guard;
|
|
} IContextMenu_VTable,*LPCONTEXTMENU_VTABLE;
|
|
|
|
struct tagCONTEXTMENU
|
|
{ LPCONTEXTMENU_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
LPSHELLFOLDER pSFParent;
|
|
LPITEMIDLIST *aPidls;
|
|
BOOL32 bAllValues;
|
|
};
|
|
|
|
#undef THIS
|
|
/*****************************************************************************
|
|
* IData structures
|
|
*/
|
|
typedef struct
|
|
{ DWORD tdSize;
|
|
WORD tdDriverNameOffset;
|
|
WORD tdDeviceNameOffset;
|
|
WORD tdPortNameOffset;
|
|
WORD tdExtDevmodeOffset;
|
|
BYTE tdData[ 1 ];
|
|
} DVTARGETDEVICE32;
|
|
|
|
typedef WORD CLIPFORMAT32, *LPCLIPFORMAT32;
|
|
|
|
typedef struct
|
|
{ DWORD tymed;
|
|
union
|
|
{ HBITMAP32 hBitmap;
|
|
/*HMETAFILEPICT32 hMetaFilePict;*/
|
|
/*HENHMETAFILE32 hEnhMetaFile;*/
|
|
HGLOBAL32 hGlobal;
|
|
LPOLESTR32 lpszFileName;
|
|
IStream32 *pstm;
|
|
IStorage32 *pstg;
|
|
} u;
|
|
IUnknown *pUnkForRelease;
|
|
} STGMEDIUM32;
|
|
|
|
typedef struct
|
|
{ CLIPFORMAT32 cfFormat;
|
|
DVTARGETDEVICE32 *ptd;
|
|
DWORD dwAspect;
|
|
LONG lindex;
|
|
DWORD tymed;
|
|
} FORMATETC32, *LPFORMATETC32;
|
|
|
|
/*****************************************************************************
|
|
* IEnumFORMATETC interface
|
|
*/
|
|
#define THIS LPENUMFORMATETC this
|
|
|
|
typedef struct IEnumFORMATETC_VTable
|
|
{ /* IUnknown methods */
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/* IEnumFORMATETC methods */
|
|
STDMETHOD (Next)(THIS_ ULONG celt, FORMATETC32 *rgelt, ULONG *pceltFethed) PURE;
|
|
STDMETHOD (Skip)(THIS_ ULONG celt) PURE;
|
|
STDMETHOD (Reset)(THIS) PURE;
|
|
STDMETHOD (Clone)(THIS_ IEnumFORMATETC ** ppenum) PURE;
|
|
} IEnumFORMATETC_VTable,*LPENUMFORMATETC_VTABLE;
|
|
|
|
struct tagENUMFORMATETC
|
|
{ LPENUMFORMATETC_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
UINT32 posFmt;
|
|
UINT32 countFmt;
|
|
LPFORMATETC32 pFmt;
|
|
};
|
|
|
|
#undef THIS
|
|
|
|
/*****************************************************************************
|
|
* IDataObject interface
|
|
*/
|
|
#define THIS LPDATAOBJECT this
|
|
|
|
typedef struct IDataObject_VTable
|
|
{ /*** IUnknown methods ***/
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
STDMETHOD (GetData )(THIS_ LPFORMATETC32 pformatetcIn, STGMEDIUM32 *pmedium) PURE;
|
|
STDMETHOD (GetDataHere)(THIS_ LPFORMATETC32 pformatetc, STGMEDIUM32 *pmedium) PURE;
|
|
STDMETHOD (QueryGetData)(THIS_ LPFORMATETC32 pformatetc) PURE;
|
|
STDMETHOD (GetCanonicalFormatEtc)(THIS_ LPFORMATETC32 pformatectIn, LPFORMATETC32 pformatetcOut) PURE;
|
|
STDMETHOD (SetData)(THIS_ LPFORMATETC32 pformatetc, STGMEDIUM32 *pmedium, BOOL32 fRelease) PURE;
|
|
STDMETHOD (EnumFormatEtc)(THIS_ DWORD dwDirection, IEnumFORMATETC **ppenumFormatEtc) PURE;
|
|
STDMETHOD (DAdvise )(THIS_ LPFORMATETC32 *pformatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) PURE;
|
|
STDMETHOD (DUnadvise)(THIS_ DWORD dwConnection) PURE;
|
|
STDMETHOD (EnumDAdvise)(THIS_ IEnumSTATDATA **ppenumAdvise) PURE;
|
|
} IDataObject_VTable,*LPDATAOBJECT_VTABLE;
|
|
|
|
struct tagDATAOBJECT
|
|
{ LPDATAOBJECT_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
|
|
#undef THIS
|
|
|
|
|
|
/*****************************************************************************
|
|
* IShellExtInit interface
|
|
*/
|
|
#define THIS LPSHELLEXTINIT this
|
|
|
|
typedef struct IShellExtInit_VTable
|
|
{ // *** IUnknown methods ***
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
// *** IShellExtInit methods ***
|
|
STDMETHOD(Initialize)(THIS_ LPCITEMIDLIST pidlFolder, LPDATAOBJECT lpdobj, HKEY hkeyProgID) PURE;
|
|
} IShellExtInit_VTable,*LPSHELLEXTINIT_VTABLE;
|
|
|
|
struct tagSHELLEXTINIT
|
|
{ LPSHELLEXTINIT_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
|
|
#undef THIS
|
|
|
|
/*****************************************************************************
|
|
* IEnumIDList interface
|
|
*/
|
|
#define THIS LPENUMIDLIST this
|
|
|
|
typedef struct tagENUMLIST
|
|
{ struct tagENUMLIST *pNext;
|
|
LPITEMIDLIST pidl;
|
|
} ENUMLIST, *LPENUMLIST;
|
|
|
|
typedef struct IEnumIDList_VTable
|
|
{ /* *** IUnknown methods *** */
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/* *** IEnumIDList methods *** */
|
|
STDMETHOD(Next) (THIS_ ULONG celt,
|
|
LPITEMIDLIST *rgelt,
|
|
ULONG *pceltFetched) PURE;
|
|
STDMETHOD(Skip) (THIS_ ULONG celt) PURE;
|
|
STDMETHOD(Reset) (THIS) PURE;
|
|
STDMETHOD(Clone) (THIS_ IEnumIDList **ppenum) PURE;
|
|
/* *** private methods *** */
|
|
STDMETHOD_(BOOL32,CreateEnumList)(THIS_ LPCSTR, DWORD) PURE;
|
|
STDMETHOD_(BOOL32,AddToEnumList)(THIS_ LPITEMIDLIST) PURE;
|
|
STDMETHOD_(BOOL32,DeleteList)(THIS) PURE;
|
|
|
|
|
|
} IEnumIDList_VTable,*LPENUMIDLIST_VTABLE;
|
|
|
|
struct tagENUMIDLIST
|
|
{ LPENUMIDLIST_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
LPENUMLIST mpFirst;
|
|
LPENUMLIST mpLast;
|
|
LPENUMLIST mpCurrent;
|
|
};
|
|
|
|
#undef THIS
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
// FOLDERSETTINGS
|
|
//
|
|
// FOLDERSETTINGS is a data structure that explorer passes from one folder
|
|
// view to another, when the user is browsing. It calls ISV::GetCurrentInfo
|
|
// member to get the current settings and pass it to ISV::CreateViewWindow
|
|
// to allow the next folder view "inherit" it. These settings assumes a
|
|
// particular UI (which the shell's folder view has), and shell extensions
|
|
// may or may not use those settings.
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
typedef LPBYTE LPVIEWSETTINGS;
|
|
|
|
// NB Bitfields.
|
|
// FWF_DESKTOP implies FWF_TRANSPARENT/NOCLIENTEDGE/NOSCROLL
|
|
typedef enum
|
|
{ FWF_AUTOARRANGE = 0x0001,
|
|
FWF_ABBREVIATEDNAMES = 0x0002,
|
|
FWF_SNAPTOGRID = 0x0004,
|
|
FWF_OWNERDATA = 0x0008,
|
|
FWF_BESTFITWINDOW = 0x0010,
|
|
FWF_DESKTOP = 0x0020,
|
|
FWF_SINGLESEL = 0x0040,
|
|
FWF_NOSUBFOLDERS = 0x0080,
|
|
FWF_TRANSPARENT = 0x0100,
|
|
FWF_NOCLIENTEDGE = 0x0200,
|
|
FWF_NOSCROLL = 0x0400,
|
|
FWF_ALIGNLEFT = 0x0800,
|
|
FWF_SINGLECLICKACTIVATE=0x8000 // TEMPORARY -- NO UI FOR THIS
|
|
} FOLDERFLAGS;
|
|
|
|
typedef enum
|
|
{ FVM_ICON = 1,
|
|
FVM_SMALLICON = 2,
|
|
FVM_LIST = 3,
|
|
FVM_DETAILS = 4,
|
|
} FOLDERVIEWMODE;
|
|
|
|
typedef struct
|
|
{ UINT32 ViewMode; // View mode (FOLDERVIEWMODE values)
|
|
UINT32 fFlags; // View options (FOLDERFLAGS bits)
|
|
} FOLDERSETTINGS, *LPFOLDERSETTINGS;
|
|
|
|
typedef const FOLDERSETTINGS * LPCFOLDERSETTINGS;
|
|
|
|
/* FIXME; the next two lines are propersheet related, move to prsht.h when created */
|
|
struct _PSP;
|
|
typedef struct _PSP FAR* HPROPSHEETPAGE;
|
|
|
|
typedef BOOL32 (CALLBACK FAR * LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
|
|
typedef BOOL32 (CALLBACK FAR * LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE,LPARAM);
|
|
|
|
/************************************************************************
|
|
* IShellFolder interface
|
|
*/
|
|
|
|
#define THIS LPSHELLFOLDER this
|
|
|
|
/* IShellFolder::GetDisplayNameOf/SetNameOf uFlags */
|
|
typedef enum
|
|
{ SHGDN_NORMAL = 0, /* default (display purpose) */
|
|
SHGDN_INFOLDER = 1, /* displayed under a folder (relative)*/
|
|
SHGDN_FORPARSING = 0x8000 /* for ParseDisplayName or path */
|
|
} SHGNO;
|
|
|
|
/* IShellFolder::EnumObjects */
|
|
typedef enum tagSHCONTF
|
|
{ SHCONTF_FOLDERS = 32, /* for shell browser */
|
|
SHCONTF_NONFOLDERS = 64, /* for default view */
|
|
SHCONTF_INCLUDEHIDDEN = 128 /* for hidden/system objects */
|
|
} SHCONTF;
|
|
|
|
/* from oleidl.h */
|
|
#define DROPEFFECT_NONE 0
|
|
#define DROPEFFECT_COPY 1
|
|
#define DROPEFFECT_MOVE 2
|
|
#define DROPEFFECT_LINK 4
|
|
#define DROPEFFECT_SCROLL 0x80000000
|
|
|
|
/* IShellFolder::GetAttributesOf flags */
|
|
#define SFGAO_CANCOPY DROPEFFECT_COPY /* Objects can be copied */
|
|
#define SFGAO_CANMOVE DROPEFFECT_MOVE /* Objects can be moved */
|
|
#define SFGAO_CANLINK DROPEFFECT_LINK /* Objects can be linked */
|
|
#define SFGAO_CANRENAME 0x00000010L /* Objects can be renamed */
|
|
#define SFGAO_CANDELETE 0x00000020L /* Objects can be deleted */
|
|
#define SFGAO_HASPROPSHEET 0x00000040L /* Objects have property sheets */
|
|
#define SFGAO_DROPTARGET 0x00000100L /* Objects are drop target */
|
|
#define SFGAO_CAPABILITYMASK 0x00000177L
|
|
#define SFGAO_LINK 0x00010000L /* Shortcut (link) */
|
|
#define SFGAO_SHARE 0x00020000L /* shared */
|
|
#define SFGAO_READONLY 0x00040000L /* read-only */
|
|
#define SFGAO_GHOSTED 0x00080000L /* ghosted icon */
|
|
#define SFGAO_DISPLAYATTRMASK 0x000F0000L
|
|
#define SFGAO_FILESYSANCESTOR 0x10000000L /* It contains file system folder */
|
|
#define SFGAO_FOLDER 0x20000000L /* It's a folder. */
|
|
#define SFGAO_FILESYSTEM 0x40000000L /* is a file system thing (file/folder/root) */
|
|
#define SFGAO_HASSUBFOLDER 0x80000000L /* Expandable in the map pane */
|
|
#define SFGAO_CONTENTSMASK 0x80000000L
|
|
#define SFGAO_VALIDATE 0x01000000L /* invalidate cached information */
|
|
#define SFGAO_REMOVABLE 0x02000000L /* is this removeable media? */
|
|
|
|
typedef struct IShellFolder_VTable {
|
|
/* *** IUnknown methods *** */
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/* *** IShellFolder methods *** */
|
|
STDMETHOD(ParseDisplayName) (THIS_ HWND32 hwndOwner,LPBC pbcReserved, LPOLESTR32 lpszDisplayName,ULONG * pchEaten, LPITEMIDLIST * ppidl, ULONG *pdwAttributes) PURE;
|
|
STDMETHOD(EnumObjects)( THIS_ HWND32 hwndOwner, DWORD grfFlags, LPENUMIDLIST * ppenumIDList) PURE;
|
|
STDMETHOD(BindToObject)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved,REFIID riid, LPVOID * ppvOut) PURE;
|
|
STDMETHOD(BindToStorage)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved,REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD(CompareIDs)(THIS_ LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE;
|
|
STDMETHOD(CreateViewObject)(THIS_ HWND32 hwndOwner, REFIID riid, LPVOID * ppvOut) PURE;
|
|
STDMETHOD(GetAttributesOf)(THIS_ UINT32 cidl, LPCITEMIDLIST * apidl,ULONG * rgfInOut) PURE;
|
|
STDMETHOD(GetUIObjectOf)(THIS_ HWND32 hwndOwner, UINT32 cidl, LPCITEMIDLIST * apidl,REFIID riid, UINT32 * prgfInOut, LPVOID * ppvOut) PURE;
|
|
STDMETHOD(GetDisplayNameOf)(THIS_ LPCITEMIDLIST pidl, DWORD uFlags, LPSTRRET lpName) PURE;
|
|
STDMETHOD(SetNameOf)(THIS_ HWND32 hwndOwner, LPCITEMIDLIST pidl,LPCOLESTR32 lpszName, DWORD uFlags,LPITEMIDLIST * ppidlOut) PURE;
|
|
|
|
/* utility functions */
|
|
STDMETHOD_(BOOL32,GetFolderPath)(THIS_ LPSTR, DWORD);
|
|
|
|
} *LPSHELLFOLDER_VTABLE,IShellFolder_VTable;
|
|
|
|
struct tagSHELLFOLDER {
|
|
LPSHELLFOLDER_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
LPSTR mlpszFolder;
|
|
LPITEMIDLIST mpidl;
|
|
LPITEMIDLIST mpidlNSRoot;
|
|
LPSHELLFOLDER mpSFParent;
|
|
};
|
|
|
|
extern LPSHELLFOLDER pdesktopfolder;
|
|
|
|
/************************
|
|
* Shellfolder API
|
|
*/
|
|
DWORD WINAPI SHGetDesktopFolder(LPSHELLFOLDER *);
|
|
#undef THIS
|
|
|
|
/************************************************************************
|
|
* IShellBrowser interface
|
|
*/
|
|
#define THIS LPSHELLBROWSER this
|
|
/* targets for GetWindow/SendControlMsg */
|
|
#define FCW_STATUS 0x0001
|
|
#define FCW_TOOLBAR 0x0002
|
|
#define FCW_TREE 0x0003
|
|
#define FCW_INTERNETBAR 0x0006
|
|
#define FCW_PROGRESS 0x0008
|
|
|
|
/* wFlags for BrowseObject*/
|
|
#define SBSP_DEFBROWSER 0x0000
|
|
#define SBSP_SAMEBROWSER 0x0001
|
|
#define SBSP_NEWBROWSER 0x0002
|
|
|
|
#define SBSP_DEFMODE 0x0000
|
|
#define SBSP_OPENMODE 0x0010
|
|
#define SBSP_EXPLOREMODE 0x0020
|
|
|
|
#define SBSP_ABSOLUTE 0x0000
|
|
#define SBSP_RELATIVE 0x1000
|
|
#define SBSP_PARENT 0x2000
|
|
#define SBSP_NAVIGATEBACK 0x4000
|
|
#define SBSP_NAVIGATEFORWARD 0x8000
|
|
|
|
#define SBSP_ALLOW_AUTONAVIGATE 0x10000
|
|
|
|
#define SBSP_INITIATEDBYHLINKFRAME 0x80000000
|
|
#define SBSP_REDIRECT 0x40000000
|
|
#define SBSP_WRITENOHISTORY 0x08000000
|
|
|
|
/* uFlage for SetToolbarItems */
|
|
#define FCT_MERGE 0x0001
|
|
#define FCT_CONFIGABLE 0x0002
|
|
#define FCT_ADDTOEND 0x0004
|
|
|
|
typedef struct IShellBrowser_VTable
|
|
{ // *** IUnknown methods ***
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
// *** IOleWindow methods ***
|
|
STDMETHOD(GetWindow) (THIS_ HWND32 * lphwnd) PURE;
|
|
STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL32 fEnterMode) PURE;
|
|
|
|
// *** IShellBrowser methods *** (same as IOleInPlaceFrame)
|
|
STDMETHOD(InsertMenusSB) (THIS_ HMENU32 hmenuShared, LPOLEMENUGROUPWIDTHS32 lpMenuWidths) PURE;
|
|
STDMETHOD(SetMenuSB) (THIS_ HMENU32 hmenuShared, HOLEMENU32 holemenuReserved, HWND32 hwndActiveObject) PURE;
|
|
STDMETHOD(RemoveMenusSB) (THIS_ HMENU32 hmenuShared) PURE;
|
|
STDMETHOD(SetStatusTextSB) (THIS_ LPCOLESTR32 lpszStatusText) PURE;
|
|
STDMETHOD(EnableModelessSB) (THIS_ BOOL32 fEnable) PURE;
|
|
STDMETHOD(TranslateAcceleratorSB) (THIS_ LPMSG32 lpmsg, WORD wID) PURE;
|
|
|
|
// *** IShellBrowser methods ***
|
|
STDMETHOD(BrowseObject)(THIS_ LPCITEMIDLIST pidl, UINT32 wFlags) PURE;
|
|
STDMETHOD(GetViewStateStream)(THIS_ DWORD grfMode, LPSTREAM32 *ppStrm) PURE;
|
|
STDMETHOD(GetControlWindow)(THIS_ UINT32 id, HWND32 * lphwnd) PURE;
|
|
STDMETHOD(SendControlMsg)(THIS_ UINT32 id, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam, LRESULT * pret) PURE;
|
|
STDMETHOD(QueryActiveShellView)(THIS_ IShellView ** ppshv) PURE;
|
|
STDMETHOD(OnViewWindowActive)(THIS_ IShellView * ppshv) PURE;
|
|
STDMETHOD(SetToolbarItems)(THIS_ LPTBBUTTON lpButtons, UINT32 nButtons, UINT32 uFlags) PURE;
|
|
} *LPSHELLBROWSER_VTABLE,IShellBrowser_VTable;;
|
|
|
|
struct tagSHELLBROWSER
|
|
{ LPSHELLBROWSER_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
|
|
#undef THIS
|
|
|
|
/************************************************************************
|
|
* IShellView interface
|
|
*/
|
|
#define THIS LPSHELLVIEW this
|
|
|
|
/* shellview select item flags*/
|
|
#define SVSI_DESELECT 0x0000
|
|
#define SVSI_SELECT 0x0001
|
|
#define SVSI_EDIT 0x0003 // includes select
|
|
#define SVSI_DESELECTOTHERS 0x0004
|
|
#define SVSI_ENSUREVISIBLE 0x0008
|
|
#define SVSI_FOCUSED 0x0010
|
|
|
|
/* shellview get item object flags */
|
|
#define SVGIO_BACKGROUND 0x00000000
|
|
#define SVGIO_SELECTION 0x00000001
|
|
#define SVGIO_ALLVIEW 0x00000002
|
|
|
|
/* The explorer dispatches WM_COMMAND messages based on the range of
|
|
command/menuitem IDs. All the IDs of menuitems that the view (right
|
|
pane) inserts must be in FCIDM_SHVIEWFIRST/LAST (otherwise, the explorer
|
|
won't dispatch them). The view should not deal with any menuitems
|
|
in FCIDM_BROWSERFIRST/LAST (otherwise, it won't work with the future
|
|
version of the shell).
|
|
|
|
FCIDM_SHVIEWFIRST/LAST for the right pane (IShellView)
|
|
FCIDM_BROWSERFIRST/LAST for the explorer frame (IShellBrowser)
|
|
FCIDM_GLOBAL/LAST for the explorer's submenu IDs
|
|
*/
|
|
#define FCIDM_SHVIEWFIRST 0x0000
|
|
#define FCIDM_SHVIEWLAST 0x7fff
|
|
#define FCIDM_BROWSERFIRST 0xa000
|
|
#define FCIDM_BROWSERLAST 0xbf00
|
|
#define FCIDM_GLOBALFIRST 0x8000
|
|
#define FCIDM_GLOBALLAST 0x9fff
|
|
|
|
/*
|
|
* Global submenu IDs and separator IDs
|
|
*/
|
|
#define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
|
|
#define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
|
|
#define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
|
|
#define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
|
|
#define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
|
|
#define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
|
|
#define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
|
|
#define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
|
|
#define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
|
|
#define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
|
|
|
|
/* control IDs known to the view */
|
|
#define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
|
|
#define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
|
|
|
|
/* uState values for IShellView::UIActivate */
|
|
typedef enum
|
|
{ SVUIA_DEACTIVATE = 0,
|
|
SVUIA_ACTIVATE_NOFOCUS = 1,
|
|
SVUIA_ACTIVATE_FOCUS = 2,
|
|
SVUIA_INPLACEACTIVATE = 3 // new flag for IShellView2
|
|
} SVUIA_STATUS;
|
|
|
|
|
|
|
|
typedef struct IShellView_VTable
|
|
{ // *** IUnknown methods ***
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
// *** IOleWindow methods ***
|
|
STDMETHOD(GetWindow) (THIS_ HWND32 * lphwnd) PURE;
|
|
STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL32 fEnterMode) PURE;
|
|
|
|
// *** IShellView methods ***
|
|
STDMETHOD(TranslateAccelerator) (THIS_ LPMSG32 lpmsg) PURE;
|
|
STDMETHOD(EnableModeless) (THIS_ BOOL32 fEnable) PURE;
|
|
STDMETHOD(UIActivate) (THIS_ UINT32 uState) PURE;
|
|
STDMETHOD(Refresh) (THIS) PURE;
|
|
STDMETHOD(CreateViewWindow)(THIS_ IShellView *lpPrevView,LPCFOLDERSETTINGS lpfs, IShellBrowser * psb,RECT32 * prcView, HWND32 *phWnd) PURE;
|
|
STDMETHOD(DestroyViewWindow)(THIS) PURE;
|
|
STDMETHOD(GetCurrentInfo)(THIS_ LPFOLDERSETTINGS lpfs) PURE;
|
|
STDMETHOD(AddPropertySheetPages)(THIS_ DWORD dwReserved,LPFNADDPROPSHEETPAGE lpfn, LPARAM lparam) PURE;
|
|
STDMETHOD(SaveViewState)(THIS) PURE;
|
|
STDMETHOD(SelectItem)(THIS_ LPCITEMIDLIST pidlItem, UINT32 uFlags) PURE;
|
|
STDMETHOD(GetItemObject)(THIS_ UINT32 uItem, REFIID riid,LPVOID *ppv) PURE;
|
|
} IShellView_VTable,*LPSHELLVIEW_VTABLE;
|
|
|
|
struct tagSHELLVIEW
|
|
{ LPSHELLVIEW_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
LPITEMIDLIST mpidl;
|
|
LPSHELLFOLDER pSFParent;
|
|
LPSHELLBROWSER pShellBrowser;
|
|
LPCOMMDLGBROWSER pCommDlgBrowser;
|
|
HWND32 hWnd;
|
|
HWND32 hWndList;
|
|
FOLDERSETTINGS FolderSettings;
|
|
HWND32 hWndParent;
|
|
HMENU32 hMenu;
|
|
UINT32 uState;
|
|
};
|
|
|
|
typedef GUID SHELLVIEWID;
|
|
#define SV_CLASS_NAME ("SHELLDLL_DefView")
|
|
|
|
#undef THIS
|
|
/****************************************************************************
|
|
* ICommDlgBrowser interface
|
|
*/
|
|
#define THIS LPCOMMDLGBROWSER this
|
|
|
|
/* for OnStateChange*/
|
|
#define CDBOSC_SETFOCUS 0x00000000
|
|
#define CDBOSC_KILLFOCUS 0x00000001
|
|
#define CDBOSC_SELCHANGE 0x00000002
|
|
#define CDBOSC_RENAME 0x00000003
|
|
|
|
typedef struct ICommDlgBrowser_VTable
|
|
{ /* IUnknown methods */
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/* ICommDlgBrowser methods */
|
|
STDMETHOD(OnDefaultCommand) (THIS_ LPSHELLVIEW ppshv) PURE;
|
|
STDMETHOD(OnStateChange) (THIS_ LPSHELLVIEW ppshv, ULONG uChange) PURE;
|
|
STDMETHOD(IncludeObject) (THIS_ LPSHELLVIEW ppshv, LPCITEMIDLIST pidl) PURE;
|
|
} ICommDlgBrowser_VTable,*LPCOMMDLGBROWSER_VTABLE;
|
|
|
|
struct tagCOMMDLGBROWSER
|
|
{ LPCOMMDLGBROWSER_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
#undef THIS
|
|
/****************************************************************************
|
|
* IShellLink interface
|
|
*/
|
|
|
|
#define THIS LPSHELLLINK this
|
|
/* IShellLink::Resolve fFlags */
|
|
typedef enum {
|
|
SLR_NO_UI = 0x0001,
|
|
SLR_ANY_MATCH = 0x0002,
|
|
SLR_UPDATE = 0x0004
|
|
} SLR_FLAGS;
|
|
|
|
/* IShellLink::GetPath fFlags */
|
|
typedef enum {
|
|
SLGP_SHORTPATH = 0x0001,
|
|
SLGP_UNCPRIORITY = 0x0002
|
|
} SLGP_FLAGS;
|
|
|
|
|
|
|
|
typedef struct IShellLink IShellLink,*LPSHELLLINK;
|
|
typedef struct IShellLink_VTable
|
|
{
|
|
/* *** IUnknown methods *** */
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
STDMETHOD(GetPath)(THIS_ LPSTR pszFile,INT32 cchMaxPath, WIN32_FIND_DATA32A *pfd, DWORD fFlags) PURE;
|
|
|
|
STDMETHOD(GetIDList)(THIS_ LPITEMIDLIST * ppidl) PURE;
|
|
STDMETHOD(SetIDList)(THIS_ LPCITEMIDLIST pidl) PURE;
|
|
|
|
STDMETHOD(GetDescription)(THIS_ LPSTR pszName,INT32 cchMaxName) PURE;
|
|
STDMETHOD(SetDescription)(THIS_ LPCSTR pszName) PURE;
|
|
|
|
STDMETHOD(GetWorkingDirectory)(THIS_ LPSTR pszDir,INT32 cchMaxPath) PURE;
|
|
STDMETHOD(SetWorkingDirectory)(THIS_ LPCSTR pszDir) PURE;
|
|
|
|
STDMETHOD(GetArguments)(THIS_ LPSTR pszArgs,INT32 cchMaxPath) PURE;
|
|
STDMETHOD(SetArguments)(THIS_ LPCSTR pszArgs) PURE;
|
|
|
|
STDMETHOD(GetHotkey)(THIS_ WORD *pwHotkey) PURE;
|
|
STDMETHOD(SetHotkey)(THIS_ WORD wHotkey) PURE;
|
|
|
|
STDMETHOD(GetShowCmd)(THIS_ INT32 *piShowCmd) PURE;
|
|
STDMETHOD(SetShowCmd)(THIS_ INT32 iShowCmd) PURE;
|
|
|
|
STDMETHOD(GetIconLocation)(THIS_ LPSTR pszIconPath,INT32 cchIconPath,INT32 *piIcon) PURE;
|
|
STDMETHOD(SetIconLocation)(THIS_ LPCSTR pszIconPath,INT32 iIcon) PURE;
|
|
|
|
STDMETHOD(SetRelativePath)(THIS_ LPCSTR pszPathRel, DWORD dwReserved) PURE;
|
|
|
|
STDMETHOD(Resolve)(THIS_ HWND32 hwnd, DWORD fFlags) PURE;
|
|
|
|
STDMETHOD(SetPath)(THIS_ LPCSTR pszFile) PURE;
|
|
} IShellLink_VTable,*LPSHELLLINK_VTABLE;
|
|
|
|
struct IShellLink {
|
|
LPSHELLLINK_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
|
|
#undef THIS
|
|
|
|
/****************************************************************************
|
|
* IExtractIconinterface
|
|
*
|
|
* FIXME
|
|
* Is the ExtractIconA interface
|
|
*/
|
|
#define THIS LPEXTRACTICON this
|
|
|
|
/* GetIconLocation() input flags*/
|
|
#define GIL_OPENICON 0x0001 // allows containers to specify an "open" look
|
|
#define GIL_FORSHELL 0x0002 // icon is to be displayed in a ShellFolder
|
|
#define GIL_ASYNC 0x0020 // this is an async extract, return E_ASYNC
|
|
|
|
/* GetIconLocation() return flags */
|
|
#define GIL_SIMULATEDOC 0x0001 // simulate this document icon for this
|
|
#define GIL_PERINSTANCE 0x0002 // icons from this class are per instance (each file has its own)
|
|
#define GIL_PERCLASS 0x0004 // icons from this class per class (shared for all files of this type)
|
|
#define GIL_NOTFILENAME 0x0008 // location is not a filename, must call ::ExtractIcon
|
|
#define GIL_DONTCACHE 0x0010 // this icon should not be cached
|
|
|
|
typedef struct IExtractIcon IExtractIcon,*LPEXTRACTICON;
|
|
typedef struct IExtractIcon_VTable
|
|
{ /*** IUnknown methods ***/
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/*** IExtractIcon methods ***/
|
|
STDMETHOD(GetIconLocation)(THIS_ UINT32 uFlags, LPSTR szIconFile, UINT32 cchMax,INT32 * piIndex, UINT32 * pwFlags) PURE;
|
|
STDMETHOD(Extract)(THIS_ LPCSTR pszFile, UINT32 nIconIndex, HICON32 *phiconLarge, HICON32 *phiconSmall, UINT32 nIconSize) PURE;
|
|
}IExtractIccon_VTable,*LPEXTRACTICON_VTABLE;
|
|
|
|
struct IExtractIcon
|
|
{ LPEXTRACTICON_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
LPITEMIDLIST pidl;
|
|
};
|
|
|
|
#undef THIS
|
|
/****************************************************************************
|
|
* IShellIcon interface
|
|
*/
|
|
|
|
#define THIS LPSHELLICON this
|
|
|
|
typedef struct IShellIcon_VTable
|
|
{ /*** IUnknown methods ***/
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/*** IShellIcon methods ***/
|
|
STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT32 flags, LPINT32 lpIconIndex) PURE;
|
|
} IShellIcon_VTable,*LPSHELLICON_VTABLE;
|
|
|
|
struct tagSHELLICON
|
|
{ LPSHELLICON_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
#undef THIS
|
|
/****************************************************************************
|
|
* IDockingWindowFrame interface
|
|
*/
|
|
#define THIS LPDOCKINGWINDOWFRAME this
|
|
|
|
#define DWFRF_NORMAL 0x0000 /* femove toolbar flags*/
|
|
#define DWFRF_DELETECONFIGDATA 0x0001
|
|
#define DWFAF_HIDDEN 0x0001 /* add tolbar*/
|
|
|
|
typedef struct IDockingWindowFrame_VTable
|
|
{ STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
/*** IOleWindow methods ***/
|
|
STDMETHOD(GetWindow) (THIS_ HWND32 * lphwnd) PURE;
|
|
STDMETHOD(ContextSensitiveHelp) (THIS_ BOOL32 fEnterMode) PURE;
|
|
|
|
/*** IDockingWindowFrame methods ***/
|
|
STDMETHOD(AddToolbar) (THIS_ IUnknown* punkSrc, LPCWSTR pwszItem, DWORD dwAddFlags) PURE;
|
|
STDMETHOD(RemoveToolbar) (THIS_ IUnknown* punkSrc, DWORD dwRemoveFlags) PURE;
|
|
STDMETHOD(FindToolbar) (THIS_ LPCWSTR pwszItem, REFIID riid, LPVOID* ppvObj) PURE;
|
|
} IDockingWindowFrame_VTable, *LPDOCKINGWINDOWFRAME_VTABLE;
|
|
|
|
struct tagDOCKINGWINDOWFRAME
|
|
{ LPDOCKINGWINDOWFRAME_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
|
|
#undef THIS
|
|
/****************************************************************************
|
|
* IServiceProvider interface
|
|
*/
|
|
#define THIS LPSERVICEPROVIDER this
|
|
|
|
typedef struct IServiceProvider_VTable
|
|
{ /*** IUnknown methods ***/
|
|
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
|
|
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
|
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
|
|
|
STDMETHOD(QueryService)(THIS_ REFGUID guidService, REFIID riid, void **ppvObject);
|
|
} IServiceProvider_VTable, *LPSERVICEPROVIDER_VTABLE;
|
|
|
|
struct tagSERVICEPROVIDER
|
|
{ LPSERVICEPROVIDER_VTABLE lpvtbl;
|
|
DWORD ref;
|
|
};
|
|
/****************************************************************************
|
|
* Class constructors
|
|
*/
|
|
#ifdef __WINE__
|
|
extern LPDATAOBJECT IDataObject_Constructor();
|
|
extern LPENUMFORMATETC IEnumFORMATETC_Constructor(UINT32, const FORMATETC32 []);
|
|
|
|
extern LPCLASSFACTORY IClassFactory_Constructor();
|
|
extern LPCONTEXTMENU IContextMenu_Constructor(LPSHELLFOLDER, LPCITEMIDLIST *, UINT32);
|
|
extern LPSHELLFOLDER IShellFolder_Constructor(LPSHELLFOLDER,LPITEMIDLIST);
|
|
extern LPSHELLVIEW IShellView_Constructor();
|
|
extern LPSHELLLINK IShellLink_Constructor();
|
|
extern LPENUMIDLIST IEnumIDList_Constructor(LPCSTR,DWORD);
|
|
extern LPEXTRACTICON IExtractIcon_Constructor(LPITEMIDLIST);
|
|
#endif
|
|
/****************************************************************************
|
|
* Shell Execute API
|
|
*/
|
|
#define SE_ERR_FNF 2 // file not found
|
|
#define SE_ERR_PNF 3 // path not found
|
|
#define SE_ERR_ACCESSDENIED 5 // access denied
|
|
#define SE_ERR_OOM 8 // out of memory
|
|
#define SE_ERR_DLLNOTFOUND 32
|
|
#define SE_ERR_SHARE 26
|
|
#define SE_ERR_ASSOCINCOMPLETE 27
|
|
#define SE_ERR_DDETIMEOUT 28
|
|
#define SE_ERR_DDEFAIL 29
|
|
#define SE_ERR_DDEBUSY 30
|
|
#define SE_ERR_NOASSOC 31
|
|
|
|
#define SEE_MASK_CLASSNAME 0x00000001
|
|
#define SEE_MASK_CLASSKEY 0x00000003
|
|
#define SEE_MASK_IDLIST 0x00000004
|
|
#define SEE_MASK_INVOKEIDLIST 0x0000000c
|
|
#define SEE_MASK_ICON 0x00000010
|
|
#define SEE_MASK_HOTKEY 0x00000020
|
|
#define SEE_MASK_NOCLOSEPROCESS 0x00000040
|
|
#define SEE_MASK_CONNECTNETDRV 0x00000080
|
|
#define SEE_MASK_FLAG_DDEWAIT 0x00000100
|
|
#define SEE_MASK_DOENVSUBST 0x00000200
|
|
#define SEE_MASK_FLAG_NO_UI 0x00000400
|
|
#define SEE_MASK_UNICODE 0x00004000
|
|
#define SEE_MASK_NO_CONSOLE 0x00008000
|
|
#define SEE_MASK_ASYNCOK 0x00100000
|
|
#define SEE_MASK_HMONITOR 0x00200000
|
|
|
|
typedef struct _SHELLEXECUTEINFOA
|
|
{ DWORD cbSize;
|
|
ULONG fMask;
|
|
HWND32 hwnd;
|
|
LPCSTR lpVerb;
|
|
LPCSTR lpFile;
|
|
LPCSTR lpParameters;
|
|
LPCSTR lpDirectory;
|
|
INT32 nShow;
|
|
HINSTANCE32 hInstApp;
|
|
/* Optional fields */
|
|
LPVOID lpIDList;
|
|
LPCSTR lpClass;
|
|
HKEY hkeyClass;
|
|
DWORD dwHotKey;
|
|
union
|
|
{ HANDLE32 hIcon;
|
|
HANDLE32 hMonitor;
|
|
} u;
|
|
HANDLE32 hProcess;
|
|
} SHELLEXECUTEINFO32A, *LPSHELLEXECUTEINFO32A;
|
|
|
|
typedef struct _SHELLEXECUTEINFOW
|
|
{ DWORD cbSize;
|
|
ULONG fMask;
|
|
HWND32 hwnd;
|
|
LPCWSTR lpVerb;
|
|
LPCWSTR lpFile;
|
|
LPCWSTR lpParameters;
|
|
LPCWSTR lpDirectory;
|
|
INT32 nShow;
|
|
HINSTANCE32 hInstApp;
|
|
/* Optional fields*/
|
|
LPVOID lpIDList;
|
|
LPCWSTR lpClass;
|
|
HKEY hkeyClass;
|
|
DWORD dwHotKey;
|
|
union
|
|
{ HANDLE32 hIcon;
|
|
HANDLE32 hMonitor;
|
|
} u;
|
|
HANDLE32 hProcess;
|
|
} SHELLEXECUTEINFO32W, *LPSHELLEXECUTEINFO32W;
|
|
|
|
#define SHELLEXECUTEINFO WINELIB_NAME_AW(SHELLEXECUTEINFO)
|
|
#define LPSHELLEXECUTEINFO WINELIB_NAME_AW(LPSHELLEXECUTEINFO)
|
|
|
|
BOOL32 WINAPI ShellExecuteEx32A(LPSHELLEXECUTEINFO32A lpExecInfo);
|
|
BOOL32 WINAPI ShellExecuteEx32W(LPSHELLEXECUTEINFO32W lpExecInfo);
|
|
#define ShellExecuteEx WINELIB_NAME_AW(ShellExecuteEx)
|
|
|
|
void WINAPI WinExecError32A(HWND32 hwnd,INT32 error, LPCSTR lpstrFileName, LPCSTR lpstrTitle);
|
|
void WINAPI WinExecError32W(HWND32 hwnd,INT32 error, LPCWSTR lpstrFileName, LPCWSTR lpstrTitle);
|
|
#define WinExecError WINELIB_NAME_AW(WinExecError)
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
* SHBrowseForFolder API
|
|
*/
|
|
typedef INT32 (CALLBACK* BFFCALLBACK)(HWND32 hwnd, UINT32 uMsg, LPARAM lParam, LPARAM lpData);
|
|
|
|
typedef struct tagBROWSEINFO32A {
|
|
HWND32 hwndOwner;
|
|
LPCITEMIDLIST pidlRoot;
|
|
LPSTR pszDisplayName;
|
|
LPCSTR lpszTitle;
|
|
UINT32 ulFlags;
|
|
BFFCALLBACK lpfn;
|
|
LPARAM lParam;
|
|
INT32 iImage;
|
|
} BROWSEINFO32A, *PBROWSEINFO32A, *LPBROWSEINFO32A;
|
|
|
|
typedef struct tagBROWSEINFO32W {
|
|
HWND32 hwndOwner;
|
|
LPCITEMIDLIST pidlRoot;
|
|
LPWSTR pszDisplayName;
|
|
LPCWSTR lpszTitle;
|
|
UINT32 ulFlags;
|
|
BFFCALLBACK lpfn;
|
|
LPARAM lParam;
|
|
INT32 iImage;
|
|
} BROWSEINFO32W, *PBROWSEINFO32W, *LPBROWSEINFO32W;
|
|
|
|
#define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
|
|
#define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
|
|
#define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
|
|
|
|
// Browsing for directory.
|
|
#define BIF_RETURNONLYFSDIRS 0x0001
|
|
#define BIF_DONTGOBELOWDOMAIN 0x0002
|
|
#define BIF_STATUSTEXT 0x0004
|
|
#define BIF_RETURNFSANCESTORS 0x0008
|
|
#define BIF_EDITBOX 0x0010
|
|
#define BIF_VALIDATE 0x0020
|
|
|
|
#define BIF_BROWSEFORCOMPUTER 0x1000
|
|
#define BIF_BROWSEFORPRINTER 0x2000
|
|
#define BIF_BROWSEINCLUDEFILES 0x4000
|
|
|
|
// message from browser
|
|
#define BFFM_INITIALIZED 1
|
|
#define BFFM_SELCHANGED 2
|
|
#define BFFM_VALIDATEFAILEDA 3 // lParam:szPath ret:1(cont),0(EndDialog)
|
|
#define BFFM_VALIDATEFAILEDW 4 // lParam:wzPath ret:1(cont),0(EndDialog)
|
|
|
|
// messages to browser
|
|
#define BFFM_SETSTATUSTEXTA (WM_USER+100)
|
|
#define BFFM_ENABLEOK (WM_USER+101)
|
|
#define BFFM_SETSELECTIONA (WM_USER+102)
|
|
#define BFFM_SETSELECTIONW (WM_USER+103)
|
|
#define BFFM_SETSTATUSTEXTW (WM_USER+104)
|
|
|
|
/*
|
|
#ifdef UNICODE
|
|
#define SHBrowseForFolder SHBrowseForFolderW
|
|
#define BFFM_SETSTATUSTEXT BFFM_SETSTATUSTEXTW
|
|
#define BFFM_SETSELECTION BFFM_SETSELECTIONW
|
|
|
|
#define BFFM_VALIDATEFAILED BFFM_VALIDATEFAILEDW
|
|
#else
|
|
#define SHBrowseForFolder SHBrowseForFolderA
|
|
#define BFFM_SETSTATUSTEXT BFFM_SETSTATUSTEXTA
|
|
#define BFFM_SETSELECTION BFFM_SETSELECTIONA
|
|
|
|
#define BFFM_VALIDATEFAILED BFFM_VALIDATEFAILEDA
|
|
#endif
|
|
*/
|
|
|
|
LPITEMIDLIST WINAPI SHBrowseForFolder32A(LPBROWSEINFO32A lpbi);
|
|
/*LPITEMIDLIST WINAPI SHBrowseForFolder32W(LPBROWSEINFO32W lpbi);*/
|
|
#define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
|
|
|
|
/****************************************************************************
|
|
* shlview structures
|
|
*/
|
|
|
|
/*
|
|
* IShellFolderViewCallback Callback
|
|
* This "callback" is called by the shells default IShellView implementation (that
|
|
* we got using SHCreateShellViewEx()), to notify us of the various things that
|
|
* are happening to the shellview (and ask for things too).
|
|
*
|
|
* You don't have to support anything here - anything you don't want to
|
|
* handle, the shell will do itself if you just return E_NOTIMPL. This parameters
|
|
* that the shell passes to this function are entirely undocumented.
|
|
*
|
|
* HOWEVER, as the cabview sample as originally written used this callback, the
|
|
* writers implemented the callback mechanism on top of their own IShellView.
|
|
* Look there for some clues on what to do here.
|
|
*/
|
|
|
|
typedef HRESULT(CALLBACK *SHELLVIEWPROC)(DWORD dwUserParam,LPSHELLFOLDER psf,
|
|
HWND32 hwnd,UINT32 uMsg,UINT32 wParam,LPARAM lParam);
|
|
|
|
/* NF valid values for the "viewmode" item of the SHELLTEMPLATE*/
|
|
#define NF_INHERITVIEW 0x0000
|
|
#define NF_LOCALVIEW 0x0001
|
|
|
|
typedef struct _SHELLVIEWDATA // idl
|
|
{ DWORD dwSize;
|
|
LPSHELLFOLDER pShellFolder;
|
|
DWORD dwUserParam;
|
|
LPCITEMIDLIST pidl;
|
|
DWORD v3; // always 0
|
|
SHELLVIEWPROC pCallBack;
|
|
DWORD viewmode; // NF_* enum
|
|
} SHELLVIEWDATA, * LPSHELLVIEWDATA;
|
|
|
|
/*
|
|
The shell keeps track of some per-user state to handle display
|
|
options that is of majorinterest to ISVs.
|
|
The key one requested right now is "DoubleClickInWebView".
|
|
*/
|
|
typedef struct
|
|
{ BOOL32 fShowAllObjects : 1;
|
|
BOOL32 fShowExtensions : 1;
|
|
BOOL32 fNoConfirmRecycle : 1;
|
|
BOOL32 fShowSysFiles : 1;
|
|
BOOL32 fShowCompColor : 1;
|
|
BOOL32 fDoubleClickInWebView : 1;
|
|
BOOL32 fDesktopHTML : 1;
|
|
BOOL32 fWin95Classic : 1;
|
|
BOOL32 fDontPrettyPath : 1;
|
|
BOOL32 fShowAttribCol : 1;
|
|
BOOL32 fMapNetDrvBtn : 1;
|
|
BOOL32 fShowInfoTip : 1;
|
|
BOOL32 fHideIcons : 1;
|
|
UINT32 fRestFlags : 3;
|
|
} SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
|
|
|
|
|
|
#undef PURE
|
|
#undef FAR
|
|
#undef THIS
|
|
#undef THIS_
|
|
#undef STDMETHOD
|
|
#undef STDMETHOD_
|
|
#endif /*_WINE_SHLOBJ_H*/
|