ReactOS 0.4.15-dev-8434-g155a7c7
undocshell.h File Reference
#include <stdio.h>
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for undocshell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SHCNF_PRINTJOB_INFO
 
struct  _NMRUNFILEDLGW
 
struct  CWTESTPATHSTRUCT
 
struct  _REGSHELLSTATE
 
struct  SFVCBINFO
 
struct  SFVSELECTSTATE
 
struct  SFVCOPYHOOKINFO
 
struct  SFVCOLUMNINFO
 
struct  tagSHELL_LINK_HEADER
 
struct  tagSHELL_LINK_INFOA
 
struct  tagSHELL_LINK_INFOW
 
struct  tagSHELL_LINK_INFO_VOLUME_IDA
 
struct  tagSHELL_LINK_INFO_VOLUME_IDW
 
struct  tagSHELL_LINK_INFO_CNR_LINKA
 
struct  tagSHELL_LINK_INFO_CNR_LINKW
 
struct  tagEXP_TRACKER
 
struct  tagEXP_SHIM
 
struct  tagEXP_KNOWN_FOLDER
 
struct  tagEXP_VISTA_ID_LIST
 
struct  SFVM_CUSTOMVIEWINFO_DATA
 

Macros

#define TWM_DOEXITWINDOWS   (WM_USER + 342)
 
#define TWM_CYCLEFOCUS   (WM_USER + 348)
 
#define WM_PROGMAN_OPENSHELLSETTINGS   (WM_USER + 22) /* wParam specifies the dialog (and tab page) */
 
#define WM_PROGMAN_SAVESTATE   (WM_USER + 77)
 
#define ILGDN_FORPARSING   0
 
#define ILGDN_NORMAL   1
 
#define ILGDN_INFOLDER   2
 
#define SHCNRF_InterruptLevel   0x0001
 
#define SHCNRF_ShellLevel   0x0002
 
#define SHCNRF_RecursiveInterrupt   0x1000 /* Must be combined with SHCNRF_InterruptLevel */
 
#define SHCNRF_NewDelivery   0x8000 /* Messages use shared memory */
 
#define SHCNF_PRINTJOBA   0x0004
 
#define SHCNF_PRINTJOBW   0x0007
 
#define RFF_NOBROWSE   0x01 /* Removes the browse button */
 
#define RFF_NODEFAULT   0x02 /* No default item selected */
 
#define RFF_CALCDIRECTORY   0x04 /* Calculates the working directory from the file name */
 
#define RFF_NOLABEL   0x08 /* Removes the edit box label */
 
#define RFF_NOSEPARATEMEM   0x20 /* Removes the Separate Memory Space check box (Windows NT only) */
 
#define RFN_VALIDATE   (-510)
 
#define RF_OK   0x00
 
#define RF_CANCEL   0x01
 
#define RF_RETRY   0x02
 
#define CWM_SETPATH   (WM_USER + 2)
 
#define CWM_WANTIDLE   (WM_USER + 3)
 
#define CWM_GETSETCURRENTINFO   (WM_USER + 4)
 
#define CWM_SELECTITEM   (WM_USER + 5)
 
#define CWM_SELECTITEMSTR   (WM_USER + 6)
 
#define CWM_GETISHELLBROWSER   (WM_USER + 7)
 
#define CWM_TESTPATH   (WM_USER + 9)
 
#define CWM_STATECHANGE   (WM_USER + 10)
 
#define CWM_GETPATH   (WM_USER + 12)
 
#define WM_GETISHELLBROWSER   CWM_GETISHELLBROWSER
 
#define CWTP_ISEQUAL   0
 
#define CWTP_ISCHILD   1
 
#define FM_DEFAULT_SELHEIGHT   -1
 
#define FM_FULL_SELHEIGHT   0
 
#define FMF_SMALL_ICONS   0x00
 
#define FMF_LARGE_ICONS   0x08
 
#define FMF_NO_COLUMN_BREAK   0x10
 
#define FM_SEPARATOR   (LPCSTR)1
 
#define FM_BLANK_ICON   -1
 
#define FM_DEFAULT_HEIGHT   0
 
#define FMF_NO_EMPTY_ITEM   0x01
 
#define FMF_NO_PROGRAM_GROUPS   0x04
 
#define PRF_CHECKEXISTANCE   0x01
 
#define PRF_EXECUTABLE   0x02
 
#define PRF_QUALIFYONPATH   0x04
 
#define PRF_WINDOWS31   0x08
 
#define PPCF_QUOTEPATH   0x01 /* implies PPCF_INCLUDEARGS */
 
#define PPCF_INCLUDEARGS   0x02
 
#define PPCF_DONTRESOLVE   0x20
 
#define PPCF_PATHISRELATIVE   0x40
 
#define DE_SAMEFILE   0x71
 
#define DE_MANYSRC1DEST   0x72
 
#define DE_DIFFDIR   0x73
 
#define DE_ROOTDIR   0x74
 
#define DE_OPCANCELLED   0x75
 
#define DE_DESTSUBTREE   0x76
 
#define DE_ACCESSDENIEDSRC   0x78
 
#define DE_PATHTOODEEP   0x79
 
#define DE_MANYDEST   0x7A
 
#define DE_INVALIDFILES   0x7C
 
#define DE_DESTSAMETREE   0x7D
 
#define DE_FLDDESTISFILE   0x7E
 
#define DE_FILEDESTISFLD   0x80
 
#define DE_FILENAMETOOLONG   0x81
 
#define DE_DEST_IS_CDROM   0x82
 
#define DE_DEST_IS_DVD   0x83
 
#define DE_DEST_IS_CDRECORD   0x84
 
#define DE_FILE_TOO_LARGE   0x85
 
#define DE_SRC_IS_CDROM   0x86
 
#define DE_SRC_IS_DVD   0x87
 
#define DE_SRC_IS_CDRECORD   0x88
 
#define ERRORONDEST   0x10000
 
#define REGSHELLSTATE_SIZE   0x24
 
#define REGSHELLSTATE_VERSION   0xD
 
#define SHWFF_ADD   0x01
 
#define SHWFF_REMOVE   0x02
 
#define SHWFF_WAIT   0x04
 
#define SECL_NO_UI   0x2
 
#define SECL_LOG_USAGE   0x8
 
#define SECL_USE_IDLIST   0x10
 
#define SECL_ALLOW_NONEXE   0x20
 
#define SECL_RUNAS   0x40
 
#define RSH_DEREGISTER   0
 
#define RSH_REGISTER   1
 
#define RSH_REGISTER_PROGMAN   2
 
#define RSH_REGISTER_TASKMAN   3
 
#define SHCLF_PREFIXNAME   0x01
 
#define SHCLF_CREATEONDESKTOP   0x02
 
#define CSIDL_FOLDER_MASK   0x00ff
 
#define SMC_EXEC   4
 
#define FMT_USE_NUMDIGITS   0x01
 
#define FMT_USE_LEADZERO   0x02
 
#define FMT_USE_GROUPING   0x04
 
#define FMT_USE_DECIMAL   0x08
 
#define FMT_USE_THOUSAND   0x10
 
#define FMT_USE_NEGNUMBER   0x20
 
#define IDB_GOBUTTON_NORMAL   0x0e6
 
#define IDB_GOBUTTON_HOT   0x0e7
 
#define ITBBID_MENUBAND   1
 
#define ITBBID_BRANDBAND   5
 
#define ITBBID_TOOLSBAND   2
 
#define ITBBID_ADDRESSBAND   4
 
#define ITID_TEXTLABELS   3
 
#define ITID_TOOLBARBANDSHOWN   4
 
#define ITID_ADDRESSBANDSHOWN   5
 
#define ITID_LINKSBANDSHOWN   6
 
#define ITID_MENUBANDSHOWN   12
 
#define ITID_AUTOHIDEENABLED   13
 
#define ITID_CUSTOMIZEENABLED   20
 
#define ITID_TOOLBARLOCKED   27
 
#define BBID_STARTANIMATION   1
 
#define BBID_STOPANIMATION   2
 
#define SMSET_UNKNOWN08   0x08
 
#define SMSET_UNKNOWN10   0x10
 
#define TRAYCMD_STARTMENU   305
 
#define TRAYCMD_RUN_DIALOG   401
 
#define TRAYCMD_LOGOFF_DIALOG   402
 
#define TRAYCMD_CASCADE   403
 
#define TRAYCMD_TILE_H   404
 
#define TRAYCMD_TILE_V   405
 
#define TRAYCMD_TOGGLE_DESKTOP   407
 
#define TRAYCMD_DATE_AND_TIME   408
 
#define TRAYCMD_TASKBAR_PROPERTIES   413
 
#define TRAYCMD_MINIMIZE_ALL   415
 
#define TRAYCMD_RESTORE_ALL   416
 
#define TRAYCMD_SHOW_DESKTOP   419
 
#define TRAYCMD_SHOW_TASK_MGR   420
 
#define TRAYCMD_CUSTOMIZE_TASKBAR   421
 
#define TRAYCMD_LOCK_TASKBAR   424
 
#define TRAYCMD_HELP_AND_SUPPORT   503
 
#define TRAYCMD_CONTROL_PANEL   505
 
#define TRAYCMD_SHUTDOWN_DIALOG   506
 
#define TRAYCMD_PRINTERS_AND_FAXES   510
 
#define TRAYCMD_LOCK_DESKTOP   517
 
#define TRAYCMD_SWITCH_USER_DIALOG   5000
 
#define TRAYCMD_SEARCH_FILES   41093
 
#define TRAYCMD_SEARCH_COMPUTERS   41094
 
#define TABDMC_APPBAR   0
 
#define TABDMC_NOTIFY   1
 
#define TABDMC_LOADINPROC   2
 
#define SHRegQueryValueEx   SHRegQueryValueExA
 
#define INVALID_FILETITLE_CHARACTERSA   "\\/:*?\"<>|"
 
#define INVALID_FILETITLE_CHARACTERSW   L"\\/:*?\"<>|"
 
#define INVALID_FILETITLE_CHARACTERS   INVALID_FILETITLE_CHARACTERSA
 
#define SLI_VALID_LOCAL   0x00000001
 
#define SLI_VALID_NETWORK   0x00000002
 
#define SLI_CNR_VALID_DEVICE   0x00000001
 
#define SLI_CNR_VALID_NET_TYPE   0x00000002
 
#define EXP_TRACKER_SIG   0xa0000003
 
#define EXP_SHIM_SIG   0xa0000008
 
#define EXP_KNOWN_FOLDER_SIG   0xa000000b
 
#define EXP_VISTA_ID_LIST_SIG   0xa000000c
 

Typedefs

typedef struct _SHCNF_PRINTJOB_INFO SHCNF_PRINTJOB_INFO
 
typedef struct _SHCNF_PRINTJOB_INFOPSHCNF_PRINTJOB_INFO
 
typedef struct _NMRUNFILEDLGW NMRUNFILEDLGW
 
typedef struct _NMRUNFILEDLGWPNMRUNFILEDLGW
 
typedef struct _NMRUNFILEDLGWLPNMRUNFILEDLGW
 
typedef NMRUNFILEDLGW NMRUNFILEDLG
 
typedef PNMRUNFILEDLGW PNMRUNFILEDLG
 
typedef LPNMRUNFILEDLGW LPNMRUNFILEDLG
 
typedef struct CWTESTPATHSTRUCTLPCWTESTPATHSTRUCT
 
typedef void(CALLBACKLPFNFMCALLBACK) (LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidlFile)
 
typedef struct _REGSHELLSTATE REGSHELLSTATE
 
typedef struct _REGSHELLSTATEPREGSHELLSTATE
 
typedef struct SFVCBINFOLPSFVCBINFO
 
typedef const SFVCBINFOLPCSFVCBINFO
 
typedef struct SFVSELECTSTATELPSFVSELECTSTATE
 
typedef const SFVSELECTSTATELPCSFVSELECTSTATE
 
typedef struct SFVCOPYHOOKINFOLPSFVCOPYHOOKINFO
 
typedef const SFVCOPYHOOKINFOLPCSFVCOPYHOOKINFO
 
typedef struct SFVCOLUMNINFOLPSFVCOLUMNINFO
 
typedef HRESULT(CALLBACKLPFNCDCOCALLBACK) (LPUNKNOWN pUnkOuter, REFIID riidObject, LPVOID *ppvObject)
 
typedef HRESULT(CALLBACKPRIVILEGED_FUNCTION) (LPARAM lParam)
 
typedef struct tagSHELL_LINK_HEADER SHELL_LINK_HEADER
 
typedef struct tagSHELL_LINK_HEADERLPSHELL_LINK_HEADER
 
typedef struct tagSHELL_LINK_INFOA SHELL_LINK_INFOA
 
typedef struct tagSHELL_LINK_INFOALPSHELL_LINK_INFOA
 
typedef struct tagSHELL_LINK_INFOW SHELL_LINK_INFOW
 
typedef struct tagSHELL_LINK_INFOWLPSHELL_LINK_INFOW
 
typedef struct tagSHELL_LINK_INFO_VOLUME_IDA SHELL_LINK_INFO_VOLUME_IDA
 
typedef struct tagSHELL_LINK_INFO_VOLUME_IDALPSHELL_LINK_INFO_VOLUME_IDA
 
typedef struct tagSHELL_LINK_INFO_VOLUME_IDW SHELL_LINK_INFO_VOLUME_IDW
 
typedef struct tagSHELL_LINK_INFO_VOLUME_IDWLPSHELL_LINK_INFO_VOLUME_IDW
 
typedef struct tagSHELL_LINK_INFO_CNR_LINKA SHELL_LINK_INFO_CNR_LINKA
 
typedef struct tagSHELL_LINK_INFO_CNR_LINKALPSHELL_LINK_INFO_CNR_LINKA
 
typedef struct tagSHELL_LINK_INFO_CNR_LINKW SHELL_LINK_INFO_CNR_LINKW
 
typedef struct tagSHELL_LINK_INFO_CNR_LINKWLPSHELL_LINK_INFO_CNR_LINKW
 
typedef struct tagEXP_TRACKER EXP_TRACKER
 
typedef struct tagEXP_TRACKERLPEXP_TRACKER
 
typedef struct tagEXP_SHIM EXP_SHIM
 
typedef struct tagEXP_SHIMLPEXP_SHIM
 
typedef struct tagEXP_KNOWN_FOLDER EXP_KNOWN_FOLDER
 
typedef struct tagEXP_KNOWN_FOLDERLPEXP_KNOWN_FOLDER
 
typedef struct tagEXP_VISTA_ID_LIST EXP_VISTA_ID_LIST
 
typedef struct tagEXP_VISTA_ID_LISTLPEXP_VISTA_ID_LIST
 
typedef struct SFVM_CUSTOMVIEWINFO_DATA SFVM_CUSTOMVIEWINFO_DATA
 
typedef struct SFVM_CUSTOMVIEWINFO_DATALPSFVM_CUSTOMVIEWINFO_DATA
 

Functions

BOOL WINAPI ILGetDisplayName (LPCITEMIDLIST pidl, LPVOID path)
 
BOOL WINAPI ILGetDisplayNameEx (LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPVOID path, DWORD type)
 
LPITEMIDLIST WINAPI ILGlobalClone (LPCITEMIDLIST pidl)
 
void WINAPI ILGlobalFree (LPITEMIDLIST pidl)
 
LPITEMIDLIST WINAPI SHSimpleIDListFromPathA (LPCSTR lpszPath)
 
LPITEMIDLIST WINAPI SHSimpleIDListFromPathW (LPCWSTR lpszPath)
 
HRESULT WINAPI SHILCreateFromPathA (LPCSTR path, LPITEMIDLIST *ppidl, DWORD *attributes)
 
HRESULT WINAPI SHILCreateFromPathW (LPCWSTR path, LPITEMIDLIST *ppidl, DWORD *attributes)
 
BOOL WINAPI StrRetToStrNA (LPSTR, DWORD, LPSTRRET, const ITEMIDLIST *)
 
BOOL WINAPI StrRetToStrNW (LPWSTR, DWORD, LPSTRRET, const ITEMIDLIST *)
 
HRESULT WINAPI SHUpdateRecycleBinIcon (void)
 
void WINAPI RunFileDlg (HWND hWndOwner, HICON hIcon, LPCWSTR lpstrDirectory, LPCWSTR lpstrTitle, LPCWSTR lpstrDescription, UINT uFlags)
 
int WINAPI LogoffWindowsDialog (HWND hWndOwner)
 
void WINAPI ExitWindowsDialog (HWND hWndOwner)
 
BOOL WINAPI SHFindComputer (LPCITEMIDLIST pidlRoot, LPCITEMIDLIST pidlSavedSearch)
 
void WINAPI SHHandleDiskFull (HWND hwndOwner, UINT uDrive)
 
int WINAPI SHOutOfMemoryMessageBox (HWND hwndOwner, LPCSTR lpCaption, UINT uType)
 
DWORD WINAPI SHNetConnectionDialog (HWND hwndOwner, LPCWSTR lpstrRemoteName, DWORD dwType)
 
BOOL WINAPI SHIsTempDisplayMode (VOID)
 
int WINAPI Shell_GetCachedImageIndexA (LPCSTR lpszFileName, int nIconIndex, UINT bSimulateDoc)
 
BOOL WINAPI Shell_GetImageLists (HIMAGELIST *lphimlLarge, HIMAGELIST *lphimlSmall)
 
HICON WINAPI SHGetFileIcon (DWORD dwReserved, LPCSTR lpszPath, DWORD dwFileAttributes, UINT uFlags)
 
BOOL WINAPI FileIconInit (BOOL bFullInit)
 
WORD WINAPI ExtractIconResInfoA (_In_ HANDLE hHandle, _In_ LPCSTR lpFileName, _In_ WORD wIndex, _Out_ LPWORD lpSize, _Out_ LPHANDLE lpIcon)
 
WORD WINAPI ExtractIconResInfoW (_In_ HANDLE hHandle, _In_ LPCWSTR lpFileName, _In_ WORD wIndex, _Out_ LPWORD lpSize, _Out_ LPHANDLE lpIcon)
 
HMENU WINAPI FileMenu_Create (COLORREF crBorderColor, int nBorderWidth, HBITMAP hBorderBmp, int nSelHeight, UINT uFlags)
 
void WINAPI FileMenu_Destroy (HMENU hMenu)
 
BOOL WINAPI FileMenu_AppendItem (HMENU hMenu, LPCSTR lpszText, UINT uID, int iIcon, HMENU hMenuPopup, int nItemHeight)
 
int WINAPI FileMenu_InsertUsingPidl (HMENU hMenu, UINT uID, LPCITEMIDLIST pidl, UINT uFlags, UINT uEnumFlags, LPFNFMCALLBACK lpfnCallback)
 
int WINAPI FileMenu_ReplaceUsingPidl (HMENU hMenu, UINT uID, LPCITEMIDLIST pidl, UINT uEnumFlags, LPFNFMCALLBACK lpfnCallback)
 
void WINAPI FileMenu_Invalidate (HMENU hMenu)
 
HMENU WINAPI FileMenu_FindSubMenuByPidl (HMENU hMenu, LPCITEMIDLIST pidl)
 
BOOL WINAPI FileMenu_TrackPopupMenuEx (HMENU hMenu, UINT uFlags, int x, int y, HWND hWnd, LPTPMPARAMS lptpm)
 
BOOL WINAPI FileMenu_GetLastSelectedItemPidls (UINT uReserved, LPCITEMIDLIST *ppidlFolder, LPCITEMIDLIST *ppidlItem)
 
LRESULT WINAPI FileMenu_MeasureItem (HWND hWnd, LPMEASUREITEMSTRUCT lpmis)
 
LRESULT WINAPI FileMenu_DrawItem (HWND hWnd, LPDRAWITEMSTRUCT lpdis)
 
BOOL WINAPI FileMenu_InitMenuPopup (HMENU hMenu)
 
void WINAPI FileMenu_AbortInitMenu (void)
 
LRESULT WINAPI FileMenu_HandleMenuChar (HMENU hMenu, WPARAM wParam)
 
BOOL WINAPI FileMenu_DeleteAllItems (HMENU hMenu)
 
BOOL WINAPI FileMenu_DeleteItemByCmd (HMENU hMenu, UINT uID)
 
BOOL WINAPI FileMenu_DeleteItemByIndex (HMENU hMenu, UINT uPos)
 
BOOL WINAPI FileMenu_DeleteMenuItemByFirstID (HMENU hMenu, UINT uID)
 
BOOL WINAPI FileMenu_DeleteSeparator (HMENU hMenu)
 
BOOL WINAPI FileMenu_EnableItemByCmd (HMENU hMenu, UINT uID, BOOL bEnable)
 
DWORD WINAPI FileMenu_GetItemExtent (HMENU hMenu, UINT uPos)
 
int WINAPI FileMenu_AppendFilesForPidl (HMENU hMenu, LPCITEMIDLIST pidl, BOOL bAddSeparator)
 
int WINAPI FileMenu_AddFilesForPidl (HMENU hMenu, UINT uReserved, UINT uID, LPCITEMIDLIST pidl, UINT uFlags, UINT uEnumFlags, LPFNFMCALLBACK lpfnCallback)
 
HRESULT WINAPI SHRegisterDragDrop (HWND hWnd, LPDROPTARGET lpDropTarget)
 
HRESULT WINAPI SHRevokeDragDrop (HWND hWnd)
 
BOOL WINAPI DAD_DragEnter (HWND hWnd)
 
BOOL WINAPI DAD_SetDragImageFromListView (HWND hWnd, POINT pt)
 
BOOL WINAPI DAD_ShowDragImage (BOOL bShow)
 
BOOL WINAPI PathAppendAW (LPVOID lpszPath1, LPCVOID lpszPath2)
 
LPVOID WINAPI PathCombineAW (LPVOID szDest, LPCVOID lpszDir, LPCVOID lpszFile)
 
LPVOID WINAPI PathAddBackslashAW (LPVOID path)
 
LPVOID WINAPI PathBuildRootAW (LPVOID lpszPath, int drive)
 
LPVOID WINAPI PathFindExtensionAW (LPCVOID path)
 
LPVOID WINAPI PathFindFileNameAW (LPCVOID path)
 
LPVOID WINAPI PathGetExtensionAW (LPCVOID lpszPath, DWORD void1, DWORD void2)
 
LPVOID WINAPI PathGetArgsAW (LPVOID lpszPath)
 
BOOL WINAPI PathRemoveFileSpecAW (LPVOID lpszPath)
 
void WINAPI PathRemoveBlanksAW (LPVOID lpszPath)
 
VOID WINAPI PathQuoteSpacesAW (LPVOID path)
 
void WINAPI PathUnquoteSpacesAW (LPVOID lpszPath)
 
BOOL WINAPI PathIsUNCAW (LPCVOID lpszPath)
 
BOOL WINAPI PathIsRelativeAW (LPCVOID lpszPath)
 
BOOL WINAPI PathIsRootAW (LPCVOID x)
 
BOOL WINAPI PathIsExeAW (LPCVOID lpszPath)
 
BOOL WINAPI PathIsDirectoryAW (LPCVOID lpszPath)
 
BOOL WINAPI PathFileExistsAW (LPCVOID lpszPath)
 
BOOL WINAPI PathMatchSpecAW (LPVOID lpszPath, LPVOID lpszSpec)
 
BOOL WINAPI PathMakeUniqueNameAW (LPVOID lpszBuffer, DWORD dwBuffSize, LPCVOID lpszShortName, LPCVOID lpszLongName, LPCVOID lpszPathName)
 
BOOL WINAPI PathYetAnotherMakeUniqueName (LPWSTR lpszBuffer, LPCWSTR lpszPathName, LPCWSTR lpszShortName, LPCWSTR lpszLongName)
 
VOID WINAPI PathQualifyA (LPSTR pszPath)
 
VOID WINAPI PathQualifyW (LPWSTR pszPath)
 
VOID WINAPI PathQualifyAW (LPVOID path)
 
BOOL WINAPI PathResolveA (LPSTR path, LPCSTR *dirs, DWORD flags)
 
BOOL WINAPI PathResolveW (LPWSTR path, LPCWSTR *dirs, DWORD flags)
 
BOOL WINAPI PathResolveAW (LPVOID lpszPath, LPCVOID *alpszPaths, DWORD dwFlags)
 
VOID WINAPI PathSetDlgItemPathAW (HWND hDlg, int nIDDlgItem, LPCVOID lpszPath)
 
HRESULT WINAPI PathProcessCommandAW (LPCVOID lpszPath, LPVOID lpszBuff, DWORD dwBuffSize, DWORD dwFlags)
 
void WINAPI PathStripPathAW (LPVOID lpszPath)
 
BOOL WINAPI PathStripToRootAW (LPVOID lpszPath)
 
void WINAPI PathRemoveArgsAW (LPVOID lpszPath)
 
void WINAPI PathRemoveExtensionAW (LPVOID lpszPath)
 
int WINAPI PathParseIconLocationAW (LPVOID lpszPath)
 
BOOL WINAPI PathIsSameRootAW (LPCVOID lpszPath1, LPCVOID lpszPath2)
 
BOOL WINAPI PathFindOnPathAW (LPVOID sFile, LPCVOID *sOtherDirs)
 
BOOL WINAPI PathIsEqualOrSubFolder (_In_ LPCWSTR pszFile1OrCSIDL, _In_ LPCWSTR pszFile2)
 
BOOL WINAPI PathIsTemporaryA (_In_ LPCSTR Str)
 
BOOL WINAPI PathIsTemporaryW (_In_ LPCWSTR Str)
 
 C_ASSERT (sizeof(REGSHELLSTATE)==REGSHELLSTATE_SIZE)
 
BOOL WINAPI RegenerateUserEnvironment (LPVOID *lpEnvironment, BOOL bUpdateSelf)
 
BOOL WINAPI SHWaitForFileToOpen (LPCITEMIDLIST pidl, DWORD dwFlags, DWORD dwTimeout)
 
WORD WINAPI ArrangeWindows (HWND hwndParent, DWORD dwReserved, LPCRECT lpRect, WORD cKids, CONST HWND *lpKids)
 
HRESULT WINAPI ShellExecCmdLine (HWND hwnd, LPCWSTR pwszCommand, LPCWSTR pwszStartDir, int nShow, LPVOID pUnused, DWORD dwSeclFlags)
 
HINSTANCE WINAPI RealShellExecuteA (_In_opt_ HWND hwnd, _In_opt_ LPCSTR lpOperation, _In_opt_ LPCSTR lpFile, _In_opt_ LPCSTR lpParameters, _In_opt_ LPCSTR lpDirectory, _In_opt_ LPSTR lpReturn, _In_opt_ LPCSTR lpTitle, _In_opt_ LPVOID lpReserved, _In_ INT nCmdShow, _Out_opt_ PHANDLE lphProcess)
 
HINSTANCE WINAPI RealShellExecuteW (_In_opt_ HWND hwnd, _In_opt_ LPCWSTR lpOperation, _In_opt_ LPCWSTR lpFile, _In_opt_ LPCWSTR lpParameters, _In_opt_ LPCWSTR lpDirectory, _In_opt_ LPWSTR lpReturn, _In_opt_ LPCWSTR lpTitle, _In_opt_ LPVOID lpReserved, _In_ INT nCmdShow, _Out_opt_ PHANDLE lphProcess)
 
HINSTANCE WINAPI RealShellExecuteExA (_In_opt_ HWND hwnd, _In_opt_ LPCSTR lpOperation, _In_opt_ LPCSTR lpFile, _In_opt_ LPCSTR lpParameters, _In_opt_ LPCSTR lpDirectory, _In_opt_ LPSTR lpReturn, _In_opt_ LPCSTR lpTitle, _In_opt_ LPVOID lpReserved, _In_ INT nCmdShow, _Out_opt_ PHANDLE lphProcess, _In_ DWORD dwFlags)
 
HINSTANCE WINAPI RealShellExecuteExW (_In_opt_ HWND hwnd, _In_opt_ LPCWSTR lpOperation, _In_opt_ LPCWSTR lpFile, _In_opt_ LPCWSTR lpParameters, _In_opt_ LPCWSTR lpDirectory, _In_opt_ LPWSTR lpReturn, _In_opt_ LPCWSTR lpTitle, _In_opt_ LPVOID lpReserved, _In_ INT nCmdShow, _Out_opt_ PHANDLE lphProcess, _In_ DWORD dwFlags)
 
BOOL WINAPI RegisterShellHook (HWND hWnd, DWORD dwType)
 
HRESULT WINAPI SHCreateDefClassObject (REFIID riidFactory, LPVOID *ppvFactory, LPFNCDCOCALLBACK lpfnCallback, LPDWORD lpdwUsage, REFIID riidObject)
 
void WINAPI SHFreeUnusedLibraries (void)
 
HRESULT WINAPI SHCreateLinks (HWND hWnd, LPCSTR lpszDir, LPDATAOBJECT lpDataObject, UINT uFlags, LPITEMIDLIST *lppidlLinks)
 
VOID WINAPI CheckEscapesA (LPSTR string, DWORD len)
 
VOID WINAPI CheckEscapesW (LPWSTR string, DWORD len)
 
BOOL WINAPI SHInitRestricted (LPCVOID unused, LPCVOID inpRegKey)
 
INT WINAPI Shell_GetCachedImageIndex (LPCWSTR szPath, INT nIndex, UINT bSimulateDoc)
 
HRESULT WINAPI SHCreatePropertyBag (_In_ REFIID riid, _Out_ void **ppvObj)
 
HRESULT WINAPI SHLimitInputCombo (HWND hWnd, IShellFolder *psf)
 
HRESULT WINAPI SHGetImageList (int iImageList, REFIID riid, void **ppv)
 
BOOL WINAPI GUIDFromStringA (_In_ PCSTR psz, _Out_ LPGUID pguid)
 
BOOL WINAPI GUIDFromStringW (_In_ PCWSTR psz, _Out_ LPGUID pguid)
 
LPSTR WINAPI SheRemoveQuotesA (LPSTR psz)
 
LPWSTR WINAPI SheRemoveQuotesW (LPWSTR psz)
 
INT WINAPI Int64ToString (_In_ LONGLONG llValue, _Out_writes_z_(cchOut) LPWSTR pszOut, _In_ UINT cchOut, _In_ BOOL bUseFormat, _In_opt_ const NUMBERFMTW *pNumberFormat, _In_ DWORD dwNumberFlags)
 
INT WINAPI LargeIntegerToString (_In_ const LARGE_INTEGER *pLargeInt, _Out_writes_z_(cchOut) LPWSTR pszOut, _In_ UINT cchOut, _In_ BOOL bUseFormat, _In_opt_ const NUMBERFMTW *pNumberFormat, _In_ DWORD dwNumberFlags)
 
LPWSTR WINAPI ShortSizeFormatW (_In_ DWORD dwNumber, _Out_writes_(0x8FFF) LPWSTR pszBuffer)
 
BOOL WINAPI SHOpenEffectiveToken (_Out_ LPHANDLE phToken)
 
DWORD WINAPI SHGetUserSessionId (_In_opt_ HANDLE hToken)
 
HRESULT WINAPI SHInvokePrivilegedFunctionW (_In_z_ LPCWSTR pszName, _In_ PRIVILEGED_FUNCTION fn, _In_opt_ LPARAM lParam)
 
BOOL WINAPI SHTestTokenPrivilegeW (_In_opt_ HANDLE hToken, _In_z_ LPCWSTR lpName)
 
BOOL WINAPI IsSuspendAllowed (VOID)
 
BOOL WINAPI Activate_RunDLL (_In_ HWND hwnd, _In_ HINSTANCE hinst, _In_ LPCWSTR cmdline, _In_ INT cmdshow)
 
BOOL WINAPI SHSettingsChanged (LPCVOID unused, LPCWSTR pszKey)
 
void WINAPI ShellDDEInit (BOOL bInit)
 
DWORD WINAPI WinList_Init (void)
 
IStream *WINAPI SHGetViewStream (LPCITEMIDLIST, DWORD, LPCTSTR, LPCTSTR, LPCTSTR)
 
HRESULT WINAPI SHCreateSessionKey (REGSAM samDesired, PHKEY phKey)
 
LONG WINAPI SHRegQueryValueExA (HKEY hkey, LPCSTR lpValueName, LPDWORD lpReserved, LPDWORD lpType, LPBYTE lpData, LPDWORD lpcbData)
 
LONG WINAPI SHRegQueryValueExW (HKEY hkey, LPCWSTR pszValue, LPDWORD pdwReserved, LPDWORD pdwType, LPVOID pvData, LPDWORD pcbData)
 
HRESULT WINAPI CopyStreamUI (_In_ IStream *pSrc, _Out_ IStream *pDst, _Inout_opt_ IProgressDialog *pProgress, _In_opt_ DWORDLONG dwlSize)
 

Macro Definition Documentation

◆ BBID_STARTANIMATION

#define BBID_STARTANIMATION   1

Definition at line 836 of file undocshell.h.

◆ BBID_STOPANIMATION

#define BBID_STOPANIMATION   2

Definition at line 837 of file undocshell.h.

◆ CSIDL_FOLDER_MASK

#define CSIDL_FOLDER_MASK   0x00ff

Definition at line 733 of file undocshell.h.

◆ CWM_GETISHELLBROWSER

#define CWM_GETISHELLBROWSER   (WM_USER + 7)

Definition at line 206 of file undocshell.h.

◆ CWM_GETPATH

#define CWM_GETPATH   (WM_USER + 12)

Definition at line 209 of file undocshell.h.

◆ CWM_GETSETCURRENTINFO

#define CWM_GETSETCURRENTINFO   (WM_USER + 4)

Definition at line 203 of file undocshell.h.

◆ CWM_SELECTITEM

#define CWM_SELECTITEM   (WM_USER + 5)

Definition at line 204 of file undocshell.h.

◆ CWM_SELECTITEMSTR

#define CWM_SELECTITEMSTR   (WM_USER + 6)

Definition at line 205 of file undocshell.h.

◆ CWM_SETPATH

#define CWM_SETPATH   (WM_USER + 2)

Definition at line 201 of file undocshell.h.

◆ CWM_STATECHANGE

#define CWM_STATECHANGE   (WM_USER + 10)

Definition at line 208 of file undocshell.h.

◆ CWM_TESTPATH

#define CWM_TESTPATH   (WM_USER + 9)

Definition at line 207 of file undocshell.h.

◆ CWM_WANTIDLE

#define CWM_WANTIDLE   (WM_USER + 3)

Definition at line 202 of file undocshell.h.

◆ CWTP_ISCHILD

#define CWTP_ISCHILD   1

Definition at line 215 of file undocshell.h.

◆ CWTP_ISEQUAL

#define CWTP_ISEQUAL   0

Definition at line 214 of file undocshell.h.

◆ DE_ACCESSDENIEDSRC

#define DE_ACCESSDENIEDSRC   0x78

Definition at line 521 of file undocshell.h.

◆ DE_DEST_IS_CDRECORD

#define DE_DEST_IS_CDRECORD   0x84

Definition at line 531 of file undocshell.h.

◆ DE_DEST_IS_CDROM

#define DE_DEST_IS_CDROM   0x82

Definition at line 529 of file undocshell.h.

◆ DE_DEST_IS_DVD

#define DE_DEST_IS_DVD   0x83

Definition at line 530 of file undocshell.h.

◆ DE_DESTSAMETREE

#define DE_DESTSAMETREE   0x7D

Definition at line 525 of file undocshell.h.

◆ DE_DESTSUBTREE

#define DE_DESTSUBTREE   0x76

Definition at line 520 of file undocshell.h.

◆ DE_DIFFDIR

#define DE_DIFFDIR   0x73

Definition at line 517 of file undocshell.h.

◆ DE_FILE_TOO_LARGE

#define DE_FILE_TOO_LARGE   0x85

Definition at line 532 of file undocshell.h.

◆ DE_FILEDESTISFLD

#define DE_FILEDESTISFLD   0x80

Definition at line 527 of file undocshell.h.

◆ DE_FILENAMETOOLONG

#define DE_FILENAMETOOLONG   0x81

Definition at line 528 of file undocshell.h.

◆ DE_FLDDESTISFILE

#define DE_FLDDESTISFILE   0x7E

Definition at line 526 of file undocshell.h.

◆ DE_INVALIDFILES

#define DE_INVALIDFILES   0x7C

Definition at line 524 of file undocshell.h.

◆ DE_MANYDEST

#define DE_MANYDEST   0x7A

Definition at line 523 of file undocshell.h.

◆ DE_MANYSRC1DEST

#define DE_MANYSRC1DEST   0x72

Definition at line 516 of file undocshell.h.

◆ DE_OPCANCELLED

#define DE_OPCANCELLED   0x75

Definition at line 519 of file undocshell.h.

◆ DE_PATHTOODEEP

#define DE_PATHTOODEEP   0x79

Definition at line 522 of file undocshell.h.

◆ DE_ROOTDIR

#define DE_ROOTDIR   0x74

Definition at line 518 of file undocshell.h.

◆ DE_SAMEFILE

#define DE_SAMEFILE   0x71

Definition at line 515 of file undocshell.h.

◆ DE_SRC_IS_CDRECORD

#define DE_SRC_IS_CDRECORD   0x88

Definition at line 535 of file undocshell.h.

◆ DE_SRC_IS_CDROM

#define DE_SRC_IS_CDROM   0x86

Definition at line 533 of file undocshell.h.

◆ DE_SRC_IS_DVD

#define DE_SRC_IS_DVD   0x87

Definition at line 534 of file undocshell.h.

◆ ERRORONDEST

#define ERRORONDEST   0x10000

Definition at line 537 of file undocshell.h.

◆ EXP_KNOWN_FOLDER_SIG

#define EXP_KNOWN_FOLDER_SIG   0xa000000b

Definition at line 1130 of file undocshell.h.

◆ EXP_SHIM_SIG

#define EXP_SHIM_SIG   0xa0000008

Definition at line 1129 of file undocshell.h.

◆ EXP_TRACKER_SIG

#define EXP_TRACKER_SIG   0xa0000003

Definition at line 1128 of file undocshell.h.

◆ EXP_VISTA_ID_LIST_SIG

#define EXP_VISTA_ID_LIST_SIG   0xa000000c

Definition at line 1131 of file undocshell.h.

◆ FM_BLANK_ICON

#define FM_BLANK_ICON   -1

Definition at line 285 of file undocshell.h.

◆ FM_DEFAULT_HEIGHT

#define FM_DEFAULT_HEIGHT   0

Definition at line 286 of file undocshell.h.

◆ FM_DEFAULT_SELHEIGHT

#define FM_DEFAULT_SELHEIGHT   -1

Definition at line 266 of file undocshell.h.

◆ FM_FULL_SELHEIGHT

#define FM_FULL_SELHEIGHT   0

Definition at line 267 of file undocshell.h.

◆ FM_SEPARATOR

#define FM_SEPARATOR   (LPCSTR)1

Definition at line 284 of file undocshell.h.

◆ FMF_LARGE_ICONS

#define FMF_LARGE_ICONS   0x08

Definition at line 271 of file undocshell.h.

◆ FMF_NO_COLUMN_BREAK

#define FMF_NO_COLUMN_BREAK   0x10

Definition at line 272 of file undocshell.h.

◆ FMF_NO_EMPTY_ITEM

#define FMF_NO_EMPTY_ITEM   0x01

Definition at line 297 of file undocshell.h.

◆ FMF_NO_PROGRAM_GROUPS

#define FMF_NO_PROGRAM_GROUPS   0x04

Definition at line 298 of file undocshell.h.

◆ FMF_SMALL_ICONS

#define FMF_SMALL_ICONS   0x00

Definition at line 270 of file undocshell.h.

◆ FMT_USE_DECIMAL

#define FMT_USE_DECIMAL   0x08

Definition at line 759 of file undocshell.h.

◆ FMT_USE_GROUPING

#define FMT_USE_GROUPING   0x04

Definition at line 758 of file undocshell.h.

◆ FMT_USE_LEADZERO

#define FMT_USE_LEADZERO   0x02

Definition at line 757 of file undocshell.h.

◆ FMT_USE_NEGNUMBER

#define FMT_USE_NEGNUMBER   0x20

Definition at line 761 of file undocshell.h.

◆ FMT_USE_NUMDIGITS

#define FMT_USE_NUMDIGITS   0x01

Definition at line 756 of file undocshell.h.

◆ FMT_USE_THOUSAND

#define FMT_USE_THOUSAND   0x10

Definition at line 760 of file undocshell.h.

◆ IDB_GOBUTTON_HOT

#define IDB_GOBUTTON_HOT   0x0e7

Definition at line 815 of file undocshell.h.

◆ IDB_GOBUTTON_NORMAL

#define IDB_GOBUTTON_NORMAL   0x0e6

Definition at line 814 of file undocshell.h.

◆ ILGDN_FORPARSING

#define ILGDN_FORPARSING   0

Definition at line 71 of file undocshell.h.

◆ ILGDN_INFOLDER

#define ILGDN_INFOLDER   2

Definition at line 73 of file undocshell.h.

◆ ILGDN_NORMAL

#define ILGDN_NORMAL   1

Definition at line 72 of file undocshell.h.

