[2/2] shell32: Add some more function prototypes and fix the IsNetDrive() one.

Francois Gouget fgouget at free.fr
Mon Sep 24 09:33:41 CDT 2012


---
 dlls/shell32/shlfileop.c |    4 ++--
 include/shlobj.h         |    5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shlfileop.c b/dlls/shell32/shlfileop.c
index 5fa79a9..d07c588 100644
--- a/dlls/shell32/shlfileop.c
+++ b/dlls/shell32/shlfileop.c
@@ -1708,7 +1708,7 @@ DWORD WINAPI SheChangeDirW(LPWSTR path)
 /*************************************************************************
  * IsNetDrive			[SHELL32.66]
  */
-BOOL WINAPI IsNetDrive(DWORD drive)
+int WINAPI IsNetDrive(int drive)
 {
 	char root[4];
 	strcpy(root, "A:\\");
@@ -1720,7 +1720,7 @@ BOOL WINAPI IsNetDrive(DWORD drive)
 /*************************************************************************
  * RealDriveType                [SHELL32.524]
  */
-INT WINAPI RealDriveType(INT drive, BOOL bQueryNet)
+int WINAPI RealDriveType(int drive, BOOL bQueryNet)
 {
     char root[] = "A:\\";
     root[0] += (char)drive;
diff --git a/include/shlobj.h b/include/shlobj.h
index 103a1cf..4502187 100644
--- a/include/shlobj.h
+++ b/include/shlobj.h
@@ -83,6 +83,8 @@ VOID         WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
 int          WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
 int          WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
 int          WINAPI DriveType(int);
+int          WINAPI RealDriveType(int, BOOL);
+int          WINAPI IsNetDrive(int);
 BOOL         WINAPI IsUserAnAdmin(void);
 UINT         WINAPI Shell_MergeMenus(HMENU,HMENU,UINT,UINT,UINT,ULONG);
 BOOL         WINAPI Shell_GetImageLists(HIMAGELIST*,HIMAGELIST*);
@@ -1636,10 +1638,13 @@ BOOL WINAPI WriteCabinetState(CABINETSTATE *);
 #define PRF_TRYPROGRAMEXTENSIONS 0x03
 #define PRF_FIRSTDIRDEF          0x04
 #define PRF_DONTFINDLINK         0x08
+#define PRF_REQUIREABSOLUTE      0x10
 
 VOID WINAPI PathGetShortPath(LPWSTR pszPath);
 LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
+int  WINAPI PathResolve(LPWSTR, PZPCWSTR, UINT);
 BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
+BOOL WINAPI Win32DeleteFile(LPCWSTR);
 
 /****************************************************************************
  * Drag And Drop Routines
-- 
1.7.10.4



More information about the wine-patches mailing list