ReactOS  0.4.15-dev-1384-g878186b
netspi.h
Go to the documentation of this file.
1 /*
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.
6  *
7  * Copyright (C) 1999 Ulrich Weigand
8  *
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.
13  *
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.
18  *
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
22  */
23 
24 #ifndef _NETSPI_H_
25 #define _NETSPI_H_
26 
27 #include "windef.h"
28 #include "winnetwk.h"
29 
30 /*
31  * Note: The Unicode variants of all these routines/structures
32  * apparently don't exist, at least not in Win95 ...
33  */
34 
35 #define HPROVIDER LPVOID
37 
38 typedef struct
39 {
53 
55 
56 DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
57 DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT)
58 
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
65 
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
72 
74 #define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog)
76 #define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle)
78 #define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName)
80 #define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName)
82 #define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError)
84 #define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText)
86 #define NPSCopyString WINELIB_NAME_AW(NPSCopyString)
88 #define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber)
90 #define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString)
91 
92 
96 
97 #define NOTIFY_PRE 0x00
98 #define NOTIFY_POST 0x01
99 
100 typedef struct
101 {
106 
108 
109 typedef struct
110 {
119 
121 
122 #define CONNECT_CTXT_RESTORE 0x00000001
123 #define CONNECT_CTXT_GLOBAL 0x00000002
124 #define CONNECT_CTXT_PROVIDER 0x00000004
125 #define CONNECT_CTXT_SINGLE 0x00000008
126 
127 typedef struct
128 {
134 
136 
137 typedef struct
138 {
143 
145 
147 
149 #define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
151 #define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
152 
153 #endif /* _NETSPI_H_ */
VOID WINAPI NPSSetCustomTextA(LPSTR)
Definition: nps.c:158
struct NOTIFYCANCELA * LPNOTIFYCANCELA
LPDWORD lpBufferSize
Definition: netspi.h:116
DWORD dwResult
Definition: netspi.h:117
DWORD WINAPI NPSDeviceGetStringA(DWORD, DWORD, LPSTR, LPDWORD)
Definition: nps.c:184
struct NOTIFYADDA * LPNOTIFYADDA
DWORD dwNotifyStatus
Definition: netspi.h:103
#define CALLBACK
Definition: compat.h:35
DWORD dwFlags
Definition: netspi.h:52
NETRESOURCEA NetResource
Definition: netspi.h:113
struct AUTHDLGSTRUCTA * LPAUTHDLGSTRUCTA
struct NOTIFYPERFORMANCEA * LPNOTIFYPERFORMANCEA
DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA)
Definition: nps.c:100
LPCSTR lpOUTitle
Definition: netspi.h:49
LPSTR lpUsername
Definition: netspi.h:43
char * LPSTR
Definition: xmlstorage.h:182
#define DWORD
Definition: nt_native.h:44
DWORD cbStructure
Definition: netspi.h:102
LPSTR lpProvider
Definition: netspi.h:131
LPNETCONNECTINFOSTRUCT lpNetConnectInfo
Definition: netspi.h:142
DWORD cbStructure
Definition: netspi.h:40
DWORD WINAPI NPSGetProviderNameA(HPROVIDER, LPCSTR *)
Definition: nps.c:131
LPSTR lpOrgUnit
Definition: netspi.h:47
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:401
unsigned int BOOL
Definition: ntddk_ex.h:94
DWORD dwAddFlags
Definition: netspi.h:114
LPSTR lpProviderName
Definition: netspi.h:141
LPSTR lpAccessName
Definition: netspi.h:115
LPSTR lpName
Definition: netspi.h:130
DWORD(CALLBACK * NOTIFYCALLBACK)(LPNOTIFYINFO, LPVOID)
Definition: netspi.h:146
const char * LPCSTR
Definition: xmlstorage.h:183
DWORD dwFlags
Definition: netspi.h:132
struct _NOTIFYINFO NOTIFYINFO
DWORD cbOrgUnit
Definition: netspi.h:48
LPVOID lpNPContext
Definition: netspi.h:105
#define WINAPI
Definition: msvc.h:6
DWORD dwAddContext
Definition: netspi.h:118
DWORD cbStructure
Definition: netspi.h:129
unsigned long DWORD
Definition: ntddk_ex.h:95
LPSTR lpPassword
Definition: netspi.h:45
#define LPVOID
Definition: nt_native.h:45
HWND hwndOwner
Definition: netspi.h:112
LPCSTR lpExplainText
Definition: netspi.h:50
DWORD WINAPI NPSCopyStringA(LPCSTR, LPVOID, LPDWORD)
Definition: nps.c:166
DWORD cbUsername
Definition: netspi.h:44
DWORD cbStructure
Definition: netspi.h:139
DWORD WINAPI NPSSetExtendedErrorA(DWORD, LPSTR)
Definition: nps.c:149
#define HPROVIDER
Definition: netspi.h:35
struct NOTIFYINFO * LPNOTIFYINFO
HPROVIDER * PHPROVIDER
Definition: netspi.h:36
LPCSTR lpDefaultUserName
Definition: netspi.h:51
DWORD WINAPI NPSGetSectionNameA(HPROVIDER, LPCSTR *lpszSectionName)
Definition: nps.c:140
DWORD cbPassword
Definition: netspi.h:46
uint32_t * LPDWORD
Definition: typedefs.h:59
HWND hwndOwner
Definition: netspi.h:41
LPCSTR lpResource
Definition: netspi.h:42
LPSTR lpRemoteName
Definition: netspi.h:140
DWORD cbStructure
Definition: netspi.h:111
NOTIFYTYPE
Definition: netspi.h:93
DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE, NOTIFYCALLBACK)
Definition: nps.c:193
BOOL fForce
Definition: netspi.h:133
LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK)
Definition: nps.c:202
DWORD WINAPI NPSDeviceGetNumberA(LPSTR, LPDWORD, LPDWORD)
Definition: nps.c:175
DWORD dwOperationStatus
Definition: netspi.h:104
DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER)
Definition: nps.c:122