mpr: The password cache functions are not supposed to be exported by any public header.
Francois Gouget
fgouget at free.fr
Thu Sep 20 14:34:35 CDT 2007
---
dlls/mpr/pwcache.c | 13 +++++++++++++
include/winnetwk.h | 19 -------------------
2 files changed, 13 insertions(+), 19 deletions(-)
diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c
index f8d3e32..69d0aec 100644
--- a/dlls/mpr/pwcache.c
+++ b/dlls/mpr/pwcache.c
@@ -30,6 +30,19 @@
WINE_DEFAULT_DEBUG_CHANNEL(mpr);
+
+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);
+
static const char mpr_key[] = "Software\\Wine\\Wine\\Mpr\\";
static inline BYTE hex( BYTE x )
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.5.2.4
More information about the wine-patches
mailing list