◆ INVALID_FILETITLE_CHARACTERS

#define INVALID_FILETITLE_CHARACTERS   INVALID_FILETITLE_CHARACTERSA

Definition at line 917 of file undocshell.h.

◆ INVALID_FILETITLE_CHARACTERSA

#define INVALID_FILETITLE_CHARACTERSA   "\\/:*?\"<>|"

Definition at line 911 of file undocshell.h.

◆ INVALID_FILETITLE_CHARACTERSW

#define INVALID_FILETITLE_CHARACTERSW   L"\\/:*?\"<>|"

Definition at line 912 of file undocshell.h.

◆ ITBBID_ADDRESSBAND

#define ITBBID_ADDRESSBAND   4

Definition at line 821 of file undocshell.h.

◆ ITBBID_BRANDBAND

#define ITBBID_BRANDBAND   5

Definition at line 819 of file undocshell.h.

◆ ITBBID_MENUBAND

#define ITBBID_MENUBAND   1

Definition at line 818 of file undocshell.h.

◆ ITBBID_TOOLSBAND

#define ITBBID_TOOLSBAND   2

Definition at line 820 of file undocshell.h.

◆ ITID_ADDRESSBANDSHOWN

#define ITID_ADDRESSBANDSHOWN   5

Definition at line 828 of file undocshell.h.

◆ ITID_AUTOHIDEENABLED

#define ITID_AUTOHIDEENABLED   13

Definition at line 831 of file undocshell.h.

◆ ITID_CUSTOMIZEENABLED

#define ITID_CUSTOMIZEENABLED   20

Definition at line 832 of file undocshell.h.

◆ ITID_LINKSBANDSHOWN

#define ITID_LINKSBANDSHOWN   6

Definition at line 829 of file undocshell.h.

◆ ITID_MENUBANDSHOWN

#define ITID_MENUBANDSHOWN   12

Definition at line 830 of file undocshell.h.

◆ ITID_TEXTLABELS

#define ITID_TEXTLABELS   3

Definition at line 826 of file undocshell.h.

◆ ITID_TOOLBARBANDSHOWN

#define ITID_TOOLBARBANDSHOWN   4

Definition at line 827 of file undocshell.h.

◆ ITID_TOOLBARLOCKED

#define ITID_TOOLBARLOCKED   27

Definition at line 833 of file undocshell.h.

◆ PPCF_DONTRESOLVE

#define PPCF_DONTRESOLVE   0x20

Definition at line 485 of file undocshell.h.

◆ PPCF_INCLUDEARGS

#define PPCF_INCLUDEARGS   0x02

Definition at line 483 of file undocshell.h.

◆ PPCF_PATHISRELATIVE

#define PPCF_PATHISRELATIVE   0x40

Definition at line 486 of file undocshell.h.

◆ PPCF_QUOTEPATH

#define PPCF_QUOTEPATH   0x01 /* implies PPCF_INCLUDEARGS */

Definition at line 482 of file undocshell.h.

◆ PRF_CHECKEXISTANCE

#define PRF_CHECKEXISTANCE   0x01

Definition at line 470 of file undocshell.h.

◆ PRF_EXECUTABLE

#define PRF_EXECUTABLE   0x02

Definition at line 471 of file undocshell.h.

◆ PRF_QUALIFYONPATH

#define PRF_QUALIFYONPATH   0x04

Definition at line 472 of file undocshell.h.

◆ PRF_WINDOWS31

#define PRF_WINDOWS31   0x08

Definition at line 473 of file undocshell.h.

◆ REGSHELLSTATE_SIZE

#define REGSHELLSTATE_SIZE   0x24

Definition at line 548 of file undocshell.h.

◆ REGSHELLSTATE_VERSION

#define REGSHELLSTATE_VERSION   0xD

Definition at line 549 of file undocshell.h.

◆ RF_CANCEL

#define RF_CANCEL   0x01

Definition at line 164 of file undocshell.h.

◆ RF_OK

#define RF_OK   0x00

Definition at line 163 of file undocshell.h.

◆ RF_RETRY

#define RF_RETRY   0x02

Definition at line 165 of file undocshell.h.

◆ RFF_CALCDIRECTORY

#define RFF_CALCDIRECTORY   0x04 /* Calculates the working directory from the file name */

Definition at line 135 of file undocshell.h.

◆ RFF_NOBROWSE

#define RFF_NOBROWSE   0x01 /* Removes the browse button */

Definition at line 133 of file undocshell.h.

◆ RFF_NODEFAULT

#define RFF_NODEFAULT   0x02 /* No default item selected */

Definition at line 134 of file undocshell.h.

◆ RFF_NOLABEL

#define RFF_NOLABEL   0x08 /* Removes the edit box label */

Definition at line 136 of file undocshell.h.

◆ RFF_NOSEPARATEMEM

#define RFF_NOSEPARATEMEM   0x20 /* Removes the Separate Memory Space check box (Windows NT only) */

Definition at line 137 of file undocshell.h.

◆ RFN_VALIDATE

#define RFN_VALIDATE   (-510)

Definition at line 140 of file undocshell.h.

◆ RSH_DEREGISTER

#define RSH_DEREGISTER   0

Definition at line 692 of file undocshell.h.

◆ RSH_REGISTER

#define RSH_REGISTER   1

Definition at line 693 of file undocshell.h.

◆ RSH_REGISTER_PROGMAN

#define RSH_REGISTER_PROGMAN   2

Definition at line 694 of file undocshell.h.

◆ RSH_REGISTER_TASKMAN

#define RSH_REGISTER_TASKMAN   3

Definition at line 695 of file undocshell.h.

◆ SECL_ALLOW_NONEXE

#define SECL_ALLOW_NONEXE   0x20

Definition at line 626 of file undocshell.h.

◆ SECL_LOG_USAGE

#define SECL_LOG_USAGE   0x8

Definition at line 624 of file undocshell.h.

◆ SECL_NO_UI

#define SECL_NO_UI   0x2

Definition at line 623 of file undocshell.h.

◆ SECL_RUNAS

#define SECL_RUNAS   0x40

Definition at line 627 of file undocshell.h.

◆ SECL_USE_IDLIST

#define SECL_USE_IDLIST   0x10

Definition at line 625 of file undocshell.h.

◆ SHCLF_CREATEONDESKTOP

#define SHCLF_CREATEONDESKTOP   0x02

Definition at line 718 of file undocshell.h.

◆ SHCLF_PREFIXNAME

#define SHCLF_PREFIXNAME   0x01

Definition at line 717 of file undocshell.h.

◆ SHCNF_PRINTJOBA

#define SHCNF_PRINTJOBA   0x0004

Definition at line 123 of file undocshell.h.

◆ SHCNF_PRINTJOBW

#define SHCNF_PRINTJOBW   0x0007

Definition at line 124 of file undocshell.h.

◆ SHCNRF_InterruptLevel

#define SHCNRF_InterruptLevel   0x0001

Definition at line 105 of file undocshell.h.

◆ SHCNRF_NewDelivery

#define SHCNRF_NewDelivery   0x8000 /* Messages use shared memory */

Definition at line 108 of file undocshell.h.

◆ SHCNRF_RecursiveInterrupt

#define SHCNRF_RecursiveInterrupt   0x1000 /* Must be combined with SHCNRF_InterruptLevel */

Definition at line 107 of file undocshell.h.

◆ SHCNRF_ShellLevel

#define SHCNRF_ShellLevel   0x0002

Definition at line 106 of file undocshell.h.

◆ SHRegQueryValueEx

#define SHRegQueryValueEx   SHRegQueryValueExA

Definition at line 897 of file undocshell.h.

◆ SHWFF_ADD

#define SHWFF_ADD   0x01

Definition at line 606 of file undocshell.h.

◆ SHWFF_REMOVE

#define SHWFF_REMOVE   0x02

Definition at line 607 of file undocshell.h.

◆ SHWFF_WAIT

#define SHWFF_WAIT   0x04

Definition at line 608 of file undocshell.h.

◆ SLI_CNR_VALID_DEVICE

#define SLI_CNR_VALID_DEVICE   0x00000001

Definition at line 1076 of file undocshell.h.

◆ SLI_CNR_VALID_NET_TYPE

#define SLI_CNR_VALID_NET_TYPE   0x00000002

Definition at line 1078 of file undocshell.h.

◆ SLI_VALID_LOCAL

#define SLI_VALID_LOCAL   0x00000001

Definition at line 997 of file undocshell.h.

◆ SLI_VALID_NETWORK

#define SLI_VALID_NETWORK   0x00000002

Definition at line 999 of file undocshell.h.

◆ SMC_EXEC

#define SMC_EXEC   4

Definition at line 738 of file undocshell.h.

◆ SMSET_UNKNOWN08

#define SMSET_UNKNOWN08   0x08

Definition at line 840 of file undocshell.h.

◆ SMSET_UNKNOWN10

#define SMSET_UNKNOWN10   0x10

Definition at line 841 of file undocshell.h.

◆ TABDMC_APPBAR

#define TABDMC_APPBAR   0

Definition at line 869 of file undocshell.h.

◆ TABDMC_LOADINPROC

#define TABDMC_LOADINPROC   2

Definition at line 871 of file undocshell.h.

◆ TABDMC_NOTIFY

#define TABDMC_NOTIFY   1

Definition at line 870 of file undocshell.h.

◆ TRAYCMD_CASCADE

#define TRAYCMD_CASCADE   403

Definition at line 847 of file undocshell.h.

◆ TRAYCMD_CONTROL_PANEL

#define TRAYCMD_CONTROL_PANEL   505

Definition at line 860 of file undocshell.h.

◆ TRAYCMD_CUSTOMIZE_TASKBAR

#define TRAYCMD_CUSTOMIZE_TASKBAR   421

Definition at line 857 of file undocshell.h.

◆ TRAYCMD_DATE_AND_TIME

#define TRAYCMD_DATE_AND_TIME   408

Definition at line 851 of file undocshell.h.

◆ TRAYCMD_HELP_AND_SUPPORT

#define TRAYCMD_HELP_AND_SUPPORT   503

Definition at line 859 of file undocshell.h.

◆ TRAYCMD_LOCK_DESKTOP

#define TRAYCMD_LOCK_DESKTOP   517

Definition at line 863 of file undocshell.h.

◆ TRAYCMD_LOCK_TASKBAR

#define TRAYCMD_LOCK_TASKBAR   424

Definition at line 858 of file undocshell.h.

◆ TRAYCMD_LOGOFF_DIALOG

#define TRAYCMD_LOGOFF_DIALOG   402

Definition at line 846 of file undocshell.h.

◆ TRAYCMD_MINIMIZE_ALL

#define TRAYCMD_MINIMIZE_ALL   415

Definition at line 853 of file undocshell.h.

◆ TRAYCMD_PRINTERS_AND_FAXES

#define TRAYCMD_PRINTERS_AND_FAXES   510

Definition at line 862 of file undocshell.h.

◆ TRAYCMD_RESTORE_ALL

#define TRAYCMD_RESTORE_ALL   416

Definition at line 854 of file undocshell.h.

◆ TRAYCMD_RUN_DIALOG

#define TRAYCMD_RUN_DIALOG   401

Definition at line 845 of file undocshell.h.

◆ TRAYCMD_SEARCH_COMPUTERS

#define TRAYCMD_SEARCH_COMPUTERS   41094

Definition at line 866 of file undocshell.h.

◆ TRAYCMD_SEARCH_FILES

#define TRAYCMD_SEARCH_FILES   41093

Definition at line 865 of file undocshell.h.

◆ TRAYCMD_SHOW_DESKTOP

#define TRAYCMD_SHOW_DESKTOP   419

Definition at line 855 of file undocshell.h.

◆ TRAYCMD_SHOW_TASK_MGR

#define TRAYCMD_SHOW_TASK_MGR   420

Definition at line 856 of file undocshell.h.

◆ TRAYCMD_SHUTDOWN_DIALOG

#define TRAYCMD_SHUTDOWN_DIALOG   506

Definition at line 861 of file undocshell.h.

◆ TRAYCMD_STARTMENU

#define TRAYCMD_STARTMENU   305

Definition at line 844 of file undocshell.h.

◆ TRAYCMD_SWITCH_USER_DIALOG

#define TRAYCMD_SWITCH_USER_DIALOG   5000

Definition at line 864 of file undocshell.h.

◆ TRAYCMD_TASKBAR_PROPERTIES

#define TRAYCMD_TASKBAR_PROPERTIES   413

Definition at line 852 of file undocshell.h.

◆ TRAYCMD_TILE_H

#define TRAYCMD_TILE_H   404

Definition at line 848 of file undocshell.h.

◆ TRAYCMD_TILE_V

#define TRAYCMD_TILE_V   405

Definition at line 849 of file undocshell.h.

◆ TRAYCMD_TOGGLE_DESKTOP

#define TRAYCMD_TOGGLE_DESKTOP   407

Definition at line 850 of file undocshell.h.

◆ TWM_CYCLEFOCUS

#define TWM_CYCLEFOCUS   (WM_USER + 348)

Definition at line 55 of file undocshell.h.

◆ TWM_DOEXITWINDOWS

#define TWM_DOEXITWINDOWS   (WM_USER + 342)

Definition at line 54 of file undocshell.h.

◆ WM_GETISHELLBROWSER

#define WM_GETISHELLBROWSER   CWM_GETISHELLBROWSER

Definition at line 211 of file undocshell.h.

◆ WM_PROGMAN_OPENSHELLSETTINGS

#define WM_PROGMAN_OPENSHELLSETTINGS   (WM_USER + 22) /* wParam specifies the dialog (and tab page) */

Definition at line 60 of file undocshell.h.

◆ WM_PROGMAN_SAVESTATE

#define WM_PROGMAN_SAVESTATE   (WM_USER + 77)

Definition at line 61 of file undocshell.h.

Typedef Documentation

◆ EXP_KNOWN_FOLDER

◆ EXP_SHIM

◆ EXP_TRACKER

◆ EXP_VISTA_ID_LIST

◆ LPCSFVCBINFO

Definition at line 564 of file undocshell.h.

◆ LPCSFVCOPYHOOKINFO

Definition at line 587 of file undocshell.h.

◆ LPCSFVSELECTSTATE

Definition at line 574 of file undocshell.h.

◆ LPCWTESTPATHSTRUCT

◆ LPEXP_KNOWN_FOLDER

◆ LPEXP_SHIM

◆ LPEXP_TRACKER

◆ LPEXP_VISTA_ID_LIST

◆ LPFNCDCOCALLBACK

typedef HRESULT(CALLBACK * LPFNCDCOCALLBACK) (LPUNKNOWN pUnkOuter, REFIID riidObject, LPVOID *ppvObject)

Definition at line 702 of file undocshell.h.

◆ LPFNFMCALLBACK

typedef void(CALLBACK * LPFNFMCALLBACK) (LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidlFile)

Definition at line 301 of file undocshell.h.

◆ LPNMRUNFILEDLG

Definition at line 160 of file undocshell.h.

◆ LPNMRUNFILEDLGW

◆ LPSFVCBINFO

◆ LPSFVCOLUMNINFO

◆ LPSFVCOPYHOOKINFO

◆ LPSFVM_CUSTOMVIEWINFO_DATA

◆ LPSFVSELECTSTATE

◆ LPSHELL_LINK_HEADER

◆ LPSHELL_LINK_INFO_CNR_LINKA

◆ LPSHELL_LINK_INFO_CNR_LINKW

◆ LPSHELL_LINK_INFO_VOLUME_IDA

◆ LPSHELL_LINK_INFO_VOLUME_IDW

◆ LPSHELL_LINK_INFOA

◆ LPSHELL_LINK_INFOW

◆ NMRUNFILEDLG

Definition at line 158 of file undocshell.h.

◆ NMRUNFILEDLGW

◆ PNMRUNFILEDLG

Definition at line 159 of file undocshell.h.

◆ PNMRUNFILEDLGW

◆ PREGSHELLSTATE

◆ PRIVILEGED_FUNCTION

typedef HRESULT(CALLBACK * PRIVILEGED_FUNCTION) (LPARAM lParam)

Definition at line 789 of file undocshell.h.

◆ PSHCNF_PRINTJOB_INFO

◆ REGSHELLSTATE

◆ SFVM_CUSTOMVIEWINFO_DATA

◆ SHCNF_PRINTJOB_INFO

◆ SHELL_LINK_HEADER

◆ SHELL_LINK_INFO_CNR_LINKA

◆ SHELL_LINK_INFO_CNR_LINKW

◆ SHELL_LINK_INFO_VOLUME_IDA

◆ SHELL_LINK_INFO_VOLUME_IDW

◆ SHELL_LINK_INFOA

◆ SHELL_LINK_INFOW

Function Documentation

◆ Activate_RunDLL()

BOOL WINAPI Activate_RunDLL ( _In_ HWND  hwnd,
_In_ HINSTANCE  hinst,
_In_ LPCWSTR  cmdline,
_In_ INT  cmdshow 
)

Definition at line 1094 of file utils.cpp.

1099{
1100 DWORD dwProcessID;
1101
1105 UNREFERENCED_PARAMETER(cmdshow);
1106
1107 TRACE("(%p, %p, %s, %d)\n", hwnd, hinst, debugstr_w(cmdline), cmdline);
1108
1110 return AllowSetForegroundWindow(dwProcessID);
1111}
unsigned long DWORD
Definition: ntddk_ex.h:95
#define debugstr_w
Definition: kernel32.h:32
static HINSTANCE hinst
Definition: edit.c:551
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define TRACE(s)
Definition: solgame.cpp:4
TCHAR * cmdline
Definition: stretchblt.cpp:32
HWND WINAPI GetShellWindow(VOID)
Definition: desktop.c:651
BOOL WINAPI AllowSetForegroundWindow(DWORD dwProcessId)
Definition: window.c:49
DWORD WINAPI GetWindowThreadProcessId(HWND hWnd, PDWORD lpdwProcessId)
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023

◆ ArrangeWindows()

WORD WINAPI ArrangeWindows ( HWND  hwndParent,
DWORD  dwReserved,
LPCRECT  lpRect,
WORD  cKids,
CONST HWND lpKids 
)

◆ C_ASSERT()

◆ CheckEscapesA()

VOID WINAPI CheckEscapesA ( LPSTR  string,
DWORD  len 
)

Definition at line 227 of file shellstring.c.

230{
231 LPWSTR wString;
232 TRACE("(%s %d)\n", debugstr_a(string), len);
233
234 if (!string || !string[0])
235 return;
236
237 wString = LocalAlloc(LPTR, len * sizeof(WCHAR));
238 if (!wString)
239 return;
240
241 SHAnsiToUnicode(string, wString, len);
242 CheckEscapesW(wString, len);
243 SHUnicodeToAnsi(wString, string, len);
244 LocalFree(wString);
245}
DWORD WINAPI SHAnsiToUnicode(LPCSTR lpSrcStr, LPWSTR lpDstStr, int iLen)
Definition: string.c:2667
INT WINAPI SHUnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR lpDstStr, INT iLen)
Definition: string.c:2791
GLenum GLsizei len
Definition: glext.h:6722
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1390
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1594
#define debugstr_a
Definition: kernel32.h:31
VOID WINAPI CheckEscapesW(LPWSTR string, DWORD len)
Definition: shellstring.c:252
#define LPTR
Definition: winbase.h:381
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ CheckEscapesW()

VOID WINAPI CheckEscapesW ( LPWSTR  string,
DWORD  len 
)

Definition at line 252 of file shellstring.c.

255{
256 DWORD size = lstrlenW(string);
257 LPWSTR s, d;
258
259 TRACE("(%s %d) stub\n", debugstr_w(string), len);
260
261 if (StrPBrkW(string, L" \",;^") && size + 2 <= len)
262 {
263 s = &string[size - 1];
264 d = &string[size + 2];
265 *d-- = 0;
266 *d-- = '"';
267 for (;d > string;)
268 *d-- = *s--;
269 *d = '"';
270 }
271}
#define lstrlenW
Definition: compat.h:750
LPWSTR WINAPI StrPBrkW(LPCWSTR lpszStr, LPCWSTR lpszMatch)
Definition: string.c:1284
GLdouble s
Definition: gl.h:2039
GLsizeiptr size
Definition: glext.h:5919
#define d
Definition: ke_i.h:81
char string[160]
Definition: util.h:11
#define L(x)
Definition: ntvdm.h:50

Referenced by CheckEscapesA().

◆ CopyStreamUI()

HRESULT WINAPI CopyStreamUI ( _In_ IStream pSrc,
_Out_ IStream pDst,
_Inout_opt_ IProgressDialog *  pProgress,
_In_opt_ DWORDLONG  dwlSize 
)

Definition at line 938 of file utils.cpp.

