Reference

WNetGetCachedPassword(3w)

NAME

WNetGetCachedPassword (MPR.@)

SYNOPSIS

DWORD WNetGetCachedPassword
(
LPSTR pbResource,
WORD cbResource,
LPSTR pbPassword,
LPWORD pcbPassword,
BYTE nType
)

PARAMS

pbResource [In] Name of workgroup,computer,or resource.

cbResource [In] Size of name.

pbPassword [Out] Buffer to receive password.

pcbPassword [Out] Receives size of password.

nType [In] Type of password to retrieve.

DESCRIPTION

WNetGetCachedPassword [MPR.@] Retrieves password from cache.

NOTES

the stub seems to be wrong: arg1: pointer 0x40xxxxxx -> (no string) arg2: len 36 arg3: pointer 0x40xxxxxx -> (no string) arg4: pointer 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, WN_NET_ERROR, WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY

IMPLEMENTATION

Declared in "winnetwk.h".

Implemented in "dlls/mpr/pwcache.c".

Debug channel "mpr".

History