A few more DC_ defines from Win2000.
[wine/hacks.git] / include / netspi.h
blob884b88e228589bbac0b5f570f897f4b3dc6a8b5f
1 /*
2 * MPR - Network provider services
3 */
5 #ifndef _NETSPI_H_
6 #define _NETSPI_H_
8 #include "windef.h"
11 * Note: The Unicode variants of all these routines/structures
12 * apparently don't exist, at least not in Win95 ...
15 #define HPROVIDER LPVOID
16 typedef HPROVIDER *PHPROVIDER;
18 typedef struct
20 DWORD cbStructure;
21 HWND hwndOwner;
22 LPCSTR lpResource;
23 LPSTR lpUsername;
24 DWORD cbUsername;
25 LPSTR lpPassword;
26 DWORD cbPassword;
27 LPSTR lpOrgUnit;
28 DWORD cbOrgUnit;
29 LPCSTR lpOUTitle;
30 LPCSTR lpExplainText;
31 LPCSTR lpDefaultUserName;
32 DWORD dwFlags;
34 } AUTHDLGSTRUCTA, *LPAUTHDLGSTRUCTA;
36 DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
37 DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT)
39 #define AUTHDLG_ENABLECACHE 0x00000001
40 #define AUTHDLG_CHECKCACHE 0x00000002
41 #define AUTHDLG_CACHEINVALID 0x00000004
42 #define AUTHDLG_USE_DEFAULT_NAME 0x00000008
43 #define AUTHDLG_CHECKDEFAULT_NAME 0x00000010
44 #define AUTHDLG_LOGON 0x00000020
46 #define AUTHDLG_ENABLECACHE 0x00000001
47 #define AUTHDLG_CHECKCACHE 0x00000002
48 #define AUTHDLG_CACHEINVALID 0x00000004
49 #define AUTHDLG_USE_DEFAULT_NAME 0x00000008
50 #define AUTHDLG_CHECKDEFAULT_NAME 0x00000010
51 #define AUTHDLG_LOGON 0x00000020
53 DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA);
54 #define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog)
55 DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER);
56 #define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle)
57 DWORD WINAPI NPSGetProviderNameA(HPROVIDER,LPCSTR *);
58 #define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName)
59 DWORD WINAPI NPSGetSectionNameA(HPROVIDER,LPCSTR *lpszSectionName);
60 #define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName)
61 DWORD WINAPI NPSSetExtendedErrorA(DWORD,LPSTR);
62 #define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError)
63 VOID WINAPI NPSSetCustomTextA(LPSTR);
64 #define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText)
65 DWORD WINAPI NPSCopyStringA(LPCSTR,LPVOID,LPDWORD);
66 #define NPSCopyString WINELIB_NAME_AW(NPSCopyString)
67 DWORD WINAPI NPSDeviceGetNumberA(LPSTR,LPDWORD,LPDWORD);
68 #define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber)
69 DWORD WINAPI NPSDeviceGetStringA(DWORD,DWORD,LPSTR,LPDWORD);
70 #define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString)
73 enum NOTIFYTYPE { NotifyAddConnection,
74 NotifyCancelConnection,
75 NotifyGetConnectionPerformance };
77 #define NOTIFY_PRE 0x00
78 #define NOTIFY_POST 0x01
80 typedef struct
82 DWORD cbStructure;
83 DWORD dwNotifyStatus;
84 DWORD dwOperationStatus;
85 LPVOID lpNPContext;
87 } NOTIFYINFO, *LPNOTIFYINFO;
89 typedef struct
91 DWORD cbStructure;
92 HWND hwndOwner;
93 NETRESOURCEA NetResource;
94 DWORD dwAddFlags;
95 LPSTR lpAccessName;
96 LPDWORD lpBufferSize;
97 DWORD dwResult;
98 DWORD dwAddContext;
100 } NOTIFYADDA, *LPNOTIFYADDA;
102 #define CONNECT_CTXT_RESTORE 0x00000001
103 #define CONNECT_CTXT_GLOBAL 0x00000002
104 #define CONNECT_CTXT_PROVIDER 0x00000004
105 #define CONNECT_CTXT_SINGLE 0x00000008
107 typedef struct
109 DWORD cbStructure;
110 LPSTR lpName;
111 LPSTR lpProvider;
112 DWORD dwFlags;
113 BOOL fForce;
115 } NOTIFYCANCELA, *LPNOTIFYCANCELA;
117 typedef struct
119 DWORD cbStructure;
120 LPSTR lpRemoteName;
121 LPSTR lpProviderName;
122 LPNETCONNECTINFOSTRUCT lpNetConnectInfo;
124 } NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA;
126 typedef DWORD (CALLBACK *NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID);
128 DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE,NOTIFYCALLBACK);
129 #define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
130 LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK);
131 #define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
133 #endif _NETSPI_H_