Made request tracing more robust against bogus lengths.
[wine.git] / include / netspi.h
blobaf8d2ac0e24e16911aa9c8684ccbd1de3d1398e1
1 /*
2 * MPR - Network provider services
3 */
5 #ifndef _NETSPI_H_
6 #define _NETSPI_H_
8 #include "windef.h"
9 #include "winnetwk.h"
12 * Note: The Unicode variants of all these routines/structures
13 * apparently don't exist, at least not in Win95 ...
16 #define HPROVIDER LPVOID
17 typedef HPROVIDER *PHPROVIDER;
19 typedef struct
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;
35 } AUTHDLGSTRUCTA, *LPAUTHDLGSTRUCTA;
37 DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
38 DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT)
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
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
54 DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA);
55 #define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog)
56 DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER);
57 #define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle)
58 DWORD WINAPI NPSGetProviderNameA(HPROVIDER,LPCSTR *);
59 #define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName)
60 DWORD WINAPI NPSGetSectionNameA(HPROVIDER,LPCSTR *lpszSectionName);
61 #define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName)
62 DWORD WINAPI NPSSetExtendedErrorA(DWORD,LPSTR);
63 #define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError)
64 VOID WINAPI NPSSetCustomTextA(LPSTR);
65 #define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText)
66 DWORD WINAPI NPSCopyStringA(LPCSTR,LPVOID,LPDWORD);
67 #define NPSCopyString WINELIB_NAME_AW(NPSCopyString)
68 DWORD WINAPI NPSDeviceGetNumberA(LPSTR,LPDWORD,LPDWORD);
69 #define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber)
70 DWORD WINAPI NPSDeviceGetStringA(DWORD,DWORD,LPSTR,LPDWORD);
71 #define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString)
74 enum NOTIFYTYPE { NotifyAddConnection,
75 NotifyCancelConnection,
76 NotifyGetConnectionPerformance };
78 #define NOTIFY_PRE 0x00
79 #define NOTIFY_POST 0x01
81 typedef struct
83 DWORD cbStructure;
84 DWORD dwNotifyStatus;
85 DWORD dwOperationStatus;
86 LPVOID lpNPContext;
88 } NOTIFYINFO, *LPNOTIFYINFO;
90 typedef struct
92 DWORD cbStructure;
93 HWND hwndOwner;
94 NETRESOURCEA NetResource;
95 DWORD dwAddFlags;
96 LPSTR lpAccessName;
97 LPDWORD lpBufferSize;
98 DWORD dwResult;
99 DWORD dwAddContext;
101 } NOTIFYADDA, *LPNOTIFYADDA;
103 #define CONNECT_CTXT_RESTORE 0x00000001
104 #define CONNECT_CTXT_GLOBAL 0x00000002
105 #define CONNECT_CTXT_PROVIDER 0x00000004
106 #define CONNECT_CTXT_SINGLE 0x00000008
108 typedef struct
110 DWORD cbStructure;
111 LPSTR lpName;
112 LPSTR lpProvider;
113 DWORD dwFlags;
114 BOOL fForce;
116 } NOTIFYCANCELA, *LPNOTIFYCANCELA;
118 typedef struct
120 DWORD cbStructure;
121 LPSTR lpRemoteName;
122 LPSTR lpProviderName;
123 LPNETCONNECTINFOSTRUCT lpNetConnectInfo;
125 } NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA;
127 typedef DWORD (CALLBACK *NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID);
129 DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE,NOTIFYCALLBACK);
130 #define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
131 LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK);
132 #define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
134 #endif _NETSPI_H_