Release 950202
[wine.git] / misc / network.c
blobb662d99680131d90e81f296b482c3f7c01c2b4af
1 /*
2 * Network functions
3 */
5 #include "stdio.h"
6 #include "windows.h"
7 #include "user.h"
9 #define WN_SUCCESS 0x0000
10 #define WN_NOT_SUPPORTED 0x0001
11 #define WN_NET_ERROR 0x0002
12 #define WN_MORE_DATA 0x0003
13 #define WN_BAD_POINTER 0x0004
14 #define WN_BAD_VALUE 0x0005
15 #define WN_BAD_PASSWORD 0x0006
16 #define WN_ACCESS_DENIED 0x0007
17 #define WN_FUNCTION_BUSY 0x0008
18 #define WN_WINDOWS_ERROR 0x0009
19 #define WN_BAD_USER 0x000A
20 #define WN_OUT_OF_MEMORY 0x000B
21 #define WN_CANCEL 0x000C
22 #define WN_CONTINUE 0x000D
23 #define WN_NOT_CONNECTED 0x0030
24 #define WN_OPEN_FILES 0x0031
25 #define WN_BAD_NETNAME 0x0032
26 #define WN_BAD_LOCALNAME 0x0033
27 #define WN_ALREADY_CONNECTED 0x0034
28 #define WN_DEVICE_ERROR 0x0035
29 #define WN_CONNECTION_CLOSED 0x0036
31 typedef LPSTR LPNETRESOURCE;
33 /**************************************************************************
34 * WNetGetConnection [USER.512]
36 int WNetGetConnection(LPSTR lpLocalName,
37 LPSTR lpRemoteName, UINT FAR *cbRemoteName)
39 printf("EMPTY STUB !!! WNetGetConnection('%s', %p, %p);\n",
40 lpLocalName, lpRemoteName, cbRemoteName);
41 return WN_NET_ERROR;
44 /**************************************************************************
45 * WNetGetCaps [USER.513]
47 int WNetGetCaps(WORD capability)
49 return 0;
52 /**************************************************************************
53 * WNetGetUser [USER.516]
55 UINT WNetGetUser(LPSTR lpLocalName, LPSTR lpUserName, DWORD *lpSize)
57 printf("EMPTY STUB !!! WNetGetUser('%s', %p, %p);\n",
58 lpLocalName, lpUserName, lpSize);
59 return WN_NET_ERROR;
62 /**************************************************************************
63 * WNetAddConnection [USER.517]
65 UINT WNetAddConnection(LPSTR lpNetPath, LPSTR lpPassWord, LPSTR lpLocalName)
67 printf("EMPTY STUB !!! WNetAddConnection('%s', %p, '%s');\n",
68 lpNetPath, lpPassWord, lpLocalName);
69 return WN_NET_ERROR;
73 /**************************************************************************
74 * WNetCancelConnection [USER.518]
76 UINT WNetCancelConnection(LPSTR lpName, BOOL bForce)
78 printf("EMPTY STUB !!! WNetCancelConnection('%s', %04X);\n",
79 lpName, bForce);
80 return WN_NET_ERROR;
83 /**************************************************************************
84 * WNetAddConnection2 [USER.???]
86 UINT WNetAddConnection2(LPSTR lpNetPath, LPSTR lpPassWord,
87 LPSTR lpLocalName, LPSTR lpUserName)
89 printf("EMPTY STUB !!! WNetAddConnection2('%s', %p, '%s', '%s');\n",
90 lpNetPath, lpPassWord, lpLocalName, lpUserName);
91 return WN_NET_ERROR;
94 /**************************************************************************
95 * WNetCloseEnum [USER.???]
97 UINT WNetCloseEnum(HANDLE hEnum)
99 printf("EMPTY STUB !!! WNetCloseEnum(%04X);\n", hEnum);
100 return WN_NET_ERROR;
103 /**************************************************************************
104 * WNetEnumResource [USER.???]
106 UINT WNetEnumResource(HANDLE hEnum, DWORD cRequ,
107 DWORD *lpCount, LPVOID lpBuf)
109 printf("EMPTY STUB !!! WNetEnumResource(%04X, %08lX, %p, %p);\n",
110 hEnum, cRequ, lpCount, lpBuf);
111 return WN_NET_ERROR;
114 /**************************************************************************
115 * WNetOpenEnum [USER.???]
117 UINT WNetOpenEnum(DWORD dwScope, DWORD dwType,
118 LPNETRESOURCE lpNet, HANDLE FAR *lphEnum)
120 printf("EMPTY STUB !!! WNetOpenEnum(%08lX, %08lX, %p, %p);\n",
121 dwScope, dwType, lpNet, lphEnum);
122 return WN_NET_ERROR;