2 * MPR - Network provider services
3 * Warning: this file apparently existed as part of the Win98 DDK. Some of
4 * the declarations in it conflict with those in the Platform SDK's npapi.h,
5 * therefore this header was made private. Don't try to include both headers.
7 * Copyright (C) 1999 Ulrich Weigand
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
31 * Note: The Unicode variants of all these routines/structures
32 * apparently don't exist, at least not in Win95 ...
35 #define HPROVIDER LPVOID
36 typedef HPROVIDER
*PHPROVIDER
;
51 LPCSTR lpDefaultUserName
;
54 } AUTHDLGSTRUCTA
, *LPAUTHDLGSTRUCTA
;
56 DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT
)
57 DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT
)
59 #define AUTHDLG_ENABLECACHE 0x00000001
60 #define AUTHDLG_CHECKCACHE 0x00000002
61 #define AUTHDLG_CACHEINVALID 0x00000004
62 #define AUTHDLG_USE_DEFAULT_NAME 0x00000008
63 #define AUTHDLG_CHECKDEFAULT_NAME 0x00000010
64 #define AUTHDLG_LOGON 0x00000020
66 #define AUTHDLG_ENABLECACHE 0x00000001
67 #define AUTHDLG_CHECKCACHE 0x00000002
68 #define AUTHDLG_CACHEINVALID 0x00000004
69 #define AUTHDLG_USE_DEFAULT_NAME 0x00000008
70 #define AUTHDLG_CHECKDEFAULT_NAME 0x00000010
71 #define AUTHDLG_LOGON 0x00000020
73 DWORD WINAPI
NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA
);
74 #define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog)
75 DWORD WINAPI
NPSGetProviderHandleA(PHPROVIDER
);
76 #define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle)
77 DWORD WINAPI
NPSGetProviderNameA(HPROVIDER
,LPCSTR
*);
78 #define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName)
79 DWORD WINAPI
NPSGetSectionNameA(HPROVIDER
,LPCSTR
*lpszSectionName
);
80 #define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName)
81 DWORD WINAPI
NPSSetExtendedErrorA(DWORD
,LPSTR
);
82 #define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError)
83 VOID WINAPI
NPSSetCustomTextA(LPSTR
);
84 #define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText)
85 DWORD WINAPI
NPSCopyStringA(LPCSTR
,LPVOID
,LPDWORD
);
86 #define NPSCopyString WINELIB_NAME_AW(NPSCopyString)
87 DWORD WINAPI
NPSDeviceGetNumberA(LPSTR
,LPDWORD
,LPDWORD
);
88 #define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber)
89 DWORD WINAPI
NPSDeviceGetStringA(DWORD
,DWORD
,LPSTR
,LPDWORD
);
90 #define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString)
93 enum NOTIFYTYPE
{ NotifyAddConnection
,
94 NotifyCancelConnection
,
95 NotifyGetConnectionPerformance
};
97 #define NOTIFY_PRE 0x00
98 #define NOTIFY_POST 0x01
103 DWORD dwNotifyStatus
;
104 DWORD dwOperationStatus
;
107 } NOTIFYINFO
, *LPNOTIFYINFO
;
113 NETRESOURCEA NetResource
;
116 LPDWORD lpBufferSize
;
120 } NOTIFYADDA
, *LPNOTIFYADDA
;
122 #define CONNECT_CTXT_RESTORE 0x00000001
123 #define CONNECT_CTXT_GLOBAL 0x00000002
124 #define CONNECT_CTXT_PROVIDER 0x00000004
125 #define CONNECT_CTXT_SINGLE 0x00000008
135 } NOTIFYCANCELA
, *LPNOTIFYCANCELA
;
141 LPSTR lpProviderName
;
142 LPNETCONNECTINFOSTRUCT lpNetConnectInfo
;
144 } NOTIFYPERFORMANCEA
, *LPNOTIFYPERFORMANCEA
;
146 typedef DWORD (CALLBACK
*NOTIFYCALLBACK
)(LPNOTIFYINFO
,LPVOID
);
148 DWORD WINAPI
NPSNotifyRegisterA(enum NOTIFYTYPE
,NOTIFYCALLBACK
);
149 #define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
150 LPVOID WINAPI
NPSNotifyGetContextA(NOTIFYCALLBACK
);
151 #define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
153 #endif /* _NETSPI_H_ */