943{
944 HRESULT hr = E_FAIL;
945 DWORD cbBuff, cbRead, dwSizeToWrite;
946 DWORDLONG cbDone;
947 LPVOID pBuff;
948 CComHeapPtr<BYTE> pHeapPtr;
949 STATSTG Stat;
950 BYTE abBuff[1024];
951
952 TRACE("(%p, %p, %p, %I64u)\n", pSrc, pDst, pProgress, dwlSize);
953
954 if (dwlSize == 0) // Invalid size?
955 {
956 // Get the stream size
957 ZeroMemory(&Stat, sizeof(Stat));
958 if (FAILED(pSrc->Stat(&Stat, STATFLAG_NONAME)))
959 pProgress = NULL; // No size info. Disable progress
960 else
961 dwlSize = Stat.cbSize.QuadPart;
962 }
963
964 if (!pProgress) // Progress is disabled?
965 {
966 ULARGE_INTEGER uliSize;
967
968 if (dwlSize > 0)
969 uliSize.QuadPart = dwlSize;
970 else
971 uliSize.HighPart = uliSize.LowPart = INVALID_FILE_SIZE;
972
973 return pSrc->CopyTo(pDst, uliSize, NULL, NULL); // One punch
974 }
975
976 // Allocate the buffer if necessary
977 if (dwlSize > 0 && dwlSize <= sizeof(abBuff))
978 {
979 cbBuff = sizeof(abBuff);
980 pBuff = abBuff;
981 }
982 else
983 {
984#define COPY_STREAM_DEFAULT_BUFFER_SIZE 0x4000
986 if (pHeapPtr.AllocateBytes(cbBuff))
987 {
988 pBuff = pHeapPtr;
989 }
990 else // Low memory?
991 {
992 cbBuff = sizeof(abBuff);
993 pBuff = abBuff;
994 }
995#undef COPY_STREAM_DEFAULT_BUFFER_SIZE
996 }
997
998 // Start reading
1000 zero.QuadPart = 0;
1001 pSrc->Seek(zero, 0, NULL);
1002 pDst->Seek(zero, 0, NULL);
1003 cbDone = 0;
1004 pProgress->SetProgress64(cbDone, dwlSize);
1005
1006 // Repeat reading and writing until goal
1007 for (;;)
1008 {
1009 hr = pSrc->Read(pBuff, cbBuff, &cbRead);
1010 if (FAILED(hr))
1011 break;
1012
1013 // Calculate the size to write
1014 if (dwlSize > 0)
1015 dwSizeToWrite = (DWORD)min((DWORDLONG)(dwlSize - cbDone), (DWORDLONG)cbRead);
1016 else
1017 dwSizeToWrite = cbRead;
1018
1019 if (dwSizeToWrite == 0) // No need to write?
1020 {
1021 hr = S_OK;
1022 break;
1023 }
1024
1025 hr = pDst->Write(pBuff, dwSizeToWrite, NULL);
1026 if (hr != S_OK)
1027 break;
1028
1029 cbDone += dwSizeToWrite;
1030
1031 if (pProgress->HasUserCancelled()) // Cancelled?
1032 {
1034 break;
1035 }
1036 pProgress->SetProgress64(cbDone, dwlSize);
1037
1038 if (dwlSize > 0 && cbDone >= dwlSize) // Reached the goal?
1039 {
1040 hr = S_OK;
1041 break;
1042 }
1043 }
1044
1045 return hr;
1046}
bool AllocateBytes(_In_ size_t nBytes)
Definition: atlalloc.h:127
#define E_FAIL
Definition: ddrawi.h:102
#define NULL
Definition: types.h:112
#define COPY_STREAM_DEFAULT_BUFFER_SIZE
#define S_OK
Definition: intsafe.h:52
unsigned long long DWORDLONG
Definition: intsafe.h:93
#define FAILED(hr)
Definition: intsafe.h:51
#define Stat
Definition: syshdrs.h:78
#define min(a, b)
Definition: monoChain.cc:55
#define DWORD
Definition: nt_native.h:44
int zero
Definition: sehframes.cpp:29
HRESULT hr
Definition: shlfolder.c:183
$ULONG LowPart
Definition: ntbasedef.h:569
ULONGLONG QuadPart
Definition: ms-dtyp.idl:185
$ULONG HighPart
Definition: ntbasedef.h:570
#define ZeroMemory
Definition: winbase.h:1712
#define INVALID_FILE_SIZE
Definition: winbase.h:548
#define ERROR_CANCELLED
Definition: winerror.h:726
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
unsigned char BYTE
Definition: xxhash.c:193

◆ DAD_DragEnter()

BOOL WINAPI DAD_DragEnter ( HWND  hWnd)

Definition at line 1740 of file shellord.c.

1741{
1742 FIXME("hwnd = %p\n",hwnd);
1743 return FALSE;
1744}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define FALSE
Definition: types.h:117

◆ DAD_SetDragImageFromListView()

BOOL WINAPI DAD_SetDragImageFromListView ( HWND  hWnd,
POINT  pt 
)

Definition at line 744 of file stubs.cpp.

745{
746 FIXME("DAD_SetDragImageFromListView() stub\n");
747 return FALSE;
748}

◆ DAD_ShowDragImage()

BOOL WINAPI DAD_ShowDragImage ( BOOL  bShow)

Definition at line 1791 of file shellord.c.

1792{
1793 FIXME("0x%08x stub\n",bShow);
1794 return FALSE;
1795}

◆ ExitWindowsDialog()

void WINAPI ExitWindowsDialog ( HWND  hWndOwner)

Definition at line 1608 of file dialogs.cpp.

1609{
1610 typedef DWORD (WINAPI *ShellShFunc)(HWND hParent, WCHAR *Username, BOOL bHideLogoff);
1611 HINSTANCE msginaDll = LoadLibraryW(L"msgina.dll");
1612
1613 TRACE("(%p)\n", hWndOwner);
1614
1615 CComPtr<IUnknown> fadeHandler;
1616 HWND parent;
1617 if (!CallShellDimScreen(&fadeHandler, &parent))
1618 parent = hWndOwner;
1619
1620 /* If the DLL cannot be found for any reason, then it simply uses a
1621 dialog box to ask if the user wants to shut down the computer. */
1622 if (!msginaDll)
1623 {
1624 TRACE("Unable to load msgina.dll.\n");
1626 return;
1627 }
1628
1629 ShellShFunc pShellShutdownDialog = (ShellShFunc)GetProcAddress(msginaDll, "ShellShutdownDialog");
1630
1631 if (pShellShutdownDialog)
1632 {
1633 /* Actually call the function */
1634 DWORD returnValue = pShellShutdownDialog(parent, NULL, FALSE);
1635
1636 switch (returnValue)
1637 {
1638 case 0x01: /* Log off user */
1639 {
1641 break;
1642 }
1643 case 0x02: /* Shut down */
1644 {
1645 EnablePrivilege(L"SeShutdownPrivilege", TRUE);
1647 EnablePrivilege(L"SeShutdownPrivilege", FALSE);
1648 break;
1649 }
1650 case 0x03: /* Install Updates/Shutdown (?) */
1651 {
1652 break;
1653 }
1654 case 0x04: /* Reboot */
1655 {
1656 EnablePrivilege(L"SeShutdownPrivilege", TRUE);
1658 EnablePrivilege(L"SeShutdownPrivilege", FALSE);
1659 break;
1660 }
1661 case 0x10: /* Sleep */
1662 {
1663 if (IsPwrSuspendAllowed())
1664 {
1665 EnablePrivilege(L"SeShutdownPrivilege", TRUE);
1667 EnablePrivilege(L"SeShutdownPrivilege", FALSE);
1668 }
1669 break;
1670 }
1671 case 0x40: /* Hibernate */
1672 {
1674 {
1675 EnablePrivilege(L"SeShutdownPrivilege", TRUE);
1677 EnablePrivilege(L"SeShutdownPrivilege", FALSE);
1678 }
1679 break;
1680 }
1681 /* If the option is any other value */
1682 default:
1683 break;
1684 }
1685 }
1686 else
1687 {
1688 /* If the function cannot be found, then revert to using the backup solution */
1689 TRACE("Unable to find the 'ShellShutdownDialog' function");
1691 }
1692
1693 FreeLibrary(msginaDll);
1694}
#define TRUE
Definition: types.h:120
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, BOOL bEnablePrivilege)
Definition: dialogs.cpp:1052
VOID ExitWindowsDialog_backup(HWND hWndOwner)
Definition: dialogs.cpp:1585
BOOL CallShellDimScreen(IUnknown **pUnknown, HWND *hWindow)
Definition: dialogs.cpp:1032
r parent
Definition: btrfs.c:3010
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOLEAN WINAPI IsPwrHibernateAllowed(VOID)
Definition: powrprof.c:450
BOOLEAN WINAPI SetSuspendState(BOOLEAN Hibernate, BOOLEAN ForceCritical, BOOLEAN DisableWakeEvent)
Definition: powrprof.c:681
BOOLEAN WINAPI IsPwrSuspendAllowed(VOID)
Definition: powrprof.c:488
#define WINAPI
Definition: msvc.h:6
#define EWX_SHUTDOWN
Definition: winuser.h:639
#define EWX_LOGOFF
Definition: winuser.h:636
#define EWX_REBOOT
Definition: winuser.h:638
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)

Referenced by CTrayWindow::DoExitWindows(), ShowExitWindowsDialog(), and CShellDispatch::ShutdownWindows().

◆ ExtractIconResInfoA()

WORD WINAPI ExtractIconResInfoA ( _In_ HANDLE  hHandle,
_In_ LPCSTR  lpFileName,
_In_ WORD  wIndex,
_Out_ LPWORD  lpSize,
_Out_ LPHANDLE  lpIcon 
)

Definition at line 461 of file utils.cpp.

467{
468 TRACE("(%p, %s, %u, %p, %p)\n", hHandle, debugstr_a(lpFileName), wIndex, lpSize, lpIcon);
469
470 if (!lpFileName)
471 return 0;
472
473 CStringW strFileNameW(lpFileName);
474 return ExtractIconResInfoW(hHandle, strFileNameW, wIndex, lpSize, lpIcon);
475}
EXTERN_C WORD WINAPI ExtractIconResInfoW(_In_ HANDLE hHandle, _In_ LPCWSTR lpFileName, _In_ WORD wIndex, _Out_ LPWORD lpSize, _Out_ LPHANDLE lpIcon)
Definition: stubs.cpp:811
_In_ LPCSTR lpFileName
Definition: winbase.h:3071

◆ ExtractIconResInfoW()

WORD WINAPI ExtractIconResInfoW ( _In_ HANDLE  hHandle,
_In_ LPCWSTR  lpFileName,
_In_ WORD  wIndex,
_Out_ LPWORD  lpSize,
_Out_ LPHANDLE  lpIcon 
)

Definition at line 811 of file stubs.cpp.

817{
818 FIXME("ExtractIconResInfoW() stub\n");
819 return 0;
820}

Referenced by ExtractIconResInfoA().

◆ FileIconInit()

BOOL WINAPI FileIconInit ( BOOL  bFullInit)

Definition at line 1883 of file shellord.c.

1884{
1885 return SIC_Initialize();
1886}
BOOL SIC_Initialize(void)
Definition: iconcache.cpp:481

Referenced by DisplayImageList(), and StartWithDesktop().

◆ FileMenu_AbortInitMenu()

void WINAPI FileMenu_AbortInitMenu ( void  )

Definition at line 802 of file shlmenu.c.

803{ TRACE("\n");
805}
static BOOL bAbortInit
Definition: shlmenu.c:68

◆ FileMenu_AddFilesForPidl()

int WINAPI FileMenu_AddFilesForPidl ( HMENU  hMenu,
UINT  uReserved,
UINT  uID,
LPCITEMIDLIST  pidl,
UINT  uFlags,
UINT  uEnumFlags,
LPFNFMCALLBACK  lpfnCallback 
)

Definition at line 504 of file shlmenu.c.

512{
513 TRACE("%p 0x%08x 0x%08x %p 0x%08x 0x%08x %p\n",
514 hmenu, uReserved, uID, pidl, uFlags, uEnumFlags, lpfnCallback);
515
516 return FileMenu_InsertUsingPidl ( hmenu, uID, pidl, uFlags, uEnumFlags, lpfnCallback);
517
518}
UINT uFlags
Definition: api.c:59
int WINAPI FileMenu_InsertUsingPidl(HMENU hmenu, UINT uID, LPCITEMIDLIST pidl, UINT uFlags, UINT uEnumFlags, LPFNFMCALLBACK lpfnCallback)
Definition: shlmenu.c:414
static HMENU hmenu
Definition: win.c:66

◆ FileMenu_AppendFilesForPidl()

int WINAPI FileMenu_AppendFilesForPidl ( HMENU  hMenu,
LPCITEMIDLIST  pidl,
BOOL  bAddSeparator 
)

Definition at line 478 of file shlmenu.c.

482{
483 LPFMINFO menudata;
484
485 menudata = FM_GetMenuInfo(hmenu);
486
487 menudata->bInitialized = FALSE;
488
489 FM_InitMenuPopup(hmenu, pidl);
490
491 if (bAddSeparator)
493
494 TRACE("%p %p 0x%08x\n",hmenu, pidl,bAddSeparator);
495
496 return 0;
497}
static int FM_InitMenuPopup(HMENU hmenu, LPCITEMIDLIST pAlternatePidl)
Definition: shlmenu.c:129
static LPFMINFO FM_GetMenuInfo(HMENU hmenu)
Definition: shlmenu.c:74
static BOOL FileMenu_AppendItemW(HMENU hMenu, LPCWSTR lpText, UINT uID, int icon, HMENU hMenuPopup, int nItemHeight)
Definition: shlmenu.c:304
#define FM_SEPARATOR
Definition: shlmenu.c:39
Definition: shlmenu.c:45
BOOL bInitialized
Definition: shlmenu.c:46
#define FM_DEFAULT_HEIGHT
Definition: undocshell.h:286

◆ FileMenu_AppendItem()

BOOL WINAPI FileMenu_AppendItem ( HMENU  hMenu,
LPCSTR  lpszText,
UINT  uID,
int  iIcon,
HMENU  hMenuPopup,
int  nItemHeight 
)

◆ FileMenu_Create()

HMENU WINAPI FileMenu_Create ( COLORREF  crBorderColor,
int  nBorderWidth,
HBITMAP  hBorderBmp,
int  nSelHeight,
UINT  uFlags 
)

Definition at line 250 of file shlmenu.c.

256{
258 LPFMINFO menudata;
259
260 HMENU hMenu = CreatePopupMenu();
261
262 TRACE("0x%08x 0x%08x %p 0x%08x 0x%08x hMenu=%p\n",
263 crBorderColor, nBorderWidth, hBorderBmp, nSelHeight, uFlags, hMenu);
264
265 menudata = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(FMINFO));
266 menudata->crBorderColor = crBorderColor;
267 menudata->nBorderWidth = nBorderWidth;
268 menudata->hBorderBmp = hBorderBmp;
269
270 MenuInfo.cbSize = sizeof(MENUINFO);
271 MenuInfo.fMask = MIM_MENUDATA;
272 MenuInfo.dwMenuData = (ULONG_PTR) menudata;
273 SetMenuInfo (hMenu, &MenuInfo);
274
275 return hMenu;
276}
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
#define ULONG_PTR
Definition: config.h:101
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
int nBorderWidth
Definition: shlmenu.c:50
COLORREF crBorderColor
Definition: shlmenu.c:49
HBITMAP hBorderBmp
Definition: shlmenu.c:51
menu info structure
Definition: window.h:276
HMENU WINAPI CreatePopupMenu(void)
Definition: menu.c:838
BOOL WINAPI SetMenuInfo(_In_ HMENU, _In_ LPCMENUINFO)
struct tagMENUINFO MENUINFO

◆ FileMenu_DeleteAllItems()

BOOL WINAPI FileMenu_DeleteAllItems ( HMENU  hMenu)

Definition at line 669 of file shlmenu.c.

670{
671 MENUITEMINFOW mii;
672 LPFMINFO menudata;
673
674 int i;
675
676 TRACE("%p\n", hmenu);
677
678 ZeroMemory ( &mii, sizeof(MENUITEMINFOW));
679 mii.cbSize = sizeof(MENUITEMINFOW);
681
682 for (i = 0; i < GetMenuItemCount( hmenu ); i++)
683 { GetMenuItemInfoW(hmenu, i, TRUE, &mii );
684
686
687 if (mii.hSubMenu)
689 }
690
691 while (DeleteMenu (hmenu, 0, MF_BYPOSITION)){};
692
693 menudata = FM_GetMenuInfo(hmenu);
694
695 menudata->bInitialized = FALSE;
696
697 return TRUE;
698}
void WINAPI SHFree(LPVOID pv)
Definition: shellole.c:326
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
void WINAPI FileMenu_Destroy(HMENU hmenu)
Definition: shlmenu.c:284
ULONG_PTR dwItemData
Definition: winuser.h:3268
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
#define MIIM_SUBMENU
Definition: winuser.h:723
#define MF_BYPOSITION
Definition: winuser.h:203
BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW)
#define MIIM_DATA
Definition: winuser.h:726
struct tagMENUITEMINFOW MENUITEMINFOW

Referenced by FileMenu_Destroy(), and FileMenu_ReplaceUsingPidl().

◆ FileMenu_DeleteItemByCmd()

BOOL WINAPI FileMenu_DeleteItemByCmd ( HMENU  hMenu,
UINT  uID 
)

Definition at line 704 of file shlmenu.c.

705{
706 MENUITEMINFOW mii;
707
708 TRACE("%p 0x%08x\n", hMenu, uID);
709
710 ZeroMemory ( &mii, sizeof(MENUITEMINFOW));
711 mii.cbSize = sizeof(MENUITEMINFOW);
712 mii.fMask = MIIM_SUBMENU;
713
714 GetMenuItemInfoW(hMenu, uID, FALSE, &mii );
715 if ( mii.hSubMenu )
716 {
717 /* FIXME: Do what? */
718 }
719
720 DeleteMenu(hMenu, MF_BYCOMMAND, uID);
721 return TRUE;
722}
#define MF_BYCOMMAND
Definition: winuser.h:202

◆ FileMenu_DeleteItemByIndex()

BOOL WINAPI FileMenu_DeleteItemByIndex ( HMENU  hMenu,
UINT  uPos 
)

Definition at line 727 of file shlmenu.c.

728{
729 MENUITEMINFOW mii;
730
731 TRACE("%p 0x%08x\n", hMenu, uPos);
732
733 ZeroMemory ( &mii, sizeof(MENUITEMINFOW));
734 mii.cbSize = sizeof(MENUITEMINFOW);
735 mii.fMask = MIIM_SUBMENU;
736
737 GetMenuItemInfoW(hMenu, uPos, TRUE, &mii );
738 if ( mii.hSubMenu )
739 {
740 /* FIXME: Do what? */
741 }
742
743 DeleteMenu(hMenu, MF_BYPOSITION, uPos);
744 return TRUE;
745}

◆ FileMenu_DeleteMenuItemByFirstID()

BOOL WINAPI FileMenu_DeleteMenuItemByFirstID ( HMENU  hMenu,
UINT  uID 
)

◆ FileMenu_DeleteSeparator()

BOOL WINAPI FileMenu_DeleteSeparator ( HMENU  hMenu)

Definition at line 761 of file shlmenu.c.

762{
763 TRACE("%p\n", hMenu);
764 return FALSE;
765}

◆ FileMenu_Destroy()

void WINAPI FileMenu_Destroy ( HMENU  hMenu)

Definition at line 284 of file shlmenu.c.

285{
286 LPFMINFO menudata;
287
288 TRACE("%p\n", hmenu);
289
291
292 menudata = FM_GetMenuInfo(hmenu);
293
294 SHFree( menudata->pidl);
295 HeapFree(GetProcessHeap(), 0, menudata);
296
298}
#define HeapFree(x, y, z)
Definition: compat.h:735
BOOL WINAPI FileMenu_DeleteAllItems(HMENU hmenu)
Definition: shlmenu.c:669
LPITEMIDLIST pidl
Definition: shlmenu.c:54
BOOL WINAPI DestroyMenu(_In_ HMENU)

Referenced by FileMenu_DeleteAllItems().

◆ FileMenu_DrawItem()

LRESULT WINAPI FileMenu_DrawItem ( HWND  hWnd,
LPDRAWITEMSTRUCT  lpdis 
)

Definition at line 586 of file shlmenu.c.

