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