- actually use the background color when Clear-ing
[wine/multimedia.git] / dlls / mpr / pwcache.c
blob72f881657e231fc5b538139205efa2ecb0e85d82
1 /*
2 * MPR Password Cache functions
4 * Copyright 1999 Ulrich Weigand
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "winbase.h"
22 #include "winnetwk.h"
23 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(mpr);
27 /**************************************************************************
28 * WNetCachePassword [MPR.@] Saves password in cache
30 * NOTES
31 * only the parameter count is verifyed
33 * ---- everything below this line might be wrong (js) -----
34 * RETURNS
35 * Success: WN_SUCCESS
36 * Failure: WN_ACCESS_DENIED, WN_BAD_PASSWORD, WN_BADVALUE, WN_NET_ERROR,
37 * WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY
39 DWORD WINAPI WNetCachePassword(
40 LPSTR pbResource, /* [in] Name of workgroup, computer, or resource */
41 WORD cbResource, /* [in] Size of name */
42 LPSTR pbPassword, /* [in] Buffer containing password */
43 WORD cbPassword, /* [in] Size of password */
44 BYTE nType, /* [in] Type of password to cache */
45 WORD x)
48 FIXME( "(%p(%s), %d, %p(%s), %d, %d, 0x%08x): stub\n",
49 pbResource, debugstr_a(pbResource), cbResource,
50 pbPassword, debugstr_a(pbPassword), cbPassword,
51 nType, x );
53 return WN_SUCCESS;
56 /*****************************************************************
57 * WNetRemoveCachedPassword [MPR.@]
59 UINT WINAPI WNetRemoveCachedPassword( LPSTR pbResource, WORD cbResource,
60 BYTE nType )
62 FIXME( "(%p(%s), %d, %d): stub\n",
63 pbResource, debugstr_a(pbResource), cbResource, nType );
65 return WN_SUCCESS;
68 /*****************************************************************
69 * WNetGetCachedPassword [MPR.@] Retrieves password from cache
71 * NOTES
72 * the stub seems to be wrong:
73 * arg1: ptr 0x40xxxxxx -> (no string)
74 * arg2: len 36
75 * arg3: ptr 0x40xxxxxx -> (no string)
76 * arg4: ptr 0x40xxxxxx -> 0xc8
77 * arg5: type? 4
79 * ---- everything below this line might be wrong (js) -----
80 * RETURNS
81 * Success: WN_SUCCESS
82 * Failure: WN_ACCESS_DENIED, WN_BAD_PASSWORD, WN_BAD_VALUE,
83 * WN_NET_ERROR, WN_NOT_SUPPORTED, WN_OUT_OF_MEMORY
85 DWORD WINAPI WNetGetCachedPassword(
86 LPSTR pbResource, /* [in] Name of workgroup, computer, or resource */
87 WORD cbResource, /* [in] Size of name */
88 LPSTR pbPassword, /* [out] Buffer to receive password */
89 LPWORD pcbPassword, /* [out] Receives size of password */
90 BYTE nType) /* [in] Type of password to retrieve */
92 FIXME( "(%p(%s), %d, %p, %p, %d): stub\n",
93 pbResource, debugstr_a(pbResource), cbResource,
94 pbPassword, pcbPassword, nType );
96 SetLastError(WN_NO_NETWORK);
97 return WN_NO_NETWORK;
100 /*******************************************************************
101 * WNetEnumCachedPasswords [MPR.@]
103 * NOTES
104 * the parameter count is verifyed
106 * observed values:
107 * arg1 ptr 0x40xxxxxx -> (no string)
108 * arg2 int 32
109 * arg3 type? 4
110 * arg4 enumPasswordProc (verifyed)
111 * arg5 ptr 0x40xxxxxx -> 0x0
113 * ---- everything below this line might be wrong (js) -----
116 UINT WINAPI WNetEnumCachedPasswords( LPSTR pbPrefix, WORD cbPrefix,
117 BYTE nType, ENUMPASSWORDPROC enumPasswordProc, DWORD x)
119 FIXME( "(%p(%s), %d, %d, %p, 0x%08lx): stub\n",
120 pbPrefix, debugstr_a(pbPrefix), cbPrefix,
121 nType, enumPasswordProc, x );
123 SetLastError(WN_NO_NETWORK);
124 return WN_NO_NETWORK;