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