Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
582732e4
Commit
582732e4
authored
Nov 23, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Nov 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected wrong parameter counts for WNetCachePassword and
WNetEnumCachedPasswords.
parent
c7071c03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
13 deletions
+61
-13
mpr.spec
dlls/mpr/mpr.spec
+2
-2
pwcache.c
dlls/mpr/pwcache.c
+42
-11
winnetwk.h
include/winnetwk.h
+17
-0
No files found.
dlls/mpr/mpr.spec
View file @
582732e4
...
...
@@ -53,7 +53,7 @@ type win32
0050 stdcall WNetAddConnection3W(long ptr wstr wstr long) WNetAddConnection3W
0051 stdcall WNetAddConnectionA(str str str) WNetAddConnectionA
0052 stdcall WNetAddConnectionW(wstr wstr wstr) WNetAddConnectionW
0053 stdcall WNetCachePassword(str long str long long) WNetCachePassword
0053 stdcall WNetCachePassword(str long str long long
long
) WNetCachePassword
0054 stdcall WNetCancelConnection2A(str long long) WNetCancelConnection2A
0055 stdcall WNetCancelConnection2W(wstr long long) WNetCancelConnection2W
0056 stdcall WNetCancelConnectionA(str long) WNetCancelConnectionA
...
...
@@ -65,7 +65,7 @@ type win32
0062 stdcall WNetDisconnectDialog1A(ptr) WNetDisconnectDialog1A
0063 stdcall WNetDisconnectDialog1W(ptr) WNetDisconnectDialog1W
0064 stdcall WNetDisconnectDialog(long long) WNetDisconnectDialog
0065 stdcall WNetEnumCachedPasswords(str long long ptr) WNetEnumCachedPasswords
0065 stdcall WNetEnumCachedPasswords(str long long ptr
long
) WNetEnumCachedPasswords
0066 stdcall WNetEnumResourceA(long ptr ptr ptr) WNetEnumResourceA
0067 stdcall WNetEnumResourceW(long ptr ptr ptr) WNetEnumResourceW
0068 stub WNetFormatNetworkNameA
...
...
dlls/mpr/pwcache.c
View file @
582732e4
...
...
@@ -8,10 +8,13 @@
DEFAULT_DEBUG_CHANNEL
(
mpr
)
/**************************************************************************
* WNetCachePassword [MPR.52] Saves password in cache
*
* NOTES
* only the parameter count is verifyed
*
* ---- everything below this line might be wrong (js) -----
* RETURNS
* Success: WN_SUCCESS
* Failure: WN_ACCESS_DENIED, WN_BAD_PASSWORD, WN_BADVALUE, WN_NET_ERROR,
...
...
@@ -22,10 +25,14 @@ DWORD WINAPI WNetCachePassword(
WORD
cbResource
,
/* [in] Size of name */
LPSTR
pbPassword
,
/* [in] Buffer containing password */
WORD
cbPassword
,
/* [in] Size of password */
BYTE
nType
)
/* [in] Type of password to cache */
BYTE
nType
,
/* [in] Type of password to cache */
WORD
x
)
{
FIXME
(
"(%s, %d, %p, %d, %d): stub
\n
"
,
debugstr_a
(
pbResource
),
cbResource
,
pbPassword
,
cbPassword
,
nType
);
FIXME
(
"(%p(%s), %d, %p(%s), %d, %d, 0x%08x): stub
\n
"
,
pbResource
,
debugstr_a
(
pbResource
),
cbResource
,
pbPassword
,
debugstr_a
(
pbPassword
),
cbPassword
,
nType
,
x
);
return
WN_SUCCESS
;
}
...
...
@@ -36,8 +43,8 @@ DWORD WINAPI WNetCachePassword(
UINT
WINAPI
WNetRemoveCachedPassword
(
LPSTR
pbResource
,
WORD
cbResource
,
BYTE
nType
)
{
FIXME
(
"(%
s
, %d, %d): stub
\n
"
,
debugstr_a
(
pbResource
),
cbResource
,
nType
);
FIXME
(
"(%
p(%s)
, %d, %d): stub
\n
"
,
pbResource
,
debugstr_a
(
pbResource
),
cbResource
,
nType
);
return
WN_SUCCESS
;
}
...
...
@@ -45,6 +52,15 @@ UINT WINAPI WNetRemoveCachedPassword( LPSTR pbResource, WORD cbResource,
/*****************************************************************
* WNetGetCachedPassword [MPR.69] Retrieves password from cache
*
* NOTES
* the stub seems to be wrong:
* arg1: ptr 0x40xxxxxx -> (no string)
* arg2: len 36
* arg3: ptr 0x40xxxxxx -> (no string)
* arg4: ptr 0x40xxxxxx -> 0xc8
* arg5: type? 4
*
* ---- everything below this line might be wrong (js) -----
* RETURNS
* Success: WN_SUCCESS
* Failure: WN_ACCESS_DENIED, WN_BAD_PASSWORD, WN_BAD_VALUE,
...
...
@@ -57,8 +73,9 @@ DWORD WINAPI WNetGetCachedPassword(
LPWORD
pcbPassword
,
/* [out] Receives size of password */
BYTE
nType
)
/* [in] Type of password to retrieve */
{
FIXME
(
"(%s, %d, %p, %p, %d): stub
\n
"
,
debugstr_a
(
pbResource
),
cbResource
,
pbPassword
,
pcbPassword
,
nType
);
FIXME
(
"(%p(%s), %d, %p, %p, %d): stub
\n
"
,
pbResource
,
debugstr_a
(
pbResource
),
cbResource
,
pbPassword
,
pcbPassword
,
nType
);
SetLastError
(
WN_NO_NETWORK
);
return
WN_NO_NETWORK
;
...
...
@@ -66,12 +83,26 @@ DWORD WINAPI WNetGetCachedPassword(
/*******************************************************************
* WNetEnumCachedPasswords [MPR.61]
*
* NOTES
* the parameter count is verifyed
*
* observed values:
* arg1 ptr 0x40xxxxxx -> (no string)
* arg2 int 32
* arg3 type? 4
* arg4 enumPasswordProc (verifyed)
* arg5 ptr 0x40xxxxxx -> 0x0
*
* ---- everything below this line might be wrong (js) -----
*/
UINT
WINAPI
WNetEnumCachedPasswords
(
LPSTR
pbPrefix
,
WORD
cbPrefix
,
BYTE
nType
,
FARPROC
enumPasswordProc
)
BYTE
nType
,
ENUMPASSWORDPROC
enumPasswordProc
,
DWORD
x
)
{
FIXME
(
"(%p, %d, %d, %p): stub
\n
"
,
pbPrefix
,
cbPrefix
,
nType
,
enumPasswordProc
);
FIXME
(
"(%p(%s), %d, %d, %p, 0x%08lx): stub
\n
"
,
pbPrefix
,
debugstr_a
(
pbPrefix
),
cbPrefix
,
nType
,
enumPasswordProc
,
x
);
SetLastError
(
WN_NO_NETWORK
);
return
WN_NO_NETWORK
;
...
...
include/winnetwk.h
View file @
582732e4
...
...
@@ -353,5 +353,22 @@ 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
);
#endif
/* _WINNETWK_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment