blob: 73c13d94fe33af855b59eab5250629c639b6cc60 [file] [log] [blame]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00001/*
2 * MPR - Network provider services
3 */
4
5#ifndef _NETSPI_H_
6#define _NETSPI_H_
7
8#include "windef.h"
Patrik Stridvallfeb94cb1999-10-24 21:48:50 +00009#include "winnetwk.h"
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000010
11/*
12 * Note: The Unicode variants of all these routines/structures
13 * apparently don't exist, at least not in Win95 ...
14 */
15
16#define HPROVIDER LPVOID
17typedef HPROVIDER *PHPROVIDER;
18
19typedef struct
20{
21 DWORD cbStructure;
22 HWND hwndOwner;
23 LPCSTR lpResource;
24 LPSTR lpUsername;
25 DWORD cbUsername;
26 LPSTR lpPassword;
27 DWORD cbPassword;
28 LPSTR lpOrgUnit;
29 DWORD cbOrgUnit;
30 LPCSTR lpOUTitle;
31 LPCSTR lpExplainText;
32 LPCSTR lpDefaultUserName;
33 DWORD dwFlags;
34
35} AUTHDLGSTRUCTA, *LPAUTHDLGSTRUCTA;
36
37DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
38DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT)
39
40#define AUTHDLG_ENABLECACHE 0x00000001
41#define AUTHDLG_CHECKCACHE 0x00000002
42#define AUTHDLG_CACHEINVALID 0x00000004
43#define AUTHDLG_USE_DEFAULT_NAME 0x00000008
44#define AUTHDLG_CHECKDEFAULT_NAME 0x00000010
45#define AUTHDLG_LOGON 0x00000020
46
47#define AUTHDLG_ENABLECACHE 0x00000001
48#define AUTHDLG_CHECKCACHE 0x00000002
49#define AUTHDLG_CACHEINVALID 0x00000004
50#define AUTHDLG_USE_DEFAULT_NAME 0x00000008
51#define AUTHDLG_CHECKDEFAULT_NAME 0x00000010
52#define AUTHDLG_LOGON 0x00000020
53
54DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA);
55#define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog)
56DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER);
57#define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle)
58DWORD WINAPI NPSGetProviderNameA(HPROVIDER,LPCSTR *);
59#define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName)
60DWORD WINAPI NPSGetSectionNameA(HPROVIDER,LPCSTR *lpszSectionName);
61#define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName)
62DWORD WINAPI NPSSetExtendedErrorA(DWORD,LPSTR);
63#define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError)
64VOID WINAPI NPSSetCustomTextA(LPSTR);
65#define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText)
66DWORD WINAPI NPSCopyStringA(LPCSTR,LPVOID,LPDWORD);
67#define NPSCopyString WINELIB_NAME_AW(NPSCopyString)
68DWORD WINAPI NPSDeviceGetNumberA(LPSTR,LPDWORD,LPDWORD);
69#define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber)
70DWORD WINAPI NPSDeviceGetStringA(DWORD,DWORD,LPSTR,LPDWORD);
71#define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString)
72
73
74enum NOTIFYTYPE { NotifyAddConnection,
75 NotifyCancelConnection,
76 NotifyGetConnectionPerformance };
77
78#define NOTIFY_PRE 0x00
79#define NOTIFY_POST 0x01
80
81typedef struct
82{
83 DWORD cbStructure;
84 DWORD dwNotifyStatus;
85 DWORD dwOperationStatus;
86 LPVOID lpNPContext;
87
88} NOTIFYINFO, *LPNOTIFYINFO;
89
90typedef struct
91{
92 DWORD cbStructure;
93 HWND hwndOwner;
94 NETRESOURCEA NetResource;
95 DWORD dwAddFlags;
96 LPSTR lpAccessName;
97 LPDWORD lpBufferSize;
98 DWORD dwResult;
99 DWORD dwAddContext;
100
101} NOTIFYADDA, *LPNOTIFYADDA;
102
103#define CONNECT_CTXT_RESTORE 0x00000001
104#define CONNECT_CTXT_GLOBAL 0x00000002
105#define CONNECT_CTXT_PROVIDER 0x00000004
106#define CONNECT_CTXT_SINGLE 0x00000008
107
108typedef struct
109{
110 DWORD cbStructure;
111 LPSTR lpName;
112 LPSTR lpProvider;
113 DWORD dwFlags;
114 BOOL fForce;
115
116} NOTIFYCANCELA, *LPNOTIFYCANCELA;
117
118typedef struct
119{
120 DWORD cbStructure;
121 LPSTR lpRemoteName;
122 LPSTR lpProviderName;
123 LPNETCONNECTINFOSTRUCT lpNetConnectInfo;
124
125} NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA;
126
Francois Gougetae41e8c2000-06-11 20:07:58 +0000127typedef DWORD CALLBACK (*NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID);
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000128
129DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE,NOTIFYCALLBACK);
130#define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
131LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK);
132#define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
133
Jeff Garzik3ea0c072001-03-21 20:31:26 +0000134#endif /* _NETSPI_H_ */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000135