Dmitry Timoshkov : include: Add some API prototypes to appropriate header files, fix some prototypes.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 28 06:41:57 CDT 2007


Module: wine
Branch: master
Commit: 674ce99320223f8737c2646b56227b7b0ea32c19
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=674ce99320223f8737c2646b56227b7b0ea32c19

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Wed Mar 28 15:51:46 2007 +0900

include: Add some API prototypes to appropriate header files, fix some prototypes.

---

 dlls/mpr/wnet.c         |    4 ++--
 dlls/shell32/shellord.c |    2 +-
 include/shlobj.h        |    1 +
 include/winnetwk.h      |    6 ++++++
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
index 79ddd22..8999b74 100644
--- a/dlls/mpr/wnet.c
+++ b/dlls/mpr/wnet.c
@@ -1489,7 +1489,7 @@ DWORD WINAPI WNetCancelConnection2W( LPCWSTR lpName, DWORD dwFlags, BOOL fForce
 /*****************************************************************
  *  WNetRestoreConnectionA [MPR.@]
  */
-DWORD WINAPI WNetRestoreConnectionA( HWND hwndOwner, LPSTR lpszDevice )
+DWORD WINAPI WNetRestoreConnectionA( HWND hwndOwner, LPCSTR lpszDevice )
 {
     FIXME( "(%p, %s), stub\n", hwndOwner, debugstr_a(lpszDevice) );
 
@@ -1500,7 +1500,7 @@ DWORD WINAPI WNetRestoreConnectionA( HWND hwndOwner, LPSTR lpszDevice )
 /*****************************************************************
  *  WNetRestoreConnectionW [MPR.@]
  */
-DWORD WINAPI WNetRestoreConnectionW( HWND hwndOwner, LPWSTR lpszDevice )
+DWORD WINAPI WNetRestoreConnectionW( HWND hwndOwner, LPCWSTR lpszDevice )
 {
     FIXME( "(%p, %s), stub\n", hwndOwner, debugstr_w(lpszDevice) );
 
diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c
index 4719c77..f2f72dc 100644
--- a/dlls/shell32/shellord.c
+++ b/dlls/shell32/shellord.c
@@ -1063,7 +1063,7 @@ VOID WINAPI SHSetInstanceExplorer (LPUNKNOWN lpUnknown)
  * NOTES
  *  gets the interface pointer of the explorer and a reference
  */
-HRESULT WINAPI SHGetInstanceExplorer (LPUNKNOWN * lpUnknown)
+HRESULT WINAPI SHGetInstanceExplorer (IUnknown **lpUnknown)
 {	TRACE("%p\n", lpUnknown);
 
 	*lpUnknown = SHELL32_IExplorerInterface;
diff --git a/include/shlobj.h b/include/shlobj.h
index d92e4cb..84d7845 100644
--- a/include/shlobj.h
+++ b/include/shlobj.h
@@ -52,6 +52,7 @@ BOOL         WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
 DWORD        WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
 void         WINAPI SHFree(LPVOID);
 BOOL         WINAPI GetFileNameFromBrowse(HWND,LPSTR,DWORD,LPCSTR,LPCSTR,LPCSTR,LPCSTR);
+HRESULT      WINAPI SHGetInstanceExplorer(IUnknown**);
 BOOL         WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
 BOOL         WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
 #define             SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
diff --git a/include/winnetwk.h b/include/winnetwk.h
index 4b6a27f..e0b8ab8 100644
--- a/include/winnetwk.h
+++ b/include/winnetwk.h
@@ -142,6 +142,12 @@ DWORD WINAPI WNetCancelConnection2W(LPCWSTR,DWORD,BOOL);
 DWORD WINAPI WNetGetConnectionA(LPCSTR,LPSTR,LPDWORD);
 DWORD WINAPI WNetGetConnectionW(LPCWSTR,LPWSTR,LPDWORD);
 #define      WNetGetConnection WINELIB_NAME_AW(WNetGetConnection)
+DWORD WINAPI WNetGetLastErrorA(LPDWORD,LPSTR,DWORD,LPSTR,DWORD);
+DWORD WINAPI WNetGetLastErrorW(LPDWORD,LPWSTR,DWORD,LPWSTR,DWORD);
+#define      WNetGetLastError WINELIB_NAME_AW(WNetGetLastError)
+DWORD WINAPI WNetRestoreConnectionA(HWND,LPCSTR);
+DWORD WINAPI WNetRestoreConnectionW(HWND,LPCWSTR);
+#define      WNetRestoreConnection WINELIB_NAME_AW(WNetRestoreConnection)
 DWORD WINAPI WNetUseConnectionA(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD,LPSTR,LPDWORD,LPDWORD);
 DWORD WINAPI WNetUseConnectionW(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPDWORD,LPDWORD);
 #define      WNetUseConnection WINELIB_NAME_AW(WNetUseConnection)




More information about the wine-cvs mailing list