589{
590 LPFMITEM pMyItem = (LPFMITEM)(lpdis->itemData);
591 COLORREF clrPrevText, clrPrevBkgnd;
592 int xi,yi,xt,yt;
593 HIMAGELIST hImageList;
594 RECT TextRect;
595 LPFMINFO menuinfo;
596
597 TRACE("%p %p %s\n", hWnd, lpdis, debugstr_w(pMyItem->szItemText));
598
599 if (lpdis->itemState & ODS_SELECTED)
600 {
601 clrPrevText = SetTextColor(lpdis->hDC, GetSysColor (COLOR_HIGHLIGHTTEXT));
602 clrPrevBkgnd = SetBkColor(lpdis->hDC, GetSysColor (COLOR_HIGHLIGHT));
603 }
604 else
605 {
606 clrPrevText = SetTextColor(lpdis->hDC, GetSysColor (COLOR_MENUTEXT));
607 clrPrevBkgnd = SetBkColor(lpdis->hDC, GetSysColor (COLOR_MENU));
608 }
609
610 TextRect = lpdis->rcItem;
611
612 /* add the menubitmap */
613 menuinfo = FM_GetMenuInfo(pMyItem->hMenu);
614 if (menuinfo->nBorderWidth)
615 TextRect.left += menuinfo->nBorderWidth;
616
617 TextRect.left += FM_LEFTBORDER;
618 xi = TextRect.left + FM_SPACE1;
619 yi = TextRect.top + FM_Y_SPACE/2;
620 TextRect.bottom -= FM_Y_SPACE/2;
621
622 xt = xi + FM_ICON_SIZE + FM_SPACE2;
623 yt = yi;
624
625 ExtTextOutW (lpdis->hDC, xt , yt, ETO_OPAQUE, &TextRect, pMyItem->szItemText, pMyItem->cchItemText, NULL);
626
627 Shell_GetImageLists(0, &hImageList);
628 ImageList_Draw(hImageList, pMyItem->iIconIndex, lpdis->hDC, xi, yi, ILD_NORMAL);
629
630 TRACE("-- %s\n", wine_dbgstr_rect(&TextRect));
631
632 SetTextColor(lpdis->hDC, clrPrevText);
633 SetBkColor(lpdis->hDC, clrPrevBkgnd);
634
635 return TRUE;
636}
static const char * wine_dbgstr_rect(const RECT *prc)
Definition: atltest.h:160
HWND hWnd
Definition: settings.c:17
BOOL WINAPI ImageList_Draw(HIMAGELIST himl, INT i, HDC hdc, INT x, INT y, UINT fStyle)
Definition: imagelist.c:1228
BOOL WINAPI Shell_GetImageLists(HIMAGELIST *lpBigList, HIMAGELIST *lpSmallList)
Definition: iconcache.cpp:683
#define ILD_NORMAL
Definition: commctrl.h:417
#define FM_ICON_SIZE
Definition: shlmenu.c:549
#define FM_LEFTBORDER
Definition: shlmenu.c:553
struct FMITEM * LPFMITEM
#define FM_Y_SPACE
Definition: shlmenu.c:550
#define FM_SPACE1
Definition: shlmenu.c:551
#define FM_SPACE2
Definition: shlmenu.c:552
Definition: shlmenu.c:62
int cchItemText
Definition: shlmenu.c:62
int iIconIndex
Definition: shlmenu.c:63
HMENU hMenu
Definition: shlmenu.c:64
WCHAR szItemText[1]
Definition: shlmenu.c:65
ULONG_PTR itemData
Definition: winuser.h:3093
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
DWORD COLORREF
Definition: windef.h:300
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
Definition: dc.c:999
BOOL WINAPI ExtTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_ UINT options, _In_opt_ const RECT *lprect, _In_reads_opt_(c) LPCWSTR lpString, _In_ UINT c, _In_reads_opt_(c) const INT *lpDx)
#define ETO_OPAQUE
Definition: wingdi.h:647
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:918
DWORD WINAPI GetSysColor(_In_ int)
#define ODS_SELECTED
Definition: winuser.h:2545
#define COLOR_MENU
Definition: winuser.h:917
#define COLOR_HIGHLIGHT
Definition: winuser.h:926
#define COLOR_HIGHLIGHTTEXT
Definition: winuser.h:927
#define COLOR_MENUTEXT
Definition: winuser.h:920

◆ FileMenu_EnableItemByCmd()

BOOL WINAPI FileMenu_EnableItemByCmd ( HMENU  hMenu,
UINT  uID,
BOOL  bEnable 
)

Definition at line 770 of file shlmenu.c.

774{
775 TRACE("%p 0x%08x 0x%08x\n", hMenu, uID,bEnable);
776 return FALSE;
777}
_In_ BOOL bEnable
Definition: winddi.h:3426

◆ FileMenu_FindSubMenuByPidl()

HMENU WINAPI FileMenu_FindSubMenuByPidl ( HMENU  hMenu,
LPCITEMIDLIST  pidl 
)

Definition at line 467 of file shlmenu.c.

470{
471 FIXME("%p %p\n",hMenu, pidl);
472 return 0;
473}

◆ FileMenu_GetItemExtent()

DWORD WINAPI FileMenu_GetItemExtent ( HMENU  hMenu,
UINT  uPos 
)

Definition at line 785 of file shlmenu.c.

786{ RECT rect;
787
788 FIXME("%p 0x%08x\n", hMenu, uPos);
789
790 if (GetMenuItemRect(0, hMenu, uPos, &rect))
791 {
792 FIXME("%s\n", wine_dbgstr_rect(&rect));
793 return ((rect.right-rect.left)<<16) + (rect.top-rect.bottom);
794 }
795 return 0x00100010; /*FIXME*/
796}
& rect
Definition: startmenu.cpp:1413
BOOL WINAPI GetMenuItemRect(_In_opt_ HWND, _In_ HMENU, _In_ UINT, _Out_ LPRECT)

◆ FileMenu_GetLastSelectedItemPidls()

BOOL WINAPI FileMenu_GetLastSelectedItemPidls ( UINT  uReserved,
LPCITEMIDLIST ppidlFolder,
LPCITEMIDLIST ppidlItem 
)

Definition at line 540 of file shlmenu.c.

544{
545 FIXME("0x%08x %p %p\n",uReserved, ppidlFolder, ppidlItem);
546 return FALSE;
547}

◆ FileMenu_HandleMenuChar()

LRESULT WINAPI FileMenu_HandleMenuChar ( HMENU  hMenu,
WPARAM  wParam 
)

Definition at line 655 of file shlmenu.c.

658{
659 FIXME("%p 0x%08lx\n",hMenu,wParam);
660 return 0;
661}
WPARAM wParam
Definition: combotst.c:138

◆ FileMenu_InitMenuPopup()

BOOL WINAPI FileMenu_InitMenuPopup ( HMENU  hMenu)

Definition at line 646 of file shlmenu.c.

647{
649 return TRUE;
650}

◆ FileMenu_InsertUsingPidl()

int WINAPI FileMenu_InsertUsingPidl ( HMENU  hMenu,
UINT  uID,
LPCITEMIDLIST  pidl,
UINT  uFlags,
UINT  uEnumFlags,
LPFNFMCALLBACK  lpfnCallback 
)

Definition at line 414 of file shlmenu.c.

421{
422 TRACE("%p 0x%08x %p 0x%08x 0x%08x %p\n",
423 hmenu, uID, pidl, uFlags, uEnumFlags, lpfnCallback);
424
425 pdump (pidl);
426
428
429 FM_SetMenuParameter(hmenu, uID, pidl, uFlags, uEnumFlags, lpfnCallback);
430
431 return FM_InitMenuPopup(hmenu, NULL);
432}
void pdump(LPCITEMIDLIST pidl)
Definition: debughlp.cpp:311
static LPFMINFO FM_SetMenuParameter(HMENU hmenu, UINT uID, LPCITEMIDLIST pidl, UINT uFlags, UINT uEnumFlags, LPFNFMCALLBACK lpfnCallback)
Definition: shlmenu.c:100

Referenced by FileMenu_AddFilesForPidl().

◆ FileMenu_Invalidate()

void WINAPI FileMenu_Invalidate ( HMENU  hMenu)

Definition at line 459 of file shlmenu.c.

460{
461 FIXME("%p\n",hMenu);
462}

◆ FileMenu_MeasureItem()

LRESULT WINAPI FileMenu_MeasureItem ( HWND  hWnd,
LPMEASUREITEMSTRUCT  lpmis 
)

Definition at line 558 of file shlmenu.c.

561{
562 LPFMITEM pMyItem = (LPFMITEM)(lpmis->itemData);
563 HDC hdc = GetDC(hWnd);
564 SIZE size;
565 LPFMINFO menuinfo;
566
567 TRACE("%p %p %s\n", hWnd, lpmis, debugstr_w(pMyItem->szItemText));
568
569 GetTextExtentPoint32W(hdc, pMyItem->szItemText, pMyItem->cchItemText, &size);
570
572 lpmis->itemHeight = (size.cy > (FM_ICON_SIZE + FM_Y_SPACE)) ? size.cy : (FM_ICON_SIZE + FM_Y_SPACE);
573
574 /* add the menubitmap */
575 menuinfo = FM_GetMenuInfo(pMyItem->hMenu);
576 if (menuinfo->nBorderWidth)
577 lpmis->itemWidth += menuinfo->nBorderWidth;
578
579 TRACE("-- 0x%04x 0x%04x\n", lpmis->itemWidth, lpmis->itemHeight);
580 ReleaseDC (hWnd, hdc);
581 return 0;
582}
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
#define FM_RIGHTBORDER
Definition: shlmenu.c:554
ULONG_PTR itemData
Definition: winuser.h:3646
BOOL WINAPI GetTextExtentPoint32W(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE psizl)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

◆ FileMenu_ReplaceUsingPidl()

int WINAPI FileMenu_ReplaceUsingPidl ( HMENU  hMenu,
UINT  uID,
LPCITEMIDLIST  pidl,
UINT  uEnumFlags,
LPFNFMCALLBACK  lpfnCallback 
)

Definition at line 439 of file shlmenu.c.

445{
446 TRACE("%p 0x%08x %p 0x%08x %p\n",
447 hmenu, uID, pidl, uEnumFlags, lpfnCallback);
448
450
451 FM_SetMenuParameter(hmenu, uID, pidl, 0, uEnumFlags, lpfnCallback);
452
453 return FM_InitMenuPopup(hmenu, NULL);
454}

◆ FileMenu_TrackPopupMenuEx()

BOOL WINAPI FileMenu_TrackPopupMenuEx ( HMENU  hMenu,
UINT  uFlags,
int  x,
int  y,
HWND  hWnd,
LPTPMPARAMS  lptpm 
)

Definition at line 524 of file shlmenu.c.

531{
532 TRACE("%p 0x%08x 0x%x 0x%x %p %p\n",
533 hMenu, uFlags, x, y, hWnd, lptpm);
534 return TrackPopupMenuEx(hMenu, uFlags, x, y, hWnd, lptpm);
535}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
BOOL WINAPI TrackPopupMenuEx(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _In_ HWND, _In_opt_ LPTPMPARAMS)

◆ GUIDFromStringA()

BOOL WINAPI GUIDFromStringA ( _In_ PCSTR  psz,
_Out_ LPGUID  pguid 
)

◆ GUIDFromStringW()

BOOL WINAPI GUIDFromStringW ( _In_ PCWSTR  psz,
_Out_ LPGUID  pguid 
)

◆ ILGetDisplayName()

BOOL WINAPI ILGetDisplayName ( LPCITEMIDLIST  pidl,
LPVOID  path 
)

Definition at line 183 of file pidl.c.

184{
185 TRACE_(shell)("%p %p\n", pidl, path);
186
187 if (SHELL_OsIsUnicode())
190}
void shell(int argc, const char *argv[])
Definition: cmds.c:1231
#define TRACE_(x)
Definition: compat.h:76
BOOL ILGetDisplayNameExW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPWSTR path, DWORD type)
Definition: pidl.c:100
static BOOL ILGetDisplayNameExA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPSTR path, DWORD type)
Definition: pidl.c:83
static __inline BOOL SHELL_OsIsUnicode(void)
Definition: shell32_main.h:140
#define ILGDN_FORPARSING
Definition: undocshell.h:71

Referenced by SHOpenFolderWindow().

◆ ILGetDisplayNameEx()

BOOL WINAPI ILGetDisplayNameEx ( LPSHELLFOLDER  psf,
LPCITEMIDLIST  pidl,
LPVOID  path,
DWORD  type 
)

Definition at line 171 of file pidl.c.

172{
173 TRACE_(shell)("%p %p %p %d\n", psf, pidl, path, type);
174
175 if (SHELL_OsIsUnicode())
176 return ILGetDisplayNameExW(psf, pidl, path, type);
177 return ILGetDisplayNameExA(psf, pidl, path, type);
178}
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545

Referenced by CBandSiteMenu::_AddISFBandToMenu(), CISFBand::GetBandInfo(), and CTravelEntry::GetToolTipText().

◆ ILGlobalClone()

LPITEMIDLIST WINAPI ILGlobalClone ( LPCITEMIDLIST  pidl)

Definition at line 469 of file pidl.c.

470{
471 DWORD len;
472 LPITEMIDLIST newpidl;
473
474 if (!pidl)
475 return NULL;
476
477 len = ILGetSize(pidl);
478 newpidl = Alloc(len);
479 if (newpidl)
480 memcpy(newpidl,pidl,len);
481
482 TRACE("pidl=%p newpidl=%p\n",pidl, newpidl);
483 pdump(pidl);
484
485 return newpidl;
486}
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
LPVOID WINAPI Alloc(INT)
#define ILGetSize
Definition: shellclasses.h:638
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41

◆ ILGlobalFree()

void WINAPI ILGlobalFree ( LPITEMIDLIST  pidl)

Definition at line 960 of file pidl.c.

961{
962 TRACE("%p\n", pidl);
963
964 Free(pidl);
965}
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION Free
Definition: exfuncs.h:815

◆ Int64ToString()

INT WINAPI Int64ToString ( _In_ LONGLONG  llValue,
_Out_writes_z_(cchOut) LPWSTR  pszOut,
_In_ UINT  cchOut,
_In_ BOOL  bUseFormat,
_In_opt_ const NUMBERFMTW pNumberFormat,
_In_ DWORD  dwNumberFlags 
)

◆ IsSuspendAllowed()

BOOL WINAPI IsSuspendAllowed ( VOID  )

Definition at line 636 of file utils.cpp.

637{
638 TRACE("()\n");
640}
BOOL IsShutdownAllowed(VOID)
Definition: utils.cpp:628

◆ LargeIntegerToString()

INT WINAPI LargeIntegerToString ( _In_ const LARGE_INTEGER pLargeInt,
_Out_writes_z_(cchOut) LPWSTR  pszOut,
_In_ UINT  cchOut,
_In_ BOOL  bUseFormat,
_In_opt_ const NUMBERFMTW pNumberFormat,
_In_ DWORD  dwNumberFlags 
)

◆ LogoffWindowsDialog()

int WINAPI LogoffWindowsDialog ( HWND  hWndOwner)

Definition at line 1545 of file dialogs.cpp.

1546{
1547 CComPtr<IUnknown> fadeHandler;
1548 HWND parent = NULL;
1549 DWORD LogoffDialogID = IDD_LOG_OFF;
1551
1552 if (!CallShellDimScreen(&fadeHandler, &parent))
1553 parent = hWndOwner;
1554
1555 Context.bFriendlyUI = IsFriendlyUIActive();
1556 if (Context.bFriendlyUI)
1557 {
1558 LogoffDialogID = IDD_LOG_OFF_FANCY;
1559 }
1560
1562 MAKEINTRESOURCEW(LogoffDialogID),
1563 parent,
1565 (LPARAM)&Context);
1566 return 0;
1567}
#define shell32_hInstance
static BOOL IsFriendlyUIActive(VOID)
Definition: dialogs.cpp:1334
INT_PTR CALLBACK LogOffDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: dialogs.cpp:1445
#define IDD_LOG_OFF
Definition: shresdef.h:547
#define IDD_LOG_OFF_FANCY
Definition: shresdef.h:553
LONG_PTR LPARAM
Definition: windef.h:208
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)

Referenced by CTrayWindow::HandleCommand(), and StartMenuHandler::ShowLogoffDialog().

◆ PathAddBackslashAW()

LPVOID WINAPI PathAddBackslashAW ( LPVOID  path)

◆ PathAppendAW()

BOOL WINAPI PathAppendAW ( LPVOID  lpszPath1,
LPCVOID  lpszPath2 
)

Definition at line 407 of file shellpath.c.

410{
411 if (SHELL_OsIsUnicode())
412 return PathAppendW(lpszPath1, lpszPath2);
413 return PathAppendA(lpszPath1, lpszPath2);
414}
#define PathAppendA
Definition: pathcch.h:308
#define PathAppendW
Definition: pathcch.h:309

◆ PathBuildRootAW()

LPVOID WINAPI PathBuildRootAW ( LPVOID  lpszPath,
int  drive 
)

◆ PathCombineAW()

LPVOID WINAPI PathCombineAW ( LPVOID  szDest,
LPCVOID  lpszDir,
LPCVOID  lpszFile 
)

◆ PathFileExistsAW()

BOOL WINAPI PathFileExistsAW ( LPCVOID  lpszPath)

Definition at line 567 of file shellpath.c.

568{
569 if (SHELL_OsIsUnicode())
570 return PathFileExistsW (lpszPath);
571 return PathFileExistsA (lpszPath);
572}
BOOL WINAPI PathFileExistsA(LPCSTR lpszPath)
Definition: path.c:1755
BOOL WINAPI PathFileExistsW(LPCWSTR lpszPath)
Definition: path.c:1777

◆ PathFindExtensionAW()

LPVOID WINAPI PathFindExtensionAW ( LPCVOID  path)

◆ PathFindFileNameAW()

LPVOID WINAPI PathFindFileNameAW ( LPCVOID  path)

◆ PathFindOnPathAW()

BOOL WINAPI PathFindOnPathAW ( LPVOID  sFile,
LPCVOID sOtherDirs 
)

◆ PathGetArgsAW()

LPVOID WINAPI PathGetArgsAW ( LPVOID  lpszPath)

◆ PathGetExtensionAW()

LPVOID WINAPI PathGetExtensionAW ( LPCVOID  lpszPath,
DWORD  void1,
DWORD  void2 
)

◆ PathIsDirectoryAW()

BOOL WINAPI PathIsDirectoryAW ( LPCVOID  lpszPath)

◆ PathIsEqualOrSubFolder()

BOOL WINAPI PathIsEqualOrSubFolder ( _In_ LPCWSTR  pszFile1OrCSIDL,
_In_ LPCWSTR  pszFile2 
)

Definition at line 1229 of file utils.cpp.

1232{
1233 CStringW strCommon, strPath1;
1234
1235 TRACE("(%s %s)\n", debugstr_w(pszPath1OrCSIDL), debugstr_w(pszPath2));
1236
1237 if (IS_INTRESOURCE(pszPath1OrCSIDL))
1238 {
1240 NULL, strPath1, LOWORD(pszPath1OrCSIDL) | CSIDL_FLAG_DONT_VERIFY, FALSE);
1241 }
1242 else
1243 {
1244 strPath1 = pszPath1OrCSIDL;
1245 }
1246
1248
1249 if (!DynamicPathCommonPrefixW(strPath1, pszPath2, strCommon))
1250 return FALSE;
1251
1252 return strPath1.CompareNoCase(strCommon) == 0;
1253}
int CompareNoCase(_In_z_ PCXSTR psz) const
Definition: cstringt.h:743
static VOID DynamicPathRemoveBackslashW(_Out_ CStringW &strPath)
Definition: utils.cpp:1216
static INT DynamicPathCommonPrefixW(_In_ LPCWSTR lpszPath1, _In_ LPCWSTR lpszPath2, _Out_ CStringW &strPath)
Definition: utils.cpp:1144
static HRESULT DynamicSHGetSpecialFolderPathW(_In_ HWND hwndOwner, _Out_ CStringW &strPath, _In_ INT nCSIDL, _In_ BOOL bCreate)
Definition: utils.cpp:1193
#define LOWORD(l)
Definition: pedump.c:82
#define CSIDL_FLAG_DONT_VERIFY
Definition: shlobj.h:2233
#define IS_INTRESOURCE(i)
Definition: winuser.h:580

Referenced by PathIsTemporaryW(), and START_TEST().

◆ PathIsExeAW()

BOOL WINAPI PathIsExeAW ( LPCVOID  lpszPath)

Definition at line 557 of file shellpath.c.

558{
559 if (SHELL_OsIsUnicode())
560 return PathIsExeW (path);
561 return PathIsExeA(path);
562}
static BOOL PathIsExeA(LPCSTR lpszPath)
Definition: shellpath.c:521
BOOL PathIsExeW(LPCWSTR lpszPath)
Definition: shellpath.c:539

