First implementation of GetCharacterPlacementA.
[wine] / include / netspi.h
1 /*
2  * MPR - Network provider services
3  */
4
5 #ifndef _NETSPI_H_
6 #define _NETSPI_H_
7
8 #include "windef.h"
9
10 /*
11  * Note: The Unicode variants of all these routines/structures
12  *       apparently don't exist, at least not in Win95 ...
13  */
14
15 #define HPROVIDER LPVOID
16 typedef HPROVIDER *PHPROVIDER;
17
18 typedef struct 
19 {
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;
33
34 } AUTHDLGSTRUCTA, *LPAUTHDLGSTRUCTA;
35
36 DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
37 DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT)
38
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
45
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
52
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)
71
72
73 enum NOTIFYTYPE { NotifyAddConnection,
74                   NotifyCancelConnection,
75                   NotifyGetConnectionPerformance };
76
77 #define NOTIFY_PRE              0x00
78 #define NOTIFY_POST             0x01
79
80 typedef struct 
81 {
82     DWORD   cbStructure;
83     DWORD   dwNotifyStatus;
84     DWORD   dwOperationStatus;
85     LPVOID  lpNPContext;
86
87 } NOTIFYINFO, *LPNOTIFYINFO;
88
89 typedef struct 
90 {
91     DWORD        cbStructure;
92     HWND         hwndOwner;
93     NETRESOURCEA NetResource;
94     DWORD        dwAddFlags;
95     LPSTR        lpAccessName;
96     LPDWORD      lpBufferSize;
97     DWORD        dwResult;
98     DWORD        dwAddContext;
99
100 } NOTIFYADDA, *LPNOTIFYADDA;
101
102 #define CONNECT_CTXT_RESTORE   0x00000001
103 #define CONNECT_CTXT_GLOBAL    0x00000002
104 #define CONNECT_CTXT_PROVIDER  0x00000004
105 #define CONNECT_CTXT_SINGLE    0x00000008
106
107 typedef struct 
108 {
109     DWORD  cbStructure;
110     LPSTR  lpName;
111     LPSTR  lpProvider;
112     DWORD  dwFlags;
113     BOOL   fForce;
114
115 } NOTIFYCANCELA, *LPNOTIFYCANCELA;
116
117 typedef struct 
118 {
119     DWORD                  cbStructure;
120     LPSTR                  lpRemoteName;
121     LPSTR                  lpProviderName;
122     LPNETCONNECTINFOSTRUCT lpNetConnectInfo;
123
124 } NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA;
125
126 typedef DWORD (CALLBACK *NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID);
127
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)
132
133 #endif _NETSPI_H_
134