mpr: The password cache functions and structures are not meant to be declared in winnetwk.h.

Francois Gouget fgouget at free.fr
Mon Jun 15 12:50:12 CDT 2009


---
 dlls/mpr/pwcache.c |   14 ++++++++++++++
 include/winnetwk.h |   19 -------------------
 2 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c
index 0ed65b6..f4e3e31 100644
--- a/dlls/mpr/pwcache.c
+++ b/dlls/mpr/pwcache.c
@@ -217,6 +217,20 @@ DWORD WINAPI WNetGetCachedPassword(
     return r;
 }
 
+/* WNetEnumCachedPasswords */
+typedef struct tagPASSWORD_CACHE_ENTRY
+{
+	WORD cbEntry;
+	WORD cbResource;
+	WORD cbPassword;
+	BYTE iEntry;
+	BYTE nType;
+	BYTE abResource[1];
+} PASSWORD_CACHE_ENTRY;
+
+typedef BOOL (CALLBACK *ENUMPASSWORDPROC)(PASSWORD_CACHE_ENTRY *, DWORD);
+UINT WINAPI WNetEnumCachedPasswords( LPSTR, WORD, BYTE, ENUMPASSWORDPROC, DWORD);
+
 /*******************************************************************
  * WNetEnumCachedPasswords [MPR.@]
  *
diff --git a/include/winnetwk.h b/include/winnetwk.h
index b69c0eb..766696f 100644
--- a/include/winnetwk.h
+++ b/include/winnetwk.h
@@ -385,25 +385,6 @@ DWORD WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD);
 DWORD WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD);
 #define      MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText)
 
-/*
- * Password cache
- */
-
-/* WNetEnumCachedPasswords */
-typedef struct tagPASSWORD_CACHE_ENTRY
-{
-	WORD cbEntry;
-	WORD cbResource;
-	WORD cbPassword;
-	BYTE iEntry;
-	BYTE nType;
-	BYTE abResource[1];
-} PASSWORD_CACHE_ENTRY;
-
-typedef BOOL (CALLBACK *ENUMPASSWORDPROC)(PASSWORD_CACHE_ENTRY *, DWORD);
-UINT WINAPI WNetEnumCachedPasswords( LPSTR, WORD, BYTE, ENUMPASSWORDPROC, DWORD);
-DWORD WINAPI WNetGetCachedPassword( LPSTR, WORD, LPSTR, LPWORD, BYTE );
-DWORD WINAPI WNetCachePassword( LPSTR, WORD, LPSTR, WORD, BYTE, WORD );
 
 #ifdef __cplusplus
 }
-- 
1.6.3.1



More information about the wine-patches mailing list