◆ PathIsRelativeAW()

BOOL WINAPI PathIsRelativeAW ( LPCVOID  lpszPath)

◆ PathIsRootAW()

BOOL WINAPI PathIsRootAW ( LPCVOID  x)

Definition at line 511 of file shellpath.c.

512{
513 if (SHELL_OsIsUnicode())
514 return PathIsRootW(lpszPath);
515 return PathIsRootA(lpszPath);
516}
BOOL WINAPI PathIsRootW(LPCWSTR lpszPath)
Definition: path.c:1642
BOOL WINAPI PathIsRootA(LPCSTR lpszPath)
Definition: path.c:1602

◆ PathIsSameRootAW()

BOOL WINAPI PathIsSameRootAW ( LPCVOID  lpszPath1,
LPCVOID  lpszPath2 
)

◆ PathIsTemporaryA()

BOOL WINAPI PathIsTemporaryA ( _In_ LPCSTR  Str)

◆ PathIsTemporaryW()

BOOL WINAPI PathIsTemporaryW ( _In_ LPCWSTR  Str)

◆ PathIsUNCAW()

BOOL WINAPI PathIsUNCAW ( LPCVOID  lpszPath)

◆ PathMakeUniqueNameAW()

BOOL WINAPI PathMakeUniqueNameAW ( LPVOID  lpszBuffer,
DWORD  dwBuffSize,
LPCVOID  lpszShortName,
LPCVOID  lpszLongName,
LPCVOID  lpszPathName 
)

Definition at line 684 of file shellpath.c.

690{
691 if (SHELL_OsIsUnicode())
692 return PathMakeUniqueNameW(lpszBuffer,dwBuffSize, lpszShortName,lpszLongName,lpszPathName);
693 return PathMakeUniqueNameA(lpszBuffer,dwBuffSize, lpszShortName,lpszLongName,lpszPathName);
694}
static BOOL PathMakeUniqueNameW(LPWSTR lpszBuffer, DWORD dwBuffSize, LPCWSTR lpszShortName, LPCWSTR lpszLongName, LPCWSTR lpszPathName)
Definition: shellpath.c:668
static BOOL PathMakeUniqueNameA(LPSTR lpszBuffer, DWORD dwBuffSize, LPCSTR lpszShortName, LPCSTR lpszLongName, LPCSTR lpszPathName)
Definition: shellpath.c:652

◆ PathMatchSpecAW()

BOOL WINAPI PathMatchSpecAW ( LPVOID  lpszPath,
LPVOID  lpszSpec 
)

◆ PathParseIconLocationAW()

int WINAPI PathParseIconLocationAW ( LPVOID  lpszPath)

◆ PathProcessCommandAW()

HRESULT WINAPI PathProcessCommandAW ( LPCVOID  lpszPath,
LPVOID  lpszBuff,
DWORD  dwBuffSize,
DWORD  dwFlags 
)

Definition at line 1003 of file shellpath.c.

1008{
1009 if (SHELL_OsIsUnicode())
1010 return PathProcessCommandW(lpszPath, lpszBuff, dwBuffSize, dwFlags);
1011 return PathProcessCommandA(lpszPath, lpszBuff, dwBuffSize, dwFlags);
1012}
static LONG PathProcessCommandW(LPCWSTR lpszPath, LPWSTR lpszBuff, DWORD dwBuffSize, DWORD dwFlags)
Definition: shellpath.c:987
static LONG PathProcessCommandA(LPCSTR lpszPath, LPSTR lpszBuff, DWORD dwBuffSize, DWORD dwFlags)
Definition: shellpath.c:971
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176

◆ PathQualifyA()

VOID WINAPI PathQualifyA ( LPSTR  pszPath)

Definition at line 808 of file shellpath.c.

809{
811 TRACE("%s\n",pszPath);
815}
#define MAX_PATH
Definition: compat.h:34
VOID WINAPI PathQualifyW(LPWSTR pszPath)
Definition: shellpath.c:820
LPCWSTR szPath
Definition: env.c:37
#define _countof(array)
Definition: sndvol32.h:70

Referenced by PathQualifyAW().

◆ PathQualifyAW()

VOID WINAPI PathQualifyAW ( LPVOID  path)

Definition at line 829 of file shellpath.c.

830{
831 if (SHELL_OsIsUnicode())
832 PathQualifyW(pszPath);
833 else
834 PathQualifyA(pszPath);
835}
VOID WINAPI PathQualifyA(LPSTR pszPath)
Definition: shellpath.c:808

◆ PathQualifyW()

VOID WINAPI PathQualifyW ( LPWSTR  pszPath)

Definition at line 820 of file shellpath.c.

821{
822 TRACE("%s\n",debugstr_w(pszPath));
823 PathQualifyExW(pszPath, NULL, 0);
824}
static VOID WINAPI PathQualifyExW(_Inout_ LPWSTR pszPath, _Inout_opt_ LPCWSTR pszDir, _In_ DWORD dwFlags)
Definition: shellpath.c:158

Referenced by PathQualifyA(), and PathQualifyAW().

◆ PathQuoteSpacesAW()

VOID WINAPI PathQuoteSpacesAW ( LPVOID  path)

◆ PathRemoveArgsAW()

void WINAPI PathRemoveArgsAW ( LPVOID  lpszPath)

◆ PathRemoveBlanksAW()

void WINAPI PathRemoveBlanksAW ( LPVOID  lpszPath)

◆ PathRemoveExtensionAW()

void WINAPI PathRemoveExtensionAW ( LPVOID  lpszPath)

◆ PathRemoveFileSpecAW()

BOOL WINAPI PathRemoveFileSpecAW ( LPVOID  lpszPath)

Definition at line 453 of file shellpath.c.

454{
455 if (SHELL_OsIsUnicode())
456 return PathRemoveFileSpecW(lpszPath);
457 return PathRemoveFileSpecA(lpszPath);
458}
BOOL WINAPI PathRemoveFileSpecW(LPWSTR lpszPath)
Definition: path.c:629
BOOL WINAPI PathRemoveFileSpecA(LPSTR lpszPath)
Definition: path.c:586

◆ PathResolveA()

BOOL WINAPI PathResolveA ( LPSTR  path,
LPCSTR dirs,
DWORD  flags 
)

Definition at line 837 of file shellpath.c.

838{
839 BOOL ret = FALSE;
840 LPWSTR *dirsW = NULL;
841 DWORD iDir, cDirs, cbDirs;
842 WCHAR pathW[MAX_PATH];
843
844 TRACE("(%s,%p,0x%08x)\n", debugstr_a(path), dirs, flags);
845
846 if (dirs)
847 {
848 for (cDirs = 0; dirs[cDirs]; ++cDirs)
849 ;
850
851 cbDirs = (cDirs + 1) * sizeof(LPWSTR);
852 dirsW = SHAlloc(cbDirs);
853 if (!dirsW)
854 goto Cleanup;
855
856 ZeroMemory(dirsW, cbDirs);
857 for (iDir = 0; iDir < cDirs; ++iDir)
858 {
859 __SHCloneStrAtoW(&dirsW[iDir], dirs[iDir]);
860 if (dirsW[iDir] == NULL)
861 goto Cleanup;
862 }
863 }
864
865 SHAnsiToUnicode(path, pathW, _countof(pathW));
866
867 ret = PathResolveW(pathW, (LPCWSTR*)dirsW, flags);
868 if (ret)
870
871Cleanup:
872 if (dirsW)
873 {
874 for (iDir = 0; iDir < cDirs; ++iDir)
875 {
876 SHFree(dirsW[iDir]);
877 }
878 SHFree(dirsW);
879 }
880 return ret;
881}
LPVOID WINAPI SHAlloc(SIZE_T len)
Definition: shellole.c:304
BOOL WINAPI PathResolveW(_Inout_ LPWSTR path, _Inout_opt_ LPCWSTR *dirs, _In_ DWORD flags)
Definition: shellpath.c:883
static const WCHAR Cleanup[]
Definition: register.c:80
GLbitfield flags
Definition: glext.h:7161
static __inline LPWSTR __SHCloneStrAtoW(WCHAR **target, const char *source)
Definition: shell32_main.h:170
int ret
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by PathResolveAW().

◆ PathResolveAW()

BOOL WINAPI PathResolveAW ( LPVOID  lpszPath,
LPCVOID alpszPaths,
DWORD  dwFlags 
)

Definition at line 960 of file shellpath.c.

961{
962 if (SHELL_OsIsUnicode())
963 return PathResolveW(path, (LPCWSTR*)paths, flags);
964 else
965 return PathResolveA(path, (LPCSTR*)paths, flags);
966}
BOOL WINAPI PathResolveA(LPSTR path, LPCSTR *dirs, DWORD flags)
Definition: shellpath.c:837
GLsizei const GLuint * paths
Definition: glext.h:11717
const char * LPCSTR
Definition: xmlstorage.h:183

◆ PathResolveW()

BOOL WINAPI PathResolveW ( LPWSTR  path,
LPCWSTR dirs,
DWORD  flags 
)

◆ PathSetDlgItemPathAW()

VOID WINAPI PathSetDlgItemPathAW ( HWND  hDlg,
int  nIDDlgItem,
LPCVOID  lpszPath 
)

◆ PathStripPathAW()

void WINAPI PathStripPathAW ( LPVOID  lpszPath)

◆ PathStripToRootAW()

BOOL WINAPI PathStripToRootAW ( LPVOID  lpszPath)

◆ PathUnquoteSpacesAW()

void WINAPI PathUnquoteSpacesAW ( LPVOID  lpszPath)

◆ PathYetAnotherMakeUniqueName()

BOOL WINAPI PathYetAnotherMakeUniqueName ( LPWSTR  lpszBuffer,
LPCWSTR  lpszPathName,
LPCWSTR  lpszShortName,
LPCWSTR  lpszLongName 
)

Definition at line 699 of file shellpath.c.

700{
701 WCHAR pathW[MAX_PATH], retW[MAX_PATH];
702 const WCHAR *file, *ext;
703 int i = 2;
704
705 TRACE("(%p, %s, %s, %s)\n", buffer, debugstr_w(path), debugstr_w(shortname), debugstr_w(longname));
706
707 file = longname ? longname : shortname;
708 PathCombineW(pathW, path, file);
709 strcpyW(retW, pathW);
711
713
714 /* now try to make it unique */
715 while (PathFileExistsW(retW))
716 {
717 sprintfW(retW, L"%s (%d)%s", pathW, i, ext);
718 i++;
719 }
720
721 strcpyW(buffer, retW);
722 TRACE("ret - %s\n", debugstr_w(buffer));
723
724 return TRUE;
725}
static const WCHAR *const ext[]
Definition: module.c:53
LPWSTR WINAPI PathFindExtensionW(LPCWSTR lpszPath)
Definition: path.c:447
void WINAPI PathRemoveExtensionW(LPWSTR lpszPath)
Definition: path.c:823
GLuint buffer
Definition: glext.h:5915
#define PathCombineW
Definition: pathcch.h:317
#define sprintfW
Definition: unicode.h:64
#define strcpyW(d, s)
Definition: unicode.h:35
Definition: fci.c:127

Referenced by BrFolder_NewFolder(), CNewMenu::CreateNewFolder(), CDefaultContextMenu::DoCreateNewFolder(), CDeskLinkDropHandler::Drop(), FinishDlgProc(), loadShell32(), and CNewMenu::NewItemByNonCommand().

◆ RealShellExecuteA()

HINSTANCE WINAPI RealShellExecuteA ( _In_opt_ HWND  hwnd,
_In_opt_ LPCSTR  lpOperation,
_In_opt_ LPCSTR  lpFile,
_In_opt_ LPCSTR  lpParameters,
_In_opt_ LPCSTR  lpDirectory,
_In_opt_ LPSTR  lpReturn,
_In_opt_ LPCSTR  lpTitle,
_In_opt_ LPVOID  lpReserved,
_In_ INT  nCmdShow,
_Out_opt_ PHANDLE  lphProcess 
)

Definition at line 2928 of file shlexec.cpp.

2939{
2941 lpOperation,
2942 lpFile,
2943 lpParameters,
2945 lpReturn,
2946 lpTitle,
2947 lpReserved,
2948 nCmdShow,
2949 lphProcess,
2950 0);
2951}
TCHAR lpTitle[80]
Definition: ctm.c:69
_In_opt_ LPCSTR lpDirectory
Definition: shellapi.h:484
EXTERN_C HINSTANCE WINAPI RealShellExecuteExA(_In_opt_ HWND hwnd, _In_opt_ LPCSTR lpOperation, _In_opt_ LPCSTR lpFile, _In_opt_ LPCSTR lpParameters, _In_opt_ LPCSTR lpDirectory, _In_opt_ LPSTR lpReturn, _In_opt_ LPCSTR lpTitle, _In_opt_ LPVOID lpReserved, _In_ INT nCmdShow, _Out_opt_ PHANDLE lphProcess, _In_ DWORD dwFlags)
Definition: shlexec.cpp:2794

◆ RealShellExecuteExA()

HINSTANCE WINAPI RealShellExecuteExA ( _In_opt_ HWND  hwnd,
_In_opt_ LPCSTR  lpOperation,
_In_opt_ LPCSTR  lpFile,
_In_opt_ LPCSTR  lpParameters,
_In_opt_ LPCSTR  lpDirectory,
_In_opt_ LPSTR  lpReturn,
_In_opt_ LPCSTR  lpTitle,
_In_opt_ LPVOID  lpReserved,
_In_ INT  nCmdShow,
_Out_opt_ PHANDLE  lphProcess,
_In_ DWORD  dwFlags 
)

Definition at line 2794 of file shlexec.cpp.

2806{
2807 SHELLEXECUTEINFOA ExecInfo;
2808
2809 TRACE("(%p, %s, %s, %s, %s, %p, %s, %p, %u, %p, %lu)\n",
2810 hwnd, debugstr_a(lpOperation), debugstr_a(lpFile), debugstr_a(lpParameters),
2812 lpReserved, nCmdShow, lphProcess, dwFlags);
2813
2814 ZeroMemory(&ExecInfo, sizeof(ExecInfo));
2815 ExecInfo.cbSize = sizeof(ExecInfo);
2817 ExecInfo.hwnd = hwnd;
2818 ExecInfo.lpVerb = lpOperation;
2819 ExecInfo.lpFile = lpFile;
2820 ExecInfo.lpParameters = lpParameters;
2821 ExecInfo.lpDirectory = lpDirectory;
2822 ExecInfo.nShow = (WORD)nCmdShow;
2823
2824 if (lpReserved)
2825 {
2826 ExecInfo.fMask |= SEE_MASK_USE_RESERVED;
2827 ExecInfo.hInstApp = (HINSTANCE)lpReserved;
2828 }
2829
2830 if (lpTitle)
2831 {
2832 ExecInfo.fMask |= SEE_MASK_HASTITLE;
2833 ExecInfo.lpClass = lpTitle;
2834 }
2835
2836 if (dwFlags & 1)
2837 ExecInfo.fMask |= SEE_MASK_FLAG_SEPVDM;
2838
2839 if (dwFlags & 2)
2840 ExecInfo.fMask |= SEE_MASK_NO_CONSOLE;
2841
2842 if (lphProcess == NULL)
2843 {
2844 ShellExecuteExA(&ExecInfo);
2845 }
2846 else
2847 {
2848 ExecInfo.fMask |= SEE_MASK_NOCLOSEPROCESS;
2849 ShellExecuteExA(&ExecInfo);
2850 *lphProcess = ExecInfo.hProcess;
2851 }
2852
2853 return ExecInfo.hInstApp;
2854}
unsigned short WORD
Definition: ntddk_ex.h:93
#define SEE_MASK_USE_RESERVED
Definition: shellapi.h:51
#define SEE_MASK_FLAG_SEPVDM
Definition: shellapi.h:50
#define SEE_MASK_NOCLOSEPROCESS
Definition: shellapi.h:31
#define SEE_MASK_HASTITLE
Definition: shellapi.h:52
#define SEE_MASK_UNKNOWN_0x1000
Definition: shellapi.h:48
#define SEE_MASK_FLAG_NO_UI
Definition: shellapi.h:36
#define SEE_MASK_NO_CONSOLE
Definition: shellapi.h:38
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExA(LPSHELLEXECUTEINFOA sei)
Definition: shlexec.cpp:2397
LPCSTR lpParameters
Definition: shellapi.h:316
HINSTANCE hInstApp
Definition: shellapi.h:319
LPCSTR lpDirectory
Definition: shellapi.h:317
HANDLE HINSTANCE
Definition: typedefs.h:77

Referenced by RealShellExecuteA().

◆ RealShellExecuteExW()

HINSTANCE WINAPI RealShellExecuteExW ( _In_opt_ HWND  hwnd,
_In_opt_ LPCWSTR  lpOperation,
_In_opt_ LPCWSTR  lpFile,
_In_opt_ LPCWSTR  lpParameters,
_In_opt_ LPCWSTR  lpDirectory,
_In_opt_ LPWSTR  lpReturn,
_In_opt_ LPCWSTR  lpTitle,
_In_opt_ LPVOID  lpReserved,
_In_ INT  nCmdShow,
_Out_opt_ PHANDLE  lphProcess,
_In_ DWORD  dwFlags 
)

Definition at line 2861 of file shlexec.cpp.

2873{
2874 SHELLEXECUTEINFOW ExecInfo;
2875
2876 TRACE("(%p, %s, %s, %s, %s, %p, %s, %p, %u, %p, %lu)\n",
2877 hwnd, debugstr_w(lpOperation), debugstr_w(lpFile), debugstr_w(lpParameters),
2879 lpReserved, nCmdShow, lphProcess, dwFlags);
2880
2881 ZeroMemory(&ExecInfo, sizeof(ExecInfo));
2882 ExecInfo.cbSize = sizeof(ExecInfo);
2884 ExecInfo.hwnd = hwnd;
2885 ExecInfo.lpVerb = lpOperation;
2886 ExecInfo.lpFile = lpFile;
2887 ExecInfo.lpParameters = lpParameters;
2888 ExecInfo.lpDirectory = lpDirectory;
2889 ExecInfo.nShow = (WORD)nCmdShow;
2890
2891 if (lpReserved)
2892 {
2893 ExecInfo.fMask |= SEE_MASK_USE_RESERVED;
2894 ExecInfo.hInstApp = (HINSTANCE)lpReserved;
2895 }
2896
2897 if (lpTitle)
2898 {
2899 ExecInfo.fMask |= SEE_MASK_HASTITLE;
2900 ExecInfo.lpClass = lpTitle;
2901 }
2902
2903 if (dwFlags & 1)
2904 ExecInfo.fMask |= SEE_MASK_FLAG_SEPVDM;
2905
2906 if (dwFlags & 2)
2907 ExecInfo.fMask |= SEE_MASK_NO_CONSOLE;
2908
2909 if (lphProcess == NULL)
2910 {
2911 ShellExecuteExW(&ExecInfo);
2912 }
2913 else
2914 {
2915 ExecInfo.fMask |= SEE_MASK_NOCLOSEPROCESS;
2916 ShellExecuteExW(&ExecInfo);
2917 *lphProcess = ExecInfo.hProcess;
2918 }
2919
2920 return ExecInfo.hInstApp;
2921}
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExW(LPSHELLEXECUTEINFOW sei)
Definition: shlexec.cpp:2455
LPCWSTR lpDirectory
Definition: shellapi.h:334
HINSTANCE hInstApp
Definition: shellapi.h:336
LPCWSTR lpParameters
Definition: shellapi.h:333

Referenced by RealShellExecuteW().

◆ RealShellExecuteW()

HINSTANCE WINAPI RealShellExecuteW ( _In_opt_ HWND  hwnd,
_In_opt_ LPCWSTR  lpOperation,
_In_opt_ LPCWSTR  lpFile,
_In_opt_ LPCWSTR  lpParameters,
_In_opt_ LPCWSTR  lpDirectory,
_In_opt_ LPWSTR  lpReturn,
_In_opt_ LPCWSTR  lpTitle,
_In_opt_ LPVOID  lpReserved,
_In_ INT  nCmdShow,
_Out_opt_ PHANDLE  lphProcess 
)

Definition at line 2958 of file shlexec.cpp.

2969{
2971 lpOperation,
2972 lpFile,
2973 lpParameters,
2975 lpReturn,
2976 lpTitle,
2977 lpReserved,
2978 nCmdShow,
2979 lphProcess,
2980 0);
2981}
EXTERN_C HINSTANCE WINAPI RealShellExecuteExW(_In_opt_ HWND hwnd, _In_opt_ LPCWSTR lpOperation, _In_opt_ LPCWSTR lpFile, _In_opt_ LPCWSTR lpParameters, _In_opt_ LPCWSTR lpDirectory, _In_opt_ LPWSTR lpReturn, _In_opt_ LPCWSTR lpTitle, _In_opt_ LPVOID lpReserved, _In_ INT nCmdShow, _Out_opt_ PHANDLE lphProcess, _In_ DWORD dwFlags)
Definition: shlexec.cpp:2861

◆ RegenerateUserEnvironment()

BOOL WINAPI RegenerateUserEnvironment ( LPVOID lpEnvironment,
BOOL  bUpdateSelf 
)

Definition at line 71 of file shell32.cpp.

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}
HANDLE hUserToken
Definition: install.c:39
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
Definition: security.c:294
#define CloseHandle
Definition: compat.h:739
#define wcschr
Definition: compat.h:17
#define GetCurrentProcess()
Definition: compat.h:759
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW(IN LPCWSTR lpName, IN LPCWSTR lpValue)
Definition: environ.c:259
BOOL WINAPI CreateEnvironmentBlock(OUT LPVOID *lpEnvironment, IN HANDLE hToken, IN BOOL bInherit)
Definition: environment.c:503
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:202
return TRUE
Definition: shell32.cpp:401
#define TOKEN_WRITE
Definition: setypes.h:953
#define TOKEN_READ
Definition: setypes.h:951

Referenced by CDesktopBrowser::OnSettingChange().

◆ RegisterShellHook()

BOOL WINAPI RegisterShellHook ( HWND  hWnd,
DWORD  dwType 
)

Definition at line 504 of file shellord.c.

507{
508 if (dwType == 3)
509 {
512 }
513 else if (dwType == 0)
514 {
516 }
517
518 ERR("Unsupported argument");
519 return FALSE;
520}
#define ERR(fmt,...)
Definition: precomp.h:57
HWND WINAPI SetTaskmanWindow(HWND)
Definition: window.c:1880
BOOL WINAPI DeregisterShellHookWindow(_In_ HWND)
BOOL WINAPI RegisterShellHookWindow(_In_ HWND)

Referenced by CTaskSwitchWnd::OnCreate(), and CTaskSwitchWnd::OnDestroy().

◆ RunFileDlg()

void WINAPI RunFileDlg ( HWND  hWndOwner,
HICON  hIcon,
LPCWSTR  lpstrDirectory,
LPCWSTR  lpstrTitle,
LPCWSTR  lpstrDescription,
UINT  uFlags 
)

Definition at line 409 of file dialogs.cpp.

416{
417 TRACE("\n");
418
419 RUNFILEDLGPARAMS rfdp;
420 rfdp.hwndOwner = hWndOwner;
421 rfdp.hIcon = hIcon;
422 rfdp.lpstrDirectory = lpstrDirectory;
423 rfdp.lpstrTitle = lpstrTitle;
424 rfdp.lpstrDescription = lpstrDescription;
425 rfdp.uFlags = uFlags;
426
428}
static INT_PTR CALLBACK RunDlgProc(HWND, UINT, WPARAM, LPARAM)
Definition: dialogs.cpp:511
HICON hIcon
Definition: msconfig.c:44
#define IDD_RUN
Definition: shresdef.h:365
LPCWSTR lpstrDirectory
Definition: dialogs.cpp:29
LPCWSTR lpstrTitle
Definition: dialogs.cpp:30
LPCWSTR lpstrDescription
Definition: dialogs.cpp:31

Referenced by RunDialogThread::Run(), CTrayWindow::RunFileDlgThread(), and TaskManager_OnFileNew().

◆ SHCreateDefClassObject()

HRESULT WINAPI SHCreateDefClassObject ( REFIID  riidFactory,
LPVOID ppvFactory,
LPFNCDCOCALLBACK  lpfnCallback,
LPDWORD  lpdwUsage,
REFIID  riidObject 
)

◆ SHCreateLinks()

HRESULT WINAPI SHCreateLinks ( HWND  hWnd,
LPCSTR  lpszDir,
LPDATAOBJECT  lpDataObject,
UINT  uFlags,
LPITEMIDLIST lppidlLinks 
)

◆ SHCreatePropertyBag()

HRESULT WINAPI SHCreatePropertyBag ( _In_ REFIID  riid,
_Out_ void **  ppvObj 
)

Definition at line 689 of file utils.cpp.

690{
692}
REFIID riid
Definition: atlbase.h:39
#define STGM_READWRITE
Definition: objbase.h:919
EXTERN_C HRESULT WINAPI SHCreatePropertyBagOnMemory(_In_ DWORD dwMode, _In_ REFIID riid, _Out_ void **ppvObj)
Definition: propbag.cpp:254

◆ SHCreateSessionKey()

HRESULT WINAPI SHCreateSessionKey ( REGSAM  samDesired,
PHKEY  phKey 
)

Definition at line 147 of file shellreg.c.

148{
149 HRESULT hr = S_OK;
150 static WCHAR wszSessionKey[256];
151 LONG Error;
152
153 if (!wszSessionKey[0]) // FIXME: Critical Section
154 {
155 HANDLE hToken;
156
158 {
159 TOKEN_STATISTICS Stats;
161
162 if (GetTokenInformation(hToken, TokenStatistics, &Stats, sizeof(Stats), &ReturnLength))
163 {
164 swprintf(wszSessionKey,
165 L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\SessionInfo\\%08x%08x",
167 }
168 else
170
171 CloseHandle(hToken);
172 }
173 else
175 }
176
177 if(SUCCEEDED(hr))
178 {
179 Error = RegCreateKeyExW(HKEY_LOCAL_MACHINE, wszSessionKey, 0, NULL,
180 REG_OPTION_VOLATILE, samDesired, NULL, phKey, NULL);
181 if (Error != ERROR_SUCCESS)
183 }
184
185 return hr;
186}
BOOL Error
Definition: chkdsk.c:66
#define ERROR_SUCCESS
Definition: deptool.c:10
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
Definition: reg.c:1096
BOOL WINAPI GetTokenInformation(HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, LPVOID TokenInformation, DWORD TokenInformationLength, PDWORD ReturnLength)
Definition: security.c:411
#define swprintf
Definition: precomp.h:40
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:43
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define REG_OPTION_VOLATILE
Definition: nt_native.h:1060
long LONG
Definition: pedump.c:60
LONG HighPart
DWORD LowPart
LUID AuthenticationId
Definition: setypes.h:1087
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12
@ TokenStatistics
Definition: setypes.h:975

Referenced by DoStartStartupItems().

◆ Shell_GetCachedImageIndex()

INT WINAPI Shell_GetCachedImageIndex ( LPCWSTR  szPath,
INT  nIndex,
UINT  bSimulateDoc 
)

Definition at line 838 of file iconcache.cpp.

839{
840 return Shell_GetCachedImageIndexAW(szPath, nIndex, bSimulateDoc);
841}
EXTERN_C INT WINAPI Shell_GetCachedImageIndexAW(LPCVOID szPath, INT nIndex, BOOL bSimulateDoc)
Definition: iconcache.cpp:832

Referenced by CShellMenuCallback::OnGetInfo().

◆ Shell_GetCachedImageIndexA()

int WINAPI Shell_GetCachedImageIndexA ( LPCSTR  lpszFileName,
int  nIconIndex,
UINT  bSimulateDoc 
)

◆ Shell_GetImageLists()

BOOL WINAPI Shell_GetImageLists ( HIMAGELIST lphimlLarge,
HIMAGELIST lphimlSmall 
)

Definition at line 683 of file iconcache.cpp.

684{
685 TRACE("(%p,%p)\n",lpBigList,lpSmallList);
686
687 if (!sic_hdpa)
689
690 if (lpBigList)
691 *lpBigList = ShellBigIconList;
692
693 if (lpSmallList)
694 *lpSmallList = ShellSmallIconList;
695
696 return TRUE;
697}
static HDPA sic_hdpa
Definition: iconcache.cpp:38
static HIMAGELIST ShellSmallIconList
Definition: iconcache.cpp:40
static HIMAGELIST ShellBigIconList
Definition: iconcache.cpp:41

Referenced by BrFolder_InitTreeView(), CShellBrowser::BrowseToPath(), DisplayImageList(), FileMenu_DrawItem(), CDefView::InitList(), CDefView::OnNotify(), SHGetFileInfoW(), SHGetImageList(), and test_SHGetImageList().

◆ ShellDDEInit()

void WINAPI ShellDDEInit ( BOOL  bInit)

Definition at line 275 of file shdocvw_main.c.

276{
277 TRACE("(%d)\n", start);
278
279 if (!pShellDDEInit)
280 {
281 if (!SHDOCVW_LoadShell32())
282 return FALSE;
283 pShellDDEInit = (void *)GetProcAddress(SHDOCVW_hshell32, (LPCSTR)188);
284 }
285
286 if (pShellDDEInit)
287 return pShellDDEInit(start);
288 else
289 return FALSE;
290}
GLuint start
Definition: gl.h:1545
static BOOL SHDOCVW_LoadShell32(void)
Definition: shdocvw_main.c:248
static HMODULE SHDOCVW_hshell32
Definition: shdocvw_main.c:47

◆ ShellExecCmdLine()

HRESULT WINAPI ShellExecCmdLine ( HWND  hwnd,
LPCWSTR  pwszCommand,
LPCWSTR  pwszStartDir,
int  nShow,
LPVOID  pUnused,
DWORD  dwSeclFlags 
)

Definition at line 2654 of file shlexec.cpp.

2661{
2664 LPCWSTR pszVerb = NULL;
2665 WCHAR szFile[MAX_PATH], szFile2[MAX_PATH];
2666 HRESULT hr;
2667 LPCWSTR pchParams;
2668 LPWSTR lpCommand = NULL;
2669
2670 if (pwszCommand == NULL)
2672 1, (ULONG_PTR*)pwszCommand);
2673
2674 __SHCloneStrW(&lpCommand, pwszCommand);
2675 StrTrimW(lpCommand, L" \t");
2676
2677 if (dwSeclFlags & SECL_NO_UI)
2679 if (dwSeclFlags & SECL_LOG_USAGE)
2681 if (dwSeclFlags & SECL_USE_IDLIST)
2683
2684 if (dwSeclFlags & SECL_RUNAS)
2685 {
2686 dwSize = 0;
2687 hr = AssocQueryStringW(ASSOCF_NONE, ASSOCSTR_COMMAND, lpCommand, L"RunAs", NULL, &dwSize);
2688 if (SUCCEEDED(hr) && dwSize != 0)
2689 {
2690 pszVerb = L"runas";
2691 }
2692 }
2693
2694 if (PathIsURLW(lpCommand) || UrlIsW(lpCommand, URLIS_APPLIABLE))
2695 {
2696 StringCchCopyW(szFile, _countof(szFile), lpCommand);
2697 pchParams = NULL;
2698 }
2699 else
2700 {
2701 PCWSTR apPathList[2];
2702
2703 pchParams = SplitParams(lpCommand, szFile, _countof(szFile));
2704 if (szFile[0] != UNICODE_NULL && szFile[1] == L':' &&
2705 szFile[2] == UNICODE_NULL)
2706 {
2707 PathAddBackslashW(szFile);
2708 }
2709
2710 WCHAR szCurDir[MAX_PATH];
2711 GetCurrentDirectoryW(_countof(szCurDir), szCurDir);
2712 if (pwszStartDir)
2713 {
2714 SetCurrentDirectoryW(pwszStartDir);
2715 }
2716
2717 if ((PathIsRelativeW(szFile) &&
2718 GetFullPathNameW(szFile, _countof(szFile2), szFile2, NULL) &&
2719 PathFileExistsW(szFile2)) ||
2720 SearchPathW(NULL, szFile, NULL, _countof(szFile2), szFile2, NULL))
2721 {
2722 StringCchCopyW(szFile, _countof(szFile), szFile2);
2723 }
2724
2725 apPathList[0] = pwszStartDir;
2726 apPathList[1] = NULL;
2727 PathFindOnPathExW(szFile, apPathList, WHICH_DEFAULT);
2728
2729 if (!(dwSeclFlags & SECL_ALLOW_NONEXE))
2730 {
2731 if (!GetBinaryTypeW(szFile, &dwType))
2732 {
2733 SHFree(lpCommand);
2734
2735 if (!(dwSeclFlags & SECL_NO_UI))
2736 {
2737 WCHAR szText[128 + MAX_PATH], szFormat[128];
2739 StringCchPrintfW(szText, _countof(szText), szFormat, szFile);
2740 MessageBoxW(hwnd, szText, NULL, MB_ICONERROR);
2741 }
2742 return CO_E_APPNOTFOUND;
2743 }
2744 }
2745 else
2746 {
2748 {
2749 SHFree(lpCommand);
2750
2751 if (!(dwSeclFlags & SECL_NO_UI))
2752 {
2753 WCHAR szText[128 + MAX_PATH], szFormat[128];
2755 StringCchPrintfW(szText, _countof(szText), szFormat, szFile);
2756 MessageBoxW(hwnd, szText, NULL, MB_ICONERROR);
2757 }
2759 }
2760 }
2761 }
2762
2763 ZeroMemory(&info, sizeof(info));
2764 info.cbSize = sizeof(info);
2765 info.fMask = dwFlags;
2766 info.hwnd = hwnd;
2767 info.lpVerb = pszVerb;
2768 info.lpFile = szFile;
2769 info.lpParameters = (pchParams && *pchParams) ? pchParams : NULL;
2770 info.lpDirectory = pwszStartDir;
2771 info.nShow = nShow;
2772 if (ShellExecuteExW(&info))
2773 {
2774 if (info.lpIDList)
2775 CoTaskMemFree(info.lpIDList);
2776
2777 SHFree(lpCommand);
2778
2779 return S_OK;
2780 }
2781
2782 dwError = GetLastError();
2783
2784 SHFree(lpCommand);
2785
2786 return HRESULT_FROM_WIN32(dwError);
2787}
#define SECL_USE_IDLIST
#define SECL_LOG_USAGE
#define SECL_ALLOW_NONEXE
#define SECL_RUNAS
#define SECL_NO_UI
#define GetCurrentDirectoryW(x, y)
Definition: compat.h:756
VOID WINAPI RaiseException(_In_ DWORD dwExceptionCode, _In_ DWORD dwExceptionFlags, _In_ DWORD nNumberOfArguments, _In_opt_ const ULONG_PTR *lpArguments)
Definition: except.c:700
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
Definition: fileinfo.c:652
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
Definition: path.c:2249
DWORD WINAPI SearchPathW(IN LPCWSTR lpPath OPTIONAL, IN LPCWSTR lpFileName, IN LPCWSTR lpExtension OPTIONAL, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart OPTIONAL)
Definition: path.c:1298
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
Definition: path.c:1106
BOOL WINAPI GetBinaryTypeW(LPCWSTR lpApplicationName, LPDWORD lpBinaryType)
Definition: vdm.c:1243
HRESULT WINAPI AssocQueryStringW(ASSOCF cfFlags, ASSOCSTR str, LPCWSTR pszAssoc, LPCWSTR pszExtra, LPWSTR pszOut, DWORD *pcchOut)
Definition: assoc.c:436
BOOL WINAPI PathFindOnPathExW(LPWSTR lpszFile, LPCWSTR *lppszOtherDirs, DWORD dwWhich)
Definition: path.c:1351
BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath)
Definition: path.c:1579
BOOL WINAPI StrTrimW(LPWSTR lpszStr, LPCWSTR lpszTrim)
Definition: string.c:1877
BOOL WINAPI UrlIsW(LPCWSTR pszUrl, URLIS Urlis)
Definition: url.c:1933
BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
Definition: url.c:2432
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
#define ERROR_FILE_NOT_FOUND
Definition: disk.h:79
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
#define UNICODE_NULL
#define PathAddBackslashW
Definition: pathcch.h:301
static __inline void __SHCloneStrW(WCHAR **target, const WCHAR *source)
Definition: shell32_main.h:164
#define SEE_MASK_FLAG_LOG_USAGE
Definition: shellapi.h:59
#define SEE_MASK_DOENVSUBST
Definition: shellapi.h:35
#define SEE_MASK_NOASYNC
Definition: shellapi.h:33
#define SEE_MASK_INVOKEIDLIST
Definition: shellapi.h:28
static LPCWSTR SplitParams(LPCWSTR psz, LPWSTR pszArg0, size_t cchArg0)
Definition: shlexec.cpp:2608
@ ASSOCSTR_COMMAND
Definition: shlwapi.h:603
@ ASSOCF_NONE
Definition: shlwapi.h:581
@ URLIS_APPLIABLE
Definition: shlwapi.h:1195
#define WHICH_DEFAULT
#define IDS_FILE_NOT_FOUND
Definition: shresdef.h:344
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:530
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:149
#define EXCEPTION_NONCONTINUABLE
Definition: stubs.h:23
const uint16_t * PCWSTR
Definition: typedefs.h:57
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define INVALID_FILE_ATTRIBUTES
Definition: vfdcmd.c:23
#define EXCEPTION_ACCESS_VIOLATION
Definition: winbase.h:311
#define CO_E_APPNOTFOUND
Definition: winerror.h:2808
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_ICONERROR
Definition: winuser.h:787

◆ SheRemoveQuotesA()

LPSTR WINAPI SheRemoveQuotesA ( LPSTR  psz)

Definition at line 699 of file utils.cpp.

700{
701 PCHAR pch;
702
703 if (*psz == '"')
704 {
705 for (pch = psz + 1; *pch && *pch != '"'; ++pch)
706 {
707 *(pch - 1) = *pch;
708 }
709
710 if (*pch == '"')
711 *(pch - 1) = ANSI_NULL;
712 }
713
714 return psz;
715}
#define pch(ap)
Definition: match.c:418
#define ANSI_NULL
char * PCHAR
Definition: typedefs.h:51

◆ SheRemoveQuotesW()

LPWSTR WINAPI SheRemoveQuotesW ( LPWSTR  psz)

Definition at line 724 of file utils.cpp.

725{
726 PWCHAR pch;
727
728 if (*psz == L'"')
729 {
730 for (pch = psz + 1; *pch && *pch != L'"'; ++pch)
731 {
732 *(pch - 1) = *pch;
733 }
734
735 if (*pch == L'"')
736 *(pch - 1) = UNICODE_NULL;
737 }
738
739 return psz;
740}
uint16_t * PWCHAR
Definition: typedefs.h:56

◆ SHFindComputer()

BOOL WINAPI SHFindComputer ( LPCITEMIDLIST  pidlRoot,
LPCITEMIDLIST  pidlSavedSearch 
)

Definition at line 750 of file utils.cpp.

751{
752 UNREFERENCED_PARAMETER(pidlRoot);
753 UNREFERENCED_PARAMETER(pidlSavedSearch);
754
755 TRACE("%p %p\n", pidlRoot, pidlSavedSearch);
756
757 IContextMenu *pCM;
758 HRESULT hr = CoCreateInstance(CLSID_ShellSearchExt, NULL, CLSCTX_INPROC_SERVER,
759 IID_IContextMenu, (void **)&pCM);
760 if (FAILED(hr))
761 {
762 ERR("0x%08X\n", hr);
763 return hr;
764 }
765
766 CMINVOKECOMMANDINFO InvokeInfo = { sizeof(InvokeInfo) };
767 InvokeInfo.lpParameters = "{996E1EB1-B524-11D1-9120-00A0C98BA67D}";
768 InvokeInfo.nShow = SW_SHOWNORMAL;
769 hr = pCM->InvokeCommand(&InvokeInfo);
770 pCM->Release();
771
772 return SUCCEEDED(hr);
773}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
HRESULT InvokeCommand([in] LPCMINVOKECOMMANDINFO lpici)
ULONG Release()
#define SW_SHOWNORMAL
Definition: winuser.h:770

Referenced by CTrayWindow::HandleCommand(), CTrayWindow::HandleHotKey(), and StartMenuHandler::ShowSearchComputer().

◆ SHFreeUnusedLibraries()

void WINAPI SHFreeUnusedLibraries ( void  )

Definition at line 1722 of file shellord.c.

1723{
1724 FIXME("stub\n");
1726}
void WINAPI DECLSPEC_HOTPATCH CoFreeUnusedLibraries(void)
Definition: compobj.c:3701

◆ SHGetFileIcon()

HICON WINAPI SHGetFileIcon ( DWORD  dwReserved,
LPCSTR  lpszPath,
DWORD  dwFileAttributes,
UINT  uFlags 
)

◆ SHGetImageList()

HRESULT WINAPI SHGetImageList ( int  iImageList,
REFIID  riid,
void **  ppv 
)

Definition at line 2668 of file shellord.c.

2669{
2670 HIMAGELIST hLarge, hSmall;
2671 HIMAGELIST hNew;
2672 HRESULT ret = E_FAIL;
2673
2674 /* Wine currently only maintains large and small image lists */
2675 if ((iImageList != SHIL_LARGE) && (iImageList != SHIL_SMALL) && (iImageList != SHIL_SYSSMALL))
2676 {
2677 FIXME("Unsupported image list %i requested\n", iImageList);
2678 return E_FAIL;
2679 }
2680
2681 Shell_GetImageLists(&hLarge, &hSmall);
2682#ifndef __REACTOS__
2683 hNew = ImageList_Duplicate(iImageList == SHIL_LARGE ? hLarge : hSmall);
2684
2685 /* Get the interface for the new image list */
2686 if (hNew)
2687 {
2689 ImageList_Destroy(hNew);
2690 }
2691#else
2692 /* Duplicating the imagelist causes the start menu items not to draw on
2693 * the first show. Was the Duplicate necessary for some reason? I believe
2694 * Windows returns the raw pointer here. */
2695 hNew = (iImageList == SHIL_LARGE ? hLarge : hSmall);
2696 ret = IImageList2_QueryInterface((IImageList2 *) hNew, riid, ppv);
2697#endif
2698
2699 return ret;
2700}
HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void **ppv)
Definition: imagelist.c:4038
HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST himlSrc)
Definition: imagelist.c:1801
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
Definition: imagelist.c:928
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define SHIL_SYSSMALL
Definition: shellapi.h:187
#define SHIL_SMALL
Definition: shellapi.h:185
#define SHIL_LARGE
Definition: shellapi.h:184

Referenced by check_icon_size(), CISFBand::CreateSimpleToolbar(), CExplorerBand::InitializeExplorerBand(), CISFBand::InvokeCommand(), CSearchBar::OnInitDialog(), CAddressBand::SetSite(), test_get_file_info_iconlist(), test_SHGetImageList(), and CMenuToolbarBase::UpdateImageLists().

◆ SHGetUserSessionId()

DWORD WINAPI SHGetUserSessionId ( _In_opt_ HANDLE  hToken)

Definition at line 502 of file utils.cpp.

503{
504 DWORD dwSessionId, dwLength;
505 BOOL bOpenToken = FALSE;
506
507 TRACE("%p\n", hToken);
508
509 if (!hToken)
510 bOpenToken = SHOpenEffectiveToken(&hToken);
511
512 if (!hToken ||
513 !GetTokenInformation(hToken, TokenSessionId, &dwSessionId, sizeof(dwSessionId), &dwLength))
514 {
515 dwSessionId = 0;
516 }
517
518 if (bOpenToken)
519 CloseHandle(hToken);
520
521 return dwSessionId;
522}
static DWORD DWORD * dwLength
Definition: fusion.c:86
EXTERN_C BOOL WINAPI SHOpenEffectiveToken(_Out_ LPHANDLE phToken)
Definition: utils.cpp:493
@ TokenSessionId
Definition: setypes.h:977

◆ SHGetViewStream()

IStream *WINAPI SHGetViewStream ( LPCITEMIDLIST  ,
DWORD  ,
LPCTSTR  ,
LPCTSTR  ,
LPCTSTR   
)

◆ SHHandleDiskFull()

void WINAPI SHHandleDiskFull ( HWND  hwndOwner,
UINT  uDrive 
)

Definition at line 755 of file stubs.cpp.

756{
757 FIXME("SHHandleDiskFull() stub\n");
758}

◆ SHILCreateFromPathA()

HRESULT WINAPI SHILCreateFromPathA ( LPCSTR  path,
LPITEMIDLIST ppidl,
DWORD attributes 
)

Definition at line 389 of file pidl.c.

390{
391 WCHAR lpszDisplayName[MAX_PATH];
392
393 TRACE_(shell)("%s %p 0x%08x\n", path, ppidl, attributes ? *attributes : 0);
394
395 if (!MultiByteToWideChar(CP_ACP, 0, path, -1, lpszDisplayName, MAX_PATH))
396 lpszDisplayName[MAX_PATH-1] = 0;
397
398 return SHILCreateFromPathW(lpszDisplayName, ppidl, attributes);
399}
#define CP_ACP
Definition: compat.h:109
#define MultiByteToWideChar
Definition: compat.h:110
HRESULT WINAPI SHILCreateFromPathW(LPCWSTR path, LPITEMIDLIST *ppidl, DWORD *attributes)
Definition: pidl.c:401

Referenced by ILCreateFromPathA(), and SHILCreateFromPathAW().

◆ SHILCreateFromPathW()

HRESULT WINAPI SHILCreateFromPathW ( LPCWSTR  path,
LPITEMIDLIST ppidl,
DWORD attributes 
)

Definition at line 401 of file pidl.c.

402{
403 LPSHELLFOLDER sf;
404 DWORD pchEaten;
406
407 TRACE_(shell)("%s %p 0x%08x\n", debugstr_w(path), ppidl, attributes ? *attributes : 0);
408
409 if (SUCCEEDED (SHGetDesktopFolder(&sf)))
410 {
411 ret = IShellFolder_ParseDisplayName(sf, 0, NULL, (LPWSTR)path, &pchEaten, ppidl, attributes);
412 IShellFolder_Release(sf);
413 }
414 return ret;
415}
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
#define IShellFolder_ParseDisplayName
Definition: utils.cpp:14

Referenced by CDefaultContextMenu::DoCreateNewFolder(), ILCreateFromPathW(), CNewMenu::SelectNewItem(), CShellLink::SetTargetFromPIDLOrPath(), SHGetFileInfoW(), SHGetFolderLocation(), SHILCreateFromPathA(), SHILCreateFromPathAW(), and VariantToIdlist().

◆ SHInitRestricted()

BOOL WINAPI SHInitRestricted ( LPCVOID  unused,
LPCVOID  inpRegKey 
)

◆ SHInvokePrivilegedFunctionW()

HRESULT WINAPI SHInvokePrivilegedFunctionW ( _In_z_ LPCWSTR  pszName,
_In_ PRIVILEGED_FUNCTION  fn,
_In_opt_ LPARAM  lParam 
)

◆ SHIsTempDisplayMode()

BOOL WINAPI SHIsTempDisplayMode ( VOID  )

Definition at line 610 of file CDesktopBrowser.cpp.

611{
612 TRACE("\n");
613
614 if (GetSystemMetrics(SM_REMOTESESSION) || GetSystemMetrics(SM_REMOTECONTROL))
615 return FALSE;
616
617 DEVMODEW DevMode;
618 ZeroMemory(&DevMode, sizeof(DevMode));
619 DevMode.dmSize = sizeof(DevMode);
620
622 return FALSE;
623
624 if (!DevMode.dmPelsWidth || !DevMode.dmPelsHeight)
625 return FALSE;
626
627 HDC hDC = GetDC(NULL);
628 DWORD cxWidth = GetDeviceCaps(hDC, HORZRES);
629 DWORD cyHeight = GetDeviceCaps(hDC, VERTRES);
631
632 return (cxWidth != DevMode.dmPelsWidth || cyHeight != DevMode.dmPelsHeight);
633}
static HDC hDC
Definition: 3dtext.c:33
DWORD dmPelsWidth
Definition: wingdi.h:1648
DWORD dmPelsHeight
Definition: wingdi.h:1649
WORD dmSize
Definition: wingdi.h:1620
BOOL WINAPI EnumDisplaySettingsW(LPCWSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEW lpDevMode)
Definition: display.c:408
#define HORZRES
Definition: wingdi.h:716
int WINAPI GetDeviceCaps(_In_opt_ HDC, _In_ int)
#define VERTRES
Definition: wingdi.h:717
#define ENUM_REGISTRY_SETTINGS
Definition: winuser.h:180
#define SM_REMOTESESSION
Definition: winuser.h:1058
int WINAPI GetSystemMetrics(_In_ int)

◆ SHLimitInputCombo()

HRESULT WINAPI SHLimitInputCombo ( HWND  hWnd,
IShellFolder psf 
)

◆ SHNetConnectionDialog()

DWORD WINAPI SHNetConnectionDialog ( HWND  hwndOwner,
LPCWSTR  lpstrRemoteName,
DWORD  dwType 
)

Definition at line 731 of file stubs.cpp.

734{
735 FIXME("SHNetConnectionDialog() stub\n");
737}
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101

◆ SHOpenEffectiveToken()

BOOL WINAPI SHOpenEffectiveToken ( _Out_ LPHANDLE  phToken)

Definition at line 493 of file utils.cpp.

494{
495 TRACE("%p\n", phToken);
497}
static BOOL OpenEffectiveToken(_In_ DWORD DesiredAccess, _Out_ HANDLE *phToken)
Definition: utils.cpp:89
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE phToken
Definition: winbase.h:2715
#define TOKEN_ADJUST_PRIVILEGES
Definition: setypes.h:930
#define TOKEN_QUERY
Definition: setypes.h:928

Referenced by SHGetUserSessionId(), SHInvokePrivilegedFunctionW(), and SHTestTokenPrivilegeW().

◆ ShortSizeFormatW()

LPWSTR WINAPI ShortSizeFormatW ( _In_ DWORD  dwNumber,
_Out_writes_(0x8FFF) LPWSTR  pszBuffer 
)

Definition at line 482 of file utils.cpp.

485{
486 TRACE("(%lu, %p)\n", dwNumber, pszBuffer);
487 return StrFormatByteSizeW(dwNumber, pszBuffer, 0x8FFF);
488}
LPWSTR WINAPI StrFormatByteSizeW(LONGLONG llBytes, LPWSTR lpszDest, UINT cchMax)
Definition: string.c:2388

◆ SHOutOfMemoryMessageBox()

int WINAPI SHOutOfMemoryMessageBox ( HWND  hwndOwner,
LPCSTR  lpCaption,
UINT  uType 
)

Definition at line 1950 of file shellord.c.

1954{
1955 FIXME("%p %s 0x%08x stub\n",hwndOwner, lpCaption, uType);
1956 return 0;
1957}

◆ SHRegisterDragDrop()

HRESULT WINAPI SHRegisterDragDrop ( HWND  hWnd,
LPDROPTARGET  lpDropTarget 
)

Definition at line 733 of file shellord.c.

736{
737 static BOOL ole_initialized = FALSE;
738 HRESULT hr;
739
740 TRACE("(%p,%p)\n", hWnd, pDropTarget);
741
742 if (!ole_initialized)
743 {
745 if (FAILED(hr))
746 return hr;
747 ole_initialized = TRUE;
748 }
749 return RegisterDragDrop(hWnd, pDropTarget);
750}
HRESULT WINAPI DECLSPEC_HOTPATCH OleInitialize(LPVOID reserved)
Definition: ole2.c:169
HRESULT WINAPI RegisterDragDrop(HWND hwnd, LPDROPTARGET pDropTarget)
Definition: ole2.c:557

◆ SHRegQueryValueExA()

LONG WINAPI SHRegQueryValueExA ( HKEY  hkey,
LPCSTR  lpValueName,
LPDWORD  lpReserved,
LPDWORD  lpType,
LPBYTE  lpData,
LPDWORD  lpcbData 
)

Definition at line 78 of file shellreg.c.

85{
86 TRACE("%p %s %p %p %p %p\n", hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
87 return SHQueryValueExA(hkey, lpValueName, lpReserved, lpType, lpData, lpcbData);
88}
DWORD WINAPI SHQueryValueExA(HKEY hKey, LPCSTR lpszValue, LPDWORD lpReserved, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
Definition: reg.c:1402

◆ SHRegQueryValueExW()

LONG WINAPI SHRegQueryValueExW ( HKEY  hkey,
LPCWSTR  pszValue,
LPDWORD  pdwReserved,
LPDWORD  pdwType,
LPVOID  pvData,
LPDWORD  pcbData 
)

Definition at line 108 of file shellreg.c.

115{
116 TRACE("%p %s %p %p %p %p\n",
117 hkey, debugstr_w(pszValue), pdwReserved, pdwType, pvData, pcbData);
118 return SHQueryValueExW(hkey, pszValue, pdwReserved, pdwType, pvData, pcbData);
119}
DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue, LPDWORD lpReserved, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
Definition: reg.c:1461
_Reserved_ DWORD * pdwReserved
Definition: wincrypt.h:4254
_In_ DWORD _Out_writes_bytes_to_opt_ pcbData void _Inout_ DWORD * pcbData
Definition: wincrypt.h:4950
_In_ ULONG _In_opt_ PVOID pvData
Definition: winddi.h:3749

Referenced by SHELL_TryAppPathW().

◆ SHRevokeDragDrop()

HRESULT WINAPI SHRevokeDragDrop ( HWND  hWnd)

Definition at line 768 of file shellord.c.

769{
770 TRACE("(%p)\n", hWnd);
771 return RevokeDragDrop(hWnd);
772}
HRESULT WINAPI RevokeDragDrop(HWND hwnd)
Definition: ole2.c:639

◆ SHSettingsChanged()

BOOL WINAPI SHSettingsChanged ( LPCVOID  unused,
LPCWSTR  pszKey 
)

Definition at line 178 of file shpolicy.c.

179{
180 TRACE("(%p, %s)\n", unused, debugstr_w(pszKey));
181
182 if (pszKey &&
183 lstrcmpiW(L"Policy", pszKey) != 0 &&
184 lstrcmpiW(L"Software\\Microsoft\\Windows\\CurrentVersion\\Policies", pszKey) != 0)
185 {
186 return FALSE;
187 }
188
190}
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
Definition: locale.c:4261
LONG WINAPI SHGlobalCounterIncrement(HANDLE hSem)
Definition: thread.c:453
WORD unused[29]
Definition: crypt.c:1155
static HANDLE SHELL_GetRestrictionsCounter(VOID)
Definition: shpolicy.c:107

Referenced by IntSetShellStateSettings(), and IntSetUnderlineState().

◆ SHSimpleIDListFromPathA()

LPITEMIDLIST WINAPI SHSimpleIDListFromPathA ( LPCSTR  lpszPath)

Definition at line 1104 of file pidl.c.

1105{
1106 LPITEMIDLIST pidl = NULL;
1107 LPWSTR wPath = NULL;
1108 int len;
1109
1110 TRACE("%s\n", debugstr_a(lpszPath));
1111
1112 if (lpszPath)
1113 {
1114 len = MultiByteToWideChar(CP_ACP, 0, lpszPath, -1, NULL, 0);
1115 wPath = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
1116 MultiByteToWideChar(CP_ACP, 0, lpszPath, -1, wPath, len);
1117 }
1118
1119 _ILParsePathW(wPath, NULL, TRUE, &pidl, NULL);
1120
1121 HeapFree(GetProcessHeap(), 0, wPath);
1122 TRACE("%s %p\n", debugstr_a(lpszPath), pidl);
1123 return pidl;
1124}
static HRESULT _ILParsePathW(LPCWSTR path, LPWIN32_FIND_DATAW lpFindFile, BOOL bBindCtx, LPITEMIDLIST *ppidl, LPDWORD prgfInOut)
Definition: pidl.c:1045

Referenced by SHSimpleIDListFromPathAW().

◆ SHSimpleIDListFromPathW()

LPITEMIDLIST WINAPI SHSimpleIDListFromPathW ( LPCWSTR  lpszPath)

Definition at line 1126 of file pidl.c.

1127{
1128 LPITEMIDLIST pidl = NULL;
1129
1130 TRACE("%s\n", debugstr_w(lpszPath));
1131
1132 _ILParsePathW(lpszPath, NULL, TRUE, &pidl, NULL);
1133
1134 TRACE("%s %p\n", debugstr_w(lpszPath), pidl);
1135 return pidl;
1136}

Referenced by CShellLink::SetTargetFromPIDLOrPath(), SHChangeNotify(), and SHSimpleIDListFromPathAW().

◆ SHTestTokenPrivilegeW()

BOOL WINAPI SHTestTokenPrivilegeW ( _In_opt_ HANDLE  hToken,
_In_z_ LPCWSTR  lpName 
)

◆ SHUpdateRecycleBinIcon()

HRESULT WINAPI SHUpdateRecycleBinIcon ( void  )

Definition at line 1082 of file CRecycleBin.cpp.

1083{
1084 FIXME("stub\n");
1085
1086 // HACK! This dwItem2 should be the icon index in the system image list that has changed.
1087 // FIXME: Call SHMapPIDLToSystemImageListIndex
1088 DWORD dwItem2 = -1;
1089
1091 return S_OK;
1092}
EXTERN_C void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2)
#define SHCNE_UPDATEIMAGE
Definition: shlobj.h:1904
#define SHCNF_DWORD
Definition: shlobj.h:1923

Referenced by SHFileOperationW().

◆ SHWaitForFileToOpen()

BOOL WINAPI SHWaitForFileToOpen ( LPCITEMIDLIST  pidl,
DWORD  dwFlags,
DWORD  dwTimeout 
)

Definition at line 1971 of file shellord.c.

1975{
1976 FIXME("%p 0x%08x 0x%08x stub\n", pidl, dwFlags, dwTimeout);
1977 return FALSE;
1978}
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
Definition: wincrypt.h:6081

◆ StrRetToStrNA()

BOOL WINAPI StrRetToStrNA ( LPSTR  dest,
DWORD  len,
LPSTRRET  src,
const ITEMIDLIST pidl 
)

Definition at line 54 of file shellstring.c.

55{
56 TRACE("dest=%p len=0x%x strret=%p(%s) pidl=%p\n", dest, len, src, debugstr_strret(src), pidl);
57
58 if (!dest)
59 return FALSE;
60
61 switch (src->uType)
62 {
63 case STRRET_WSTR:
64 WideCharToMultiByte(CP_ACP, 0, src->u.pOleStr, -1, dest, len, NULL, NULL);
65 CoTaskMemFree(src->u.pOleStr);
66 break;
67 case STRRET_CSTR:
68 lstrcpynA(dest, src->u.cStr, len);
69 break;
70 case STRRET_OFFSET:
71 lstrcpynA(dest, ((LPCSTR)&pidl->mkid)+src->u.uOffset, len);
72 break;
73 default:
74 FIXME("unknown type %u!\n", src->uType);
75 if (len)
76 *dest = '\0';
77 return FALSE;
78 }
79 TRACE("-- %s\n", debugstr_a(dest) );
80 return TRUE;
81}
#define lstrcpynA
Definition: compat.h:751
#define WideCharToMultiByte
Definition: compat.h:111
GLenum src
Definition: glext.h:6340
static char * dest
Definition: rtl.c:135
static const char * debugstr_strret(STRRET *s)
Definition: shellstring.c:39
@ STRRET_CSTR
Definition: shtypes.idl:87
@ STRRET_OFFSET
Definition: shtypes.idl:86
@ STRRET_WSTR
Definition: shtypes.idl:85
SHITEMID mkid
Definition: shtypes.idl:34

Referenced by CDefView::OnNotify(), and StrRetToStrNAW().

◆ StrRetToStrNW()

BOOL WINAPI StrRetToStrNW ( LPWSTR  dest,
DWORD  len,
LPSTRRET  src,
const ITEMIDLIST pidl 
)

Definition at line 85 of file shellstring.c.

86{
87 TRACE("dest=%p len=0x%x strret=%p(%s) pidl=%p\n", dest, len, src, debugstr_strret(src), pidl);
88
89 if (!dest)
90 return FALSE;
91
92 switch (src->uType)
93 {
94 case STRRET_WSTR:
95 lstrcpynW(dest, src->u.pOleStr, len);
96 CoTaskMemFree(src->u.pOleStr);
97 break;
98 case STRRET_CSTR:
99 if (!MultiByteToWideChar(CP_ACP, 0, src->u.cStr, -1, dest, len) && len)
100 dest[len-1] = 0;
101 break;
102 case STRRET_OFFSET:
103 if (!MultiByteToWideChar(CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->u.uOffset, -1, dest, len)
104 && len)
105 dest[len-1] = 0;
106 break;
107 default:
108 FIXME("unknown type %u!\n", src->uType);
109 if (len)
110 *dest = '\0';
111 return FALSE;
112 }
113 return TRUE;
114}
#define lstrcpynW
Definition: compat.h:738

Referenced by BrFolder_GetName(), CDefView::DoColumnContextMenu(), ILGetDisplayNameExW(), CDefView::LoadColumn(), CDefView::OnNotify(), SHELL_GetPathFromIDListForExecuteW(), SHGetFileInfoW(), and StrRetToStrNAW().

◆ WinList_Init()

DWORD WINAPI WinList_Init ( void  )

Definition at line 68 of file misc.cpp.

69{
70 /* do something here (perhaps we may want to add our own implementation fo win8) */
71 return 0;
72}