mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[SHELL32][UNDOCSHELL]
- Whitespaces fixes (tabs -> spaces); - Code formatting. svn path=/trunk/; revision=71798
This commit is contained in:
parent
61e26d8796
commit
6ed6175bfe
2 changed files with 193 additions and 179 deletions
|
@ -22,15 +22,15 @@
|
|||
|
||||
typedef struct
|
||||
{
|
||||
HWND hwndOwner ;
|
||||
HICON hIcon ;
|
||||
LPCWSTR lpstrDirectory ;
|
||||
LPCWSTR lpstrTitle ;
|
||||
LPCWSTR lpstrDescription ;
|
||||
UINT uFlags ;
|
||||
} RUNFILEDLGPARAMS ;
|
||||
HWND hwndOwner;
|
||||
HICON hIcon;
|
||||
LPCWSTR lpstrDirectory;
|
||||
LPCWSTR lpstrTitle;
|
||||
LPCWSTR lpstrDescription;
|
||||
UINT uFlags;
|
||||
} RUNFILEDLGPARAMS;
|
||||
|
||||
typedef BOOL (WINAPI * LPFNOFN) (OPENFILENAMEW *) ;
|
||||
typedef BOOL (WINAPI * LPFNOFN) (OPENFILENAMEW *);
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(shell);
|
||||
static INT_PTR CALLBACK RunDlgProc(HWND, UINT, WPARAM, LPARAM);
|
||||
|
@ -221,7 +221,7 @@ INT_PTR CALLBACK PickIconProc(HWND hwndDlg,
|
|||
}
|
||||
|
||||
BOOL WINAPI PickIconDlg(
|
||||
HWND hwndOwner,
|
||||
HWND hWndOwner,
|
||||
LPWSTR lpstrFile,
|
||||
UINT nMaxFile,
|
||||
INT* lpdwIconIndex)
|
||||
|
@ -235,7 +235,7 @@ BOOL WINAPI PickIconDlg(
|
|||
IconContext.Index = *lpdwIconIndex;
|
||||
StringCchCopyNW(IconContext.szName, _countof(IconContext.szName), lpstrFile, nMaxFile);
|
||||
|
||||
res = DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_PICK_ICON), hwndOwner, PickIconProc, (LPARAM)&IconContext);
|
||||
res = DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_PICK_ICON), hWndOwner, PickIconProc, (LPARAM)&IconContext);
|
||||
if (res)
|
||||
{
|
||||
StringCchCopyNW(lpstrFile, nMaxFile, IconContext.szName, _countof(IconContext.szName));
|
||||
|
@ -252,7 +252,7 @@ BOOL WINAPI PickIconDlg(
|
|||
* The Unicode function that is available as ordinal 61 on Windows NT/2000/XP/...
|
||||
*/
|
||||
void WINAPI RunFileDlg(
|
||||
HWND hwndOwner,
|
||||
HWND hWndOwner,
|
||||
HICON hIcon,
|
||||
LPCWSTR lpstrDirectory,
|
||||
LPCWSTR lpstrTitle,
|
||||
|
@ -262,14 +262,14 @@ void WINAPI RunFileDlg(
|
|||
TRACE("\n");
|
||||
|
||||
RUNFILEDLGPARAMS rfdp;
|
||||
rfdp.hwndOwner = hwndOwner;
|
||||
rfdp.hwndOwner = hWndOwner;
|
||||
rfdp.hIcon = hIcon;
|
||||
rfdp.lpstrDirectory = lpstrDirectory;
|
||||
rfdp.lpstrTitle = lpstrTitle;
|
||||
rfdp.lpstrDescription = lpstrDescription;
|
||||
rfdp.uFlags = uFlags;
|
||||
|
||||
DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_RUN), hwndOwner, RunDlgProc, (LPARAM)&rfdp);
|
||||
DialogBoxParamW(shell32_hInstance, MAKEINTRESOURCEW(IDD_RUN), hWndOwner, RunDlgProc, (LPARAM)&rfdp);
|
||||
}
|
||||
|
||||
|
||||
|
@ -361,7 +361,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
|||
switch (message)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
prfdp = (RUNFILEDLGPARAMS *)lParam ;
|
||||
prfdp = (RUNFILEDLGPARAMS *)lParam;
|
||||
SetWindowLongPtrW(hwnd, DWLP_USER, (LONG_PTR)prfdp);
|
||||
|
||||
if (prfdp->lpstrTitle)
|
||||
|
@ -456,7 +456,6 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
|||
{
|
||||
HMODULE hComdlg = NULL;
|
||||
LPFNOFN ofnProc = NULL;
|
||||
static const WCHAR comdlg32W[] = L"comdlg32";
|
||||
WCHAR szFName[1024] = {0};
|
||||
WCHAR filter[MAX_PATH], szCaption[MAX_PATH];
|
||||
OPENFILENAMEW ofn;
|
||||
|
@ -474,7 +473,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
|
|||
ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||
ofn.lpstrInitialDir = prfdp->lpstrDirectory;
|
||||
|
||||
if (NULL == (hComdlg = LoadLibraryExW(comdlg32W, NULL, 0)) ||
|
||||
if (NULL == (hComdlg = LoadLibraryExW(L"comdlg32", NULL, 0)) ||
|
||||
NULL == (ofnProc = (LPFNOFN)GetProcAddress(hComdlg, "GetOpenFileNameW")))
|
||||
{
|
||||
ERR("Couldn't get GetOpenFileName function entry (lib=%p, proc=%p)\n", hComdlg, ofnProc);
|
||||
|
|
|
@ -39,11 +39,11 @@ extern "C" {
|
|||
|
||||
|
||||
/****************************************************************************
|
||||
* IDList Functions
|
||||
* IDList Functions
|
||||
*/
|
||||
BOOL WINAPI ILGetDisplayName(
|
||||
LPCITEMIDLIST pidl,
|
||||
LPVOID path);
|
||||
LPCITEMIDLIST pidl,
|
||||
LPVOID path);
|
||||
|
||||
/* type parameter for ILGetDisplayNameEx() */
|
||||
#define ILGDN_FORPARSING 0
|
||||
|
@ -51,10 +51,10 @@ BOOL WINAPI ILGetDisplayName(
|
|||
#define ILGDN_INFOLDER 2
|
||||
|
||||
BOOL WINAPI ILGetDisplayNameEx(
|
||||
LPSHELLFOLDER psf,
|
||||
LPCITEMIDLIST pidl,
|
||||
LPVOID path,
|
||||
DWORD type);
|
||||
LPSHELLFOLDER psf,
|
||||
LPCITEMIDLIST pidl,
|
||||
LPVOID path,
|
||||
DWORD type);
|
||||
|
||||
LPITEMIDLIST WINAPI ILGlobalClone(LPCITEMIDLIST pidl);
|
||||
void WINAPI ILGlobalFree(LPITEMIDLIST pidl);
|
||||
|
@ -62,17 +62,17 @@ LPITEMIDLIST WINAPI SHSimpleIDListFromPathA (LPCSTR lpszPath); //FIXME
|
|||
LPITEMIDLIST WINAPI SHSimpleIDListFromPathW (LPCWSTR lpszPath);
|
||||
|
||||
HRESULT WINAPI SHILCreateFromPathA (
|
||||
LPCSTR path,
|
||||
LPITEMIDLIST * ppidl,
|
||||
DWORD *attributes);
|
||||
LPCSTR path,
|
||||
LPITEMIDLIST * ppidl,
|
||||
DWORD *attributes);
|
||||
|
||||
HRESULT WINAPI SHILCreateFromPathW (
|
||||
LPCWSTR path,
|
||||
LPITEMIDLIST * ppidl,
|
||||
DWORD *attributes);
|
||||
LPCWSTR path,
|
||||
LPITEMIDLIST * ppidl,
|
||||
DWORD *attributes);
|
||||
|
||||
/*
|
||||
string functions
|
||||
string functions
|
||||
*/
|
||||
BOOL WINAPI StrRetToStrNA(LPSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
|
||||
BOOL WINAPI StrRetToStrNW(LPWSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
|
||||
|
@ -81,10 +81,10 @@ BOOL WINAPI StrRetToStrNW(LPWSTR,DWORD,LPSTRRET,const ITEMIDLIST*);
|
|||
/****************************************************************************
|
||||
* SHChangeNotifyRegister API
|
||||
*/
|
||||
#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 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 */
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -116,39 +116,39 @@ typedef struct
|
|||
#define RF_RETRY 0x02
|
||||
|
||||
void WINAPI RunFileDlg(
|
||||
HWND hwndOwner,
|
||||
HICON hIcon,
|
||||
LPCWSTR lpstrDirectory,
|
||||
LPCWSTR lpstrTitle,
|
||||
LPCWSTR lpstrDescription,
|
||||
UINT uFlags);
|
||||
HWND hWndOwner,
|
||||
HICON hIcon,
|
||||
LPCWSTR lpstrDirectory,
|
||||
LPCWSTR lpstrTitle,
|
||||
LPCWSTR lpstrDescription,
|
||||
UINT uFlags);
|
||||
|
||||
int WINAPI LogoffWindowsDialog(HWND hwndOwner);
|
||||
void WINAPI ExitWindowsDialog(HWND hwndOwner);
|
||||
int WINAPI LogoffWindowsDialog(HWND hWndOwner);
|
||||
void WINAPI ExitWindowsDialog(HWND hWndOwner);
|
||||
|
||||
BOOL WINAPI SHFindComputer(
|
||||
LPCITEMIDLIST pidlRoot,
|
||||
LPCITEMIDLIST pidlSavedSearch);
|
||||
LPCITEMIDLIST pidlRoot,
|
||||
LPCITEMIDLIST pidlSavedSearch);
|
||||
|
||||
void WINAPI SHHandleDiskFull(HWND hwndOwner,
|
||||
UINT uDrive);
|
||||
UINT uDrive);
|
||||
|
||||
int WINAPI SHOutOfMemoryMessageBox(
|
||||
HWND hwndOwner,
|
||||
LPCSTR lpCaption,
|
||||
UINT uType);
|
||||
HWND hwndOwner,
|
||||
LPCSTR lpCaption,
|
||||
UINT uType);
|
||||
|
||||
DWORD WINAPI SHNetConnectionDialog(
|
||||
HWND hwndOwner,
|
||||
LPCWSTR lpstrRemoteName,
|
||||
DWORD dwType);
|
||||
HWND hwndOwner,
|
||||
LPCWSTR lpstrRemoteName,
|
||||
DWORD dwType);
|
||||
|
||||
/****************************************************************************
|
||||
* Cabinet Window Messages
|
||||
*/
|
||||
|
||||
#define CWM_SETPATH (WM_USER + 2)
|
||||
#define CWM_WANTIDLE (WM_USER + 3)
|
||||
#define CWM_WANTIDLE (WM_USER + 3)
|
||||
#define CWM_GETSETCURRENTINFO (WM_USER + 4)
|
||||
#define CWM_SELECTITEM (WM_USER + 5)
|
||||
#define CWM_SELECTITEMSTR (WM_USER + 6)
|
||||
|
@ -166,8 +166,8 @@ DWORD WINAPI SHNetConnectionDialog(
|
|||
/* CWM_TESTPATH structure */
|
||||
typedef struct
|
||||
{
|
||||
DWORD dwType;
|
||||
ITEMIDLIST idl;
|
||||
DWORD dwType;
|
||||
ITEMIDLIST idl;
|
||||
} CWTESTPATHSTRUCT,* LPCWTESTPATHSTRUCT;
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -175,19 +175,19 @@ typedef struct
|
|||
*/
|
||||
|
||||
int WINAPI Shell_GetCachedImageIndexA(
|
||||
LPCSTR lpszFileName,
|
||||
int nIconIndex,
|
||||
UINT bSimulateDoc);
|
||||
LPCSTR lpszFileName,
|
||||
int nIconIndex,
|
||||
UINT bSimulateDoc);
|
||||
|
||||
BOOL WINAPI Shell_GetImageLists(
|
||||
HIMAGELIST *lphimlLarge,
|
||||
HIMAGELIST *lphimlSmall);
|
||||
HIMAGELIST *lphimlLarge,
|
||||
HIMAGELIST *lphimlSmall);
|
||||
|
||||
HICON WINAPI SHGetFileIcon(
|
||||
DWORD dwReserved,
|
||||
LPCSTR lpszPath,
|
||||
DWORD dwFileAttributes,
|
||||
UINT uFlags);
|
||||
DWORD dwReserved,
|
||||
LPCSTR lpszPath,
|
||||
DWORD dwFileAttributes,
|
||||
UINT uFlags);
|
||||
|
||||
BOOL WINAPI FileIconInit(BOOL bFullInit);
|
||||
|
||||
|
@ -204,11 +204,11 @@ BOOL WINAPI FileIconInit(BOOL bFullInit);
|
|||
#define FMF_NO_COLUMN_BREAK 0x10
|
||||
|
||||
HMENU WINAPI FileMenu_Create(
|
||||
COLORREF crBorderColor,
|
||||
int nBorderWidth,
|
||||
HBITMAP hBorderBmp,
|
||||
int nSelHeight,
|
||||
UINT uFlags);
|
||||
COLORREF crBorderColor,
|
||||
int nBorderWidth,
|
||||
HBITMAP hBorderBmp,
|
||||
int nSelHeight,
|
||||
UINT uFlags);
|
||||
|
||||
void WINAPI FileMenu_Destroy(HMENU hMenu);
|
||||
|
||||
|
@ -218,12 +218,12 @@ void WINAPI FileMenu_Destroy(HMENU hMenu);
|
|||
#define FM_DEFAULT_HEIGHT 0
|
||||
|
||||
BOOL WINAPI FileMenu_AppendItem(
|
||||
HMENU hMenu,
|
||||
LPCSTR lpszText,
|
||||
UINT uID,
|
||||
int iIcon,
|
||||
HMENU hMenuPopup,
|
||||
int nItemHeight);
|
||||
HMENU hMenu,
|
||||
LPCSTR lpszText,
|
||||
UINT uID,
|
||||
int iIcon,
|
||||
HMENU hMenuPopup,
|
||||
int nItemHeight);
|
||||
|
||||
/* FileMenu_InsertUsingPidl flags */
|
||||
#define FMF_NO_EMPTY_ITEM 0x01
|
||||
|
@ -233,109 +233,109 @@ BOOL WINAPI FileMenu_AppendItem(
|
|||
typedef void (CALLBACK *LPFNFMCALLBACK)(LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidlFile);
|
||||
|
||||
int WINAPI FileMenu_InsertUsingPidl(
|
||||
HMENU hMenu,
|
||||
UINT uID,
|
||||
LPCITEMIDLIST pidl,
|
||||
UINT uFlags,
|
||||
UINT uEnumFlags,
|
||||
LPFNFMCALLBACK lpfnCallback);
|
||||
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);
|
||||
HMENU hMenu,
|
||||
UINT uID,
|
||||
LPCITEMIDLIST pidl,
|
||||
UINT uEnumFlags,
|
||||
LPFNFMCALLBACK lpfnCallback);
|
||||
|
||||
void WINAPI FileMenu_Invalidate(HMENU hMenu);
|
||||
|
||||
HMENU WINAPI FileMenu_FindSubMenuByPidl(
|
||||
HMENU hMenu,
|
||||
LPCITEMIDLIST pidl);
|
||||
HMENU hMenu,
|
||||
LPCITEMIDLIST pidl);
|
||||
|
||||
BOOL WINAPI FileMenu_TrackPopupMenuEx(
|
||||
HMENU hMenu,
|
||||
UINT uFlags,
|
||||
int x,
|
||||
int y,
|
||||
HWND hWnd,
|
||||
LPTPMPARAMS lptpm);
|
||||
HMENU hMenu,
|
||||
UINT uFlags,
|
||||
int x,
|
||||
int y,
|
||||
HWND hWnd,
|
||||
LPTPMPARAMS lptpm);
|
||||
|
||||
BOOL WINAPI FileMenu_GetLastSelectedItemPidls(
|
||||
UINT uReserved,
|
||||
LPCITEMIDLIST *ppidlFolder,
|
||||
LPCITEMIDLIST *ppidlItem);
|
||||
UINT uReserved,
|
||||
LPCITEMIDLIST *ppidlFolder,
|
||||
LPCITEMIDLIST *ppidlItem);
|
||||
|
||||
LRESULT WINAPI FileMenu_MeasureItem(
|
||||
HWND hWnd,
|
||||
LPMEASUREITEMSTRUCT lpmis);
|
||||
HWND hWnd,
|
||||
LPMEASUREITEMSTRUCT lpmis);
|
||||
|
||||
LRESULT WINAPI FileMenu_DrawItem(
|
||||
HWND hWnd,
|
||||
LPDRAWITEMSTRUCT lpdis);
|
||||
HWND hWnd,
|
||||
LPDRAWITEMSTRUCT lpdis);
|
||||
|
||||
BOOL WINAPI FileMenu_InitMenuPopup(HMENU hMenu);
|
||||
|
||||
void WINAPI FileMenu_AbortInitMenu(void);
|
||||
|
||||
LRESULT WINAPI FileMenu_HandleMenuChar(
|
||||
HMENU hMenu,
|
||||
WPARAM wParam);
|
||||
HMENU hMenu,
|
||||
WPARAM wParam);
|
||||
|
||||
BOOL WINAPI FileMenu_DeleteAllItems(HMENU hMenu);
|
||||
|
||||
BOOL WINAPI FileMenu_DeleteItemByCmd(
|
||||
HMENU hMenu,
|
||||
UINT uID);
|
||||
HMENU hMenu,
|
||||
UINT uID);
|
||||
|
||||
BOOL WINAPI FileMenu_DeleteItemByIndex(
|
||||
HMENU hMenu,
|
||||
UINT uPos);
|
||||
HMENU hMenu,
|
||||
UINT uPos);
|
||||
|
||||
BOOL WINAPI FileMenu_DeleteMenuItemByFirstID(
|
||||
HMENU hMenu,
|
||||
UINT uID);
|
||||
HMENU hMenu,
|
||||
UINT uID);
|
||||
|
||||
BOOL WINAPI FileMenu_DeleteSeparator(HMENU hMenu);
|
||||
|
||||
BOOL WINAPI FileMenu_EnableItemByCmd(
|
||||
HMENU hMenu,
|
||||
UINT uID,
|
||||
BOOL bEnable);
|
||||
HMENU hMenu,
|
||||
UINT uID,
|
||||
BOOL bEnable);
|
||||
|
||||
DWORD WINAPI FileMenu_GetItemExtent(
|
||||
HMENU hMenu,
|
||||
UINT uPos);
|
||||
HMENU hMenu,
|
||||
UINT uPos);
|
||||
|
||||
int WINAPI FileMenu_AppendFilesForPidl(
|
||||
HMENU hMenu,
|
||||
LPCITEMIDLIST pidl,
|
||||
BOOL bAddSeparator);
|
||||
HMENU hMenu,
|
||||
LPCITEMIDLIST pidl,
|
||||
BOOL bAddSeparator);
|
||||
|
||||
int WINAPI FileMenu_AddFilesForPidl(
|
||||
HMENU hMenu,
|
||||
UINT uReserved,
|
||||
UINT uID,
|
||||
LPCITEMIDLIST pidl,
|
||||
UINT uFlags,
|
||||
UINT uEnumFlags,
|
||||
LPFNFMCALLBACK lpfnCallback);
|
||||
HMENU hMenu,
|
||||
UINT uReserved,
|
||||
UINT uID,
|
||||
LPCITEMIDLIST pidl,
|
||||
UINT uFlags,
|
||||
UINT uEnumFlags,
|
||||
LPFNFMCALLBACK lpfnCallback);
|
||||
|
||||
/****************************************************************************
|
||||
* Drag And Drop Routines
|
||||
*/
|
||||
|
||||
HRESULT WINAPI SHRegisterDragDrop(
|
||||
HWND hWnd,
|
||||
LPDROPTARGET lpDropTarget);
|
||||
HWND hWnd,
|
||||
LPDROPTARGET lpDropTarget);
|
||||
|
||||
HRESULT WINAPI SHRevokeDragDrop(HWND hWnd);
|
||||
|
||||
BOOL WINAPI DAD_DragEnter(HWND hWnd);
|
||||
|
||||
BOOL WINAPI DAD_SetDragImageFromListView(
|
||||
HWND hWnd,
|
||||
POINT pt);
|
||||
HWND hWnd,
|
||||
POINT pt);
|
||||
|
||||
BOOL WINAPI DAD_ShowDragImage(BOOL bShow);
|
||||
|
||||
|
@ -382,17 +382,17 @@ 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);
|
||||
LPVOID lpszBuffer,
|
||||
DWORD dwBuffSize,
|
||||
LPCVOID lpszShortName,
|
||||
LPCVOID lpszLongName,
|
||||
LPCVOID lpszPathName);
|
||||
|
||||
BOOL WINAPI PathYetAnotherMakeUniqueName(
|
||||
LPWSTR lpszBuffer,
|
||||
LPCWSTR lpszPathName,
|
||||
LPCWSTR lpszShortName,
|
||||
LPCWSTR lpszLongName);
|
||||
LPWSTR lpszBuffer,
|
||||
LPCWSTR lpszPathName,
|
||||
LPCWSTR lpszShortName,
|
||||
LPCWSTR lpszLongName);
|
||||
|
||||
BOOL WINAPI PathQualifyAW(LPCVOID path);
|
||||
|
||||
|
@ -415,7 +415,7 @@ VOID WINAPI PathSetDlgItemPathAW(HWND hDlg, int nIDDlgItem, LPCVOID lpszPath);
|
|||
#define PPCF_PATHISRELATIVE 0x40
|
||||
|
||||
HRESULT WINAPI PathProcessCommandAW(LPCVOID lpszPath, LPVOID lpszBuff,
|
||||
DWORD dwBuffSize, DWORD dwFlags);
|
||||
DWORD dwBuffSize, DWORD dwFlags);
|
||||
|
||||
void WINAPI PathStripPathAW(LPVOID lpszPath);
|
||||
|
||||
|
@ -431,6 +431,21 @@ BOOL WINAPI PathIsSameRootAW(LPCVOID lpszPath1, LPCVOID lpszPath2);
|
|||
|
||||
BOOL WINAPI PathFindOnPathAW(LPVOID sFile, LPCVOID *sOtherDirs);
|
||||
|
||||
/****************************************************************************
|
||||
* Shell File Operations error codes
|
||||
*/
|
||||
|
||||
/* Error codes could be pre-Win32 */
|
||||
#define DE_SAMEFILE 0x71
|
||||
#define DE_MANYSRC1DEST 0x72
|
||||
#define DE_DIFFDIR 0x73
|
||||
#define DE_OPCANCELLED 0x75
|
||||
#define DE_DESTSUBTREE 0x76
|
||||
#define DE_INVALIDFILES 0x7C
|
||||
#define DE_DESTSAMETREE 0x7D
|
||||
#define DE_FLDDESTISFILE 0x7E
|
||||
#define DE_FILEDESTISFLD 0x80
|
||||
|
||||
/****************************************************************************
|
||||
* Shell Namespace Routines
|
||||
*/
|
||||
|
@ -487,16 +502,16 @@ typedef struct
|
|||
#define SHWFF_WAIT 0x04
|
||||
|
||||
BOOL WINAPI SHWaitForFileToOpen(
|
||||
LPCITEMIDLIST pidl,
|
||||
DWORD dwFlags,
|
||||
DWORD dwTimeout);
|
||||
LPCITEMIDLIST pidl,
|
||||
DWORD dwFlags,
|
||||
DWORD dwTimeout);
|
||||
|
||||
WORD WINAPI ArrangeWindows(
|
||||
HWND hwndParent,
|
||||
DWORD dwReserved,
|
||||
LPCRECT lpRect,
|
||||
WORD cKids,
|
||||
CONST HWND * lpKids);
|
||||
HWND hwndParent,
|
||||
DWORD dwReserved,
|
||||
LPCRECT lpRect,
|
||||
WORD cKids,
|
||||
CONST HWND * lpKids);
|
||||
|
||||
/* RegisterShellHook types */
|
||||
#define RSH_DEREGISTER 0
|
||||
|
@ -505,21 +520,21 @@ WORD WINAPI ArrangeWindows(
|
|||
#define RSH_REGISTER_TASKMAN 3
|
||||
|
||||
BOOL WINAPI RegisterShellHook(
|
||||
HWND hWnd,
|
||||
DWORD dwType);
|
||||
HWND hWnd,
|
||||
DWORD dwType);
|
||||
|
||||
/* SHCreateDefClassObject callback function */
|
||||
typedef HRESULT (CALLBACK *LPFNCDCOCALLBACK)(
|
||||
LPUNKNOWN pUnkOuter,
|
||||
REFIID riidObject,
|
||||
LPVOID *ppvObject);
|
||||
LPUNKNOWN pUnkOuter,
|
||||
REFIID riidObject,
|
||||
LPVOID *ppvObject);
|
||||
|
||||
HRESULT WINAPI SHCreateDefClassObject(
|
||||
REFIID riidFactory,
|
||||
LPVOID *ppvFactory,
|
||||
LPFNCDCOCALLBACK lpfnCallback,
|
||||
LPDWORD lpdwUsage,
|
||||
REFIID riidObject);
|
||||
REFIID riidFactory,
|
||||
LPVOID *ppvFactory,
|
||||
LPFNCDCOCALLBACK lpfnCallback,
|
||||
LPDWORD lpdwUsage,
|
||||
REFIID riidObject);
|
||||
|
||||
void WINAPI SHFreeUnusedLibraries(void);
|
||||
|
||||
|
@ -528,11 +543,11 @@ void WINAPI SHFreeUnusedLibraries(void);
|
|||
#define SHCLF_CREATEONDESKTOP 0x02
|
||||
|
||||
HRESULT WINAPI SHCreateLinks(
|
||||
HWND hWnd,
|
||||
LPCSTR lpszDir,
|
||||
LPDATAOBJECT lpDataObject,
|
||||
UINT uFlags,
|
||||
LPITEMIDLIST *lppidlLinks);
|
||||
HWND hWnd,
|
||||
LPCSTR lpszDir,
|
||||
LPDATAOBJECT lpDataObject,
|
||||
UINT uFlags,
|
||||
LPITEMIDLIST *lppidlLinks);
|
||||
|
||||
DWORD WINAPI CheckEscapesA(LPSTR string, DWORD len);
|
||||
DWORD WINAPI CheckEscapesW(LPWSTR string, DWORD len);
|
||||
|
@ -540,7 +555,7 @@ DWORD WINAPI CheckEscapesW(LPWSTR string, DWORD len);
|
|||
/* policy functions */
|
||||
BOOL WINAPI SHInitRestricted(LPCVOID unused, LPCVOID inpRegKey);
|
||||
|
||||
#define CSIDL_FOLDER_MASK 0x00ff
|
||||
#define CSIDL_FOLDER_MASK 0x00ff
|
||||
|
||||
/* Utility functions */
|
||||
#include <stdio.h>
|
||||
|
@ -693,34 +708,34 @@ void DumpIdList(LPCITEMIDLIST pcidl)
|
|||
* Shell32 resources
|
||||
*/
|
||||
// these resources are in shell32.dll
|
||||
#define IDB_GOBUTTON_NORMAL 0x0e6
|
||||
#define IDB_GOBUTTON_HOT 0x0e7
|
||||
#define IDB_GOBUTTON_NORMAL 0x0e6
|
||||
#define IDB_GOBUTTON_HOT 0x0e7
|
||||
|
||||
// band ids in internet toolbar
|
||||
#define ITBBID_MENUBAND 1
|
||||
#define ITBBID_BRANDBAND 5
|
||||
#define ITBBID_TOOLSBAND 2
|
||||
#define ITBBID_ADDRESSBAND 4
|
||||
#define ITBBID_MENUBAND 1
|
||||
#define ITBBID_BRANDBAND 5
|
||||
#define ITBBID_TOOLSBAND 2
|
||||
#define ITBBID_ADDRESSBAND 4
|
||||
|
||||
// commands in the CGID_PrivCITCommands command group handled by the internet toolbar
|
||||
// there seems to be some support for hiding the menubar and an auto hide feature that are
|
||||
// unavailable in the UI
|
||||
#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 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
|
||||
|
||||
// commands in the CGID_BrandCmdGroup command group handled by the brand band
|
||||
#define BBID_STARTANIMATION 1
|
||||
#define BBID_STOPANIMATION 2
|
||||
#define BBID_STARTANIMATION 1
|
||||
#define BBID_STOPANIMATION 2
|
||||
|
||||
// undocumented flags for IShellMenu::SetShellFolder
|
||||
#define SMSET_UNKNOWN08 0x08
|
||||
#define SMSET_UNKNOWN10 0x10
|
||||
#define SMSET_UNKNOWN08 0x08
|
||||
#define SMSET_UNKNOWN10 0x10
|
||||
|
||||
void WINAPI ShellDDEInit(BOOL bInit);
|
||||
DWORD WINAPI WinList_Init(void);
|
||||
|
|
Loading…
Reference in a new issue