2 * MPR Password Cache functions
7 #include "debugtools.h"
9 DEFAULT_DEBUG_CHANNEL(mpr)
12 /**************************************************************************
13 * WNetCachePassword [MPR.52] Saves password in cache
17 * Failure: WN_ACCESS_DENIED, WN_BAD_PASSWORD, WN_BADVALUE, WN_NET_ERROR,
18 * WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY
20 DWORD WINAPI WNetCachePassword(
21 LPSTR pbResource, /* [in] Name of workgroup, computer, or resource */
22 WORD cbResource, /* [in] Size of name */
23 LPSTR pbPassword, /* [in] Buffer containing password */
24 WORD cbPassword, /* [in] Size of password */
25 BYTE nType) /* [in] Type of password to cache */
27 FIXME( "(%s, %d, %p, %d, %d): stub\n",
28 debugstr_a(pbResource), cbResource, pbPassword, cbPassword, nType );
33 /*****************************************************************
34 * WNetRemoveCachedPassword [MPR.95]
36 UINT WINAPI WNetRemoveCachedPassword( LPSTR pbResource, WORD cbResource,
39 FIXME( "(%s, %d, %d): stub\n",
40 debugstr_a(pbResource), cbResource, nType );
45 /*****************************************************************
46 * WNetGetCachedPassword [MPR.69] Retrieves password from cache
50 * Failure: WN_ACCESS_DENIED, WN_BAD_PASSWORD, WN_BAD_VALUE,
51 * WN_NET_ERROR, WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY
53 DWORD WINAPI WNetGetCachedPassword(
54 LPSTR pbResource, /* [in] Name of workgroup, computer, or resource */
55 WORD cbResource, /* [in] Size of name */
56 LPSTR pbPassword, /* [out] Buffer to receive password */
57 LPWORD pcbPassword, /* [out] Receives size of password */
58 BYTE nType) /* [in] Type of password to retrieve */
60 FIXME( "(%s, %d, %p, %p, %d): stub\n",
61 debugstr_a(pbResource), cbResource, pbPassword, pcbPassword, nType );
63 SetLastError(WN_NO_NETWORK);
67 /*******************************************************************
68 * WNetEnumCachedPasswords [MPR.61]
70 UINT WINAPI WNetEnumCachedPasswords( LPSTR pbPrefix, WORD cbPrefix,
71 BYTE nType, FARPROC enumPasswordProc )
73 FIXME( "(%p, %d, %d, %p): stub\n",
74 pbPrefix, cbPrefix, nType, enumPasswordProc );
76 SetLastError(WN_NO_NETWORK);