Release 950109
[wine.git] / misc / network.c
blob7ccc9013bbc6705f088d05dba42ce873f6ff82d4
1 /*
2 * Network functions
3 */
5 #include "stdio.h"
6 #include "windows.h"
7 #include "win.h"
8 #include "user.h"
10 #define WN_SUCCESS 0x0000
11 #define WN_NOT_SUPPORTED 0x0001
12 #define WN_NET_ERROR 0x0002
13 #define WN_MORE_DATA 0x0003
14 #define WN_BAD_POINTER 0x0004
15 #define WN_BAD_VALUE 0x0005
16 #define WN_BAD_PASSWORD 0x0006
17 #define WN_ACCESS_DENIED 0x0007
18 #define WN_FUNCTION_BUSY 0x0008
19 #define WN_WINDOWS_ERROR 0x0009
20 #define WN_BAD_USER 0x000A
21 #define WN_OUT_OF_MEMORY 0x000B
22 #define WN_CANCEL 0x000C
23 #define WN_CONTINUE 0x000D
24 #define WN_NOT_CONNECTED 0x0030
25 #define WN_OPEN_FILES 0x0031
26 #define WN_BAD_NETNAME 0x0032
27 #define WN_BAD_LOCALNAME 0x0033
28 #define WN_ALREADY_CONNECTED 0x0034
29 #define WN_DEVICE_ERROR 0x0035
30 #define WN_CONNECTION_CLOSED 0x0036
32 typedef LPSTR LPNETRESOURCE;
34 /**************************************************************************
35 * WNetGetConnection [USER.512]
37 int WNetGetConnection(LPSTR lpLocalName,
38 LPSTR lpRemoteName, UINT FAR *cbRemoteName)
40 printf("EMPTY STUB !!! WNetGetConnection('%s', %p, %p);\n",
41 lpLocalName, lpRemoteName, cbRemoteName);
42 return WN_NET_ERROR;
45 /**************************************************************************
46 * WNetGetCaps [USER.513]
48 int WNetGetCaps(WORD capability)
50 return 0;
53 /**************************************************************************
54 * WNetGetUser [USER.516]
56 UINT WNetGetUser(LPSTR lpLocalName, LPSTR lpUserName, DWORD *lpSize)
58 printf("EMPTY STUB !!! WNetGetUser('%s', %p, %p);\n",
59 lpLocalName, lpUserName, lpSize);
60 return WN_NET_ERROR;
63 /**************************************************************************
64 * WNetAddConnection [USER.517]
66 UINT WNetAddConnection(LPSTR lpNetPath, LPSTR lpPassWord, LPSTR lpLocalName)
68 printf("EMPTY STUB !!! WNetAddConnection('%s', %p, '%s');\n",
69 lpNetPath, lpPassWord, lpLocalName);
70 return WN_NET_ERROR;
74 /**************************************************************************
75 * WNetCancelConnection [USER.518]
77 UINT WNetCancelConnection(LPSTR lpName, BOOL bForce)
79 printf("EMPTY STUB !!! WNetCancelConnection('%s', %04X);\n",
80 lpName, bForce);
81 return WN_NET_ERROR;
84 /**************************************************************************
85 * WNetAddConnection2 [USER.???]
87 UINT WNetAddConnection2(LPSTR lpNetPath, LPSTR lpPassWord,
88 LPSTR lpLocalName, LPSTR lpUserName)
90 printf("EMPTY STUB !!! WNetAddConnection2('%s', %p, '%s', '%s');\n",
91 lpNetPath, lpPassWord, lpLocalName, lpUserName);
92 return WN_NET_ERROR;
95 /**************************************************************************
96 * WNetCloseEnum [USER.???]
98 UINT WNetCloseEnum(HANDLE hEnum)
100 printf("EMPTY STUB !!! WNetCloseEnum(%04X);\n", hEnum);
101 return WN_NET_ERROR;
104 /**************************************************************************
105 * WNetEnumResource [USER.???]
107 UINT WNetEnumResource(HANDLE hEnum, DWORD cRequ,
108 DWORD *lpCount, LPVOID lpBuf)
110 printf("EMPTY STUB !!! WNetEnumResource(%04X, %08lX, %p, %p);\n",
111 hEnum, cRequ, lpCount, lpBuf);
112 return WN_NET_ERROR;
115 /**************************************************************************
116 * WNetOpenEnum [USER.???]
118 UINT WNetOpenEnum(DWORD dwScope, DWORD dwType,
119 LPNETRESOURCE lpNet, HANDLE FAR *lphEnum)
121 printf("EMPTY STUB !!! WNetOpenEnum(%08lX, %08lX, %p, %p);\n",
122 dwScope, dwType, lpNet, lphEnum);
123 return WN_NET_ERROR;