source: trunk/include/win/winnetwk.h@ 4

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

File size: 3.3 KB
Line 
1/* $Id: winnetwk.h,v 1.1 1999-05-24 20:19:22 ktk Exp $ */
2
3#ifndef _WINNETWK_H_
4#define _WINNETWK_H_
5
6#include "windef.h"
7
8
9typedef struct {
10 DWORD dwScope;
11 DWORD dwType;
12 DWORD dwDisplayType;
13 DWORD dwUsage;
14 LPSTR lpLocalName;
15 LPSTR lpRemoteName;
16 LPSTR lpComment ;
17 LPSTR lpProvider;
18} NETRESOURCEA,*LPNETRESOURCEA;
19
20typedef struct {
21 DWORD dwScope;
22 DWORD dwType;
23 DWORD dwDisplayType;
24 DWORD dwUsage;
25 LPWSTR lpLocalName;
26 LPWSTR lpRemoteName;
27 LPWSTR lpComment ;
28 LPWSTR lpProvider;
29} NETRESOURCEW,*LPNETRESOURCEW;
30
31DECL_WINELIB_TYPE_AW(NETRESOURCE)
32DECL_WINELIB_TYPE_AW(LPNETRESOURCE)
33
34typedef struct {
35 DWORD cbStructure; /* size of this structure in bytes */
36 HWND hwndOwner; /* owner window for the dialog */
37 LPNETRESOURCEA lpConnRes;/* Requested Resource info */
38 DWORD dwFlags; /* flags (see below) */
39 DWORD dwDevNum; /* number of devices connected to */
40} CONNECTDLGSTRUCTA, *LPCONNECTDLGSTRUCTA;
41typedef struct {
42 DWORD cbStructure; /* size of this structure in bytes */
43 HWND hwndOwner; /* owner window for the dialog */
44 LPNETRESOURCEW lpConnRes;/* Requested Resource info */
45 DWORD dwFlags; /* flags (see below) */
46 DWORD dwDevNum; /* number of devices connected to */
47} CONNECTDLGSTRUCTW, *LPCONNECTDLGSTRUCTW;
48
49DECL_WINELIB_TYPE_AW(CONNECTDLGSTRUCT)
50DECL_WINELIB_TYPE_AW(LPCONNECTDLGSTRUCT)
51
52
53/**/
54#define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */
55#define CONNDLG_CONN_POINT 0x00000002 /* Netware -style movable connection point enabled */
56#define CONNDLG_USE_MRU 0x00000004 /* Use MRU combobox */
57#define CONNDLG_HIDE_BOX 0x00000008 /* Hide persistent connect checkbox */
58#define CONNDLG_PERSIST 0x00000010 /* Force persistent connection */
59#define CONNDLG_NOT_PERSIST 0x00000020 /* Force connection NOT persistent */
60
61
62typedef struct {
63 DWORD cbStructure;
64 DWORD dwFlags;
65 DWORD dwSpeed;
66 DWORD dwDelay;
67 DWORD dwOptDataSize;
68} NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT;
69
70
71UINT WINAPI WNetAddConnection2A(LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD);
72UINT WINAPI WNetAddConnection2W(LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD);
73#define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2_)
74UINT WINAPI WNetAddConnection3A(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD);
75UINT WINAPI WNetAddConnection3W(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD);
76#define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3_)
77UINT WINAPI WNetConnectionDialog1(HWND,DWORD);
78UINT WINAPI WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA);
79UINT WINAPI WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW);
80#define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1_)
81UINT WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD);
82UINT WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD);
83#define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_)
84
85#define RESOURCETYPE_ANY 0x00000000
86#define RESOURCETYPE_DISK 0x00000001
87#define RESOURCETYPE_PRINT 0x00000002
88
89#define CONNECT_UPDATE_PROFILE 0x00000001
90#define CONNECT_UPDATE_RECENT 0x00000002
91#define CONNECT_TEMPORARY 0x00000004
92#define CONNECT_INTERACTIVE 0x00000008
93#define CONNECT_PROMPT 0x00000010
94#define CONNECT_NEED_DRIVE 0x00000020
95
96#endif /* _WINNETWK_H_ */
Note: See TracBrowser for help on using the repository browser.