ReactOS 0.4.15-dev-7889-g76290a6
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
38typedef struct
39{
53
55
56DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
57DECL_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
100typedef struct
101{
106
108
109typedef 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
127typedef struct
128{
134
136
137typedef struct
138{
143
145
147
149#define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
151#define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
152
153#endif /* _NETSPI_H_ */
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE, NOTIFYCALLBACK)
Definition: nps.c:193
NOTIFYTYPE
Definition: netspi.h:93
@ NotifyGetConnectionPerformance
Definition: netspi.h:95
@ NotifyCancelConnection
Definition: netspi.h:94
@ NotifyAddConnection
Definition: netspi.h:93
DWORD WINAPI NPSGetProviderNameA(HPROVIDER, LPCSTR *)
Definition: nps.c:131
DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER)
Definition: nps.c:122
HPROVIDER * PHPROVIDER
Definition: netspi.h:36
struct NOTIFYADDA * LPNOTIFYADDA
struct NOTIFYCANCELA * LPNOTIFYCANCELA
DWORD(CALLBACK * NOTIFYCALLBACK)(LPNOTIFYINFO, LPVOID)
Definition: netspi.h:146
DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA)
Definition: nps.c:100
#define HPROVIDER
Definition: netspi.h:35
DWORD WINAPI NPSDeviceGetStringA(DWORD, DWORD, LPSTR, LPDWORD)
Definition: nps.c:184
struct AUTHDLGSTRUCTA * LPAUTHDLGSTRUCTA
DWORD WINAPI NPSGetSectionNameA(HPROVIDER, LPCSTR *lpszSectionName)
Definition: nps.c:140
LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK)
Definition: nps.c:202
DWORD WINAPI NPSDeviceGetNumberA(LPSTR, LPDWORD, LPDWORD)
Definition: nps.c:175
DWORD WINAPI NPSSetExtendedErrorA(DWORD, LPSTR)
Definition: nps.c:149
struct NOTIFYINFO * LPNOTIFYINFO
DWORD WINAPI NPSCopyStringA(LPCSTR, LPVOID, LPDWORD)
Definition: nps.c:166
struct NOTIFYPERFORMANCEA * LPNOTIFYPERFORMANCEA
VOID WINAPI NPSSetCustomTextA(LPSTR)
Definition: nps.c:158
#define DWORD
Definition: nt_native.h:44
#define LPVOID
Definition: nt_native.h:45
DWORD cbPassword
Definition: netspi.h:46
HWND hwndOwner
Definition: netspi.h:41
LPCSTR lpDefaultUserName
Definition: netspi.h:51
LPCSTR lpExplainText
Definition: netspi.h:50
LPSTR lpOrgUnit
Definition: netspi.h:47
DWORD cbOrgUnit
Definition: netspi.h:48
LPSTR lpPassword
Definition: netspi.h:45
DWORD dwFlags
Definition: netspi.h:52
LPSTR lpUsername
Definition: netspi.h:43
LPCSTR lpOUTitle
Definition: netspi.h:49
DWORD cbUsername
Definition: netspi.h:44
DWORD cbStructure
Definition: netspi.h:40
LPCSTR lpResource
Definition: netspi.h:42
DWORD dwResult
Definition: netspi.h:117
DWORD cbStructure
Definition: netspi.h:111
HWND hwndOwner
Definition: netspi.h:112
DWORD dwAddFlags
Definition: netspi.h:114
LPSTR lpAccessName
Definition: netspi.h:115
DWORD dwAddContext
Definition: netspi.h:118
LPDWORD lpBufferSize
Definition: netspi.h:116
NETRESOURCEA NetResource
Definition: netspi.h:113
LPSTR lpProvider
Definition: netspi.h:131
BOOL fForce
Definition: netspi.h:133
DWORD dwFlags
Definition: netspi.h:132
LPSTR lpName
Definition: netspi.h:130
DWORD cbStructure
Definition: netspi.h:129
LPVOID lpNPContext
Definition: netspi.h:105
DWORD dwOperationStatus
Definition: netspi.h:104
DWORD dwNotifyStatus
Definition: netspi.h:103
DWORD cbStructure
Definition: netspi.h:102
DWORD cbStructure
Definition: netspi.h:139
LPSTR lpProviderName
Definition: netspi.h:141
LPNETCONNECTINFOSTRUCT lpNetConnectInfo
Definition: netspi.h:142
LPSTR lpRemoteName
Definition: netspi.h:140
uint32_t * LPDWORD
Definition: typedefs.h:59
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:401
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182