ReactOS 0.4.15-dev-8096-ga0eec98
netspi.h File Reference
#include "windef.h"
#include "winnetwk.h"
Include dependency graph for netspi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AUTHDLGSTRUCTA
 
struct  NOTIFYINFO
 
struct  NOTIFYADDA
 
struct  NOTIFYCANCELA
 
struct  NOTIFYPERFORMANCEA
 

Macros

#define HPROVIDER   LPVOID
 
#define AUTHDLG_ENABLECACHE   0x00000001
 
#define AUTHDLG_CHECKCACHE   0x00000002
 
#define AUTHDLG_CACHEINVALID   0x00000004
 
#define AUTHDLG_USE_DEFAULT_NAME   0x00000008
 
#define AUTHDLG_CHECKDEFAULT_NAME   0x00000010
 
#define AUTHDLG_LOGON   0x00000020
 
#define AUTHDLG_ENABLECACHE   0x00000001
 
#define AUTHDLG_CHECKCACHE   0x00000002
 
#define AUTHDLG_CACHEINVALID   0x00000004
 
#define AUTHDLG_USE_DEFAULT_NAME   0x00000008
 
#define AUTHDLG_CHECKDEFAULT_NAME   0x00000010
 
#define AUTHDLG_LOGON   0x00000020
 
#define NPSAuthenticationDialog   WINELIB_NAME_AW(NPSAuthenticationDialog)
 
#define NPSGetProviderHandle   WINELIB_NAME_AW(NPSGetProviderHandle)
 
#define NPSGetProviderName   WINELIB_NAME_AW(NPSGetProviderName)
 
#define NPSGetSectionName   WINELIB_NAME_AW(NPSGetSectionName)
 
#define NPSSetExtendedError   WINELIB_NAME_AW(NPSSetExtendedError)
 
#define NPSSetCustomText   WINELIB_NAME_AW(NPSSetCustomText)
 
#define NPSCopyString   WINELIB_NAME_AW(NPSCopyString)
 
#define NPSDeviceGetNumber   WINELIB_NAME_AW(NPSDeviceGetNumber)
 
#define NPSDeviceGetString   WINELIB_NAME_AW(NPSDeviceGetString)
 
#define NOTIFY_PRE   0x00
 
#define NOTIFY_POST   0x01
 
#define CONNECT_CTXT_RESTORE   0x00000001
 
#define CONNECT_CTXT_GLOBAL   0x00000002
 
#define CONNECT_CTXT_PROVIDER   0x00000004
 
#define CONNECT_CTXT_SINGLE   0x00000008
 
#define NPSNotifyRegister   WINELIB_NAME_AW(NPSNotifyRegister)
 
#define NPSNotifyGetContext   WINELIB_NAME_AW(NPSNotifyGetContext)
 

Typedefs

typedef HPROVIDERPHPROVIDER
 
typedef struct AUTHDLGSTRUCTALPAUTHDLGSTRUCTA
 
typedef struct NOTIFYINFOLPNOTIFYINFO
 
typedef struct NOTIFYADDALPNOTIFYADDA
 
typedef struct NOTIFYCANCELALPNOTIFYCANCELA
 
typedef struct NOTIFYPERFORMANCEALPNOTIFYPERFORMANCEA
 
typedef DWORD(CALLBACKNOTIFYCALLBACK) (LPNOTIFYINFO, LPVOID)
 

Enumerations

enum  NOTIFYTYPE { NotifyAddConnection , NotifyCancelConnection , NotifyGetConnectionPerformance }
 

Functions

DWORD WINAPI NPSAuthenticationDialogA (LPAUTHDLGSTRUCTA)
 
DWORD WINAPI NPSGetProviderHandleA (PHPROVIDER)
 
DWORD WINAPI NPSGetProviderNameA (HPROVIDER, LPCSTR *)
 
DWORD WINAPI NPSGetSectionNameA (HPROVIDER, LPCSTR *lpszSectionName)
 
DWORD WINAPI NPSSetExtendedErrorA (DWORD, LPSTR)
 
VOID WINAPI NPSSetCustomTextA (LPSTR)
 
DWORD WINAPI NPSCopyStringA (LPCSTR, LPVOID, LPDWORD)
 
DWORD WINAPI NPSDeviceGetNumberA (LPSTR, LPDWORD, LPDWORD)
 
DWORD WINAPI NPSDeviceGetStringA (DWORD, DWORD, LPSTR, LPDWORD)
 
DWORD WINAPI NPSNotifyRegisterA (enum NOTIFYTYPE, NOTIFYCALLBACK)
 
LPVOID WINAPI NPSNotifyGetContextA (NOTIFYCALLBACK)
 

Macro Definition Documentation

◆ AUTHDLG_CACHEINVALID [1/2]

#define AUTHDLG_CACHEINVALID   0x00000004

Definition at line 68 of file netspi.h.

◆ AUTHDLG_CACHEINVALID [2/2]

#define AUTHDLG_CACHEINVALID   0x00000004

Definition at line 68 of file netspi.h.

◆ AUTHDLG_CHECKCACHE [1/2]

#define AUTHDLG_CHECKCACHE   0x00000002

Definition at line 67 of file netspi.h.

◆ AUTHDLG_CHECKCACHE [2/2]

#define AUTHDLG_CHECKCACHE   0x00000002

Definition at line 67 of file netspi.h.

◆ AUTHDLG_CHECKDEFAULT_NAME [1/2]

#define AUTHDLG_CHECKDEFAULT_NAME   0x00000010

Definition at line 70 of file netspi.h.

◆ AUTHDLG_CHECKDEFAULT_NAME [2/2]

#define AUTHDLG_CHECKDEFAULT_NAME   0x00000010

Definition at line 70 of file netspi.h.

◆ AUTHDLG_ENABLECACHE [1/2]

#define AUTHDLG_ENABLECACHE   0x00000001

Definition at line 66 of file netspi.h.

◆ AUTHDLG_ENABLECACHE [2/2]

#define AUTHDLG_ENABLECACHE   0x00000001

Definition at line 66 of file netspi.h.

◆ AUTHDLG_LOGON [1/2]

#define AUTHDLG_LOGON   0x00000020

Definition at line 71 of file netspi.h.

◆ AUTHDLG_LOGON [2/2]

#define AUTHDLG_LOGON   0x00000020

Definition at line 71 of file netspi.h.

◆ AUTHDLG_USE_DEFAULT_NAME [1/2]

#define AUTHDLG_USE_DEFAULT_NAME   0x00000008

Definition at line 69 of file netspi.h.

◆ AUTHDLG_USE_DEFAULT_NAME [2/2]

#define AUTHDLG_USE_DEFAULT_NAME   0x00000008

Definition at line 69 of file netspi.h.

◆ CONNECT_CTXT_GLOBAL

#define CONNECT_CTXT_GLOBAL   0x00000002

Definition at line 123 of file netspi.h.

◆ CONNECT_CTXT_PROVIDER

#define CONNECT_CTXT_PROVIDER   0x00000004

Definition at line 124 of file netspi.h.

◆ CONNECT_CTXT_RESTORE

#define CONNECT_CTXT_RESTORE   0x00000001

Definition at line 122 of file netspi.h.

◆ CONNECT_CTXT_SINGLE

#define CONNECT_CTXT_SINGLE   0x00000008

Definition at line 125 of file netspi.h.

◆ HPROVIDER

#define HPROVIDER   LPVOID

Definition at line 35 of file netspi.h.

◆ NOTIFY_POST

#define NOTIFY_POST   0x01

Definition at line 98 of file netspi.h.

◆ NOTIFY_PRE

#define NOTIFY_PRE   0x00

Definition at line 97 of file netspi.h.

◆ NPSAuthenticationDialog

#define NPSAuthenticationDialog   WINELIB_NAME_AW(NPSAuthenticationDialog)

Definition at line 74 of file netspi.h.

◆ NPSCopyString

#define NPSCopyString   WINELIB_NAME_AW(NPSCopyString)

Definition at line 86 of file netspi.h.

◆ NPSDeviceGetNumber

#define NPSDeviceGetNumber   WINELIB_NAME_AW(NPSDeviceGetNumber)

Definition at line 88 of file netspi.h.

◆ NPSDeviceGetString

#define NPSDeviceGetString   WINELIB_NAME_AW(NPSDeviceGetString)

Definition at line 90 of file netspi.h.

◆ NPSGetProviderHandle

#define NPSGetProviderHandle   WINELIB_NAME_AW(NPSGetProviderHandle)

Definition at line 76 of file netspi.h.

◆ NPSGetProviderName

#define NPSGetProviderName   WINELIB_NAME_AW(NPSGetProviderName)

Definition at line 78 of file netspi.h.

◆ NPSGetSectionName

#define NPSGetSectionName   WINELIB_NAME_AW(NPSGetSectionName)

Definition at line 80 of file netspi.h.

◆ NPSNotifyGetContext

#define NPSNotifyGetContext   WINELIB_NAME_AW(NPSNotifyGetContext)

Definition at line 151 of file netspi.h.

◆ NPSNotifyRegister

#define NPSNotifyRegister   WINELIB_NAME_AW(NPSNotifyRegister)

Definition at line 149 of file netspi.h.

◆ NPSSetCustomText

#define NPSSetCustomText   WINELIB_NAME_AW(NPSSetCustomText)

Definition at line 84 of file netspi.h.

◆ NPSSetExtendedError

#define NPSSetExtendedError   WINELIB_NAME_AW(NPSSetExtendedError)

Definition at line 82 of file netspi.h.

Typedef Documentation

◆ LPAUTHDLGSTRUCTA

◆ LPNOTIFYADDA

◆ LPNOTIFYCANCELA

◆ LPNOTIFYINFO

◆ LPNOTIFYPERFORMANCEA

◆ NOTIFYCALLBACK

typedef DWORD(CALLBACK * NOTIFYCALLBACK) (LPNOTIFYINFO, LPVOID)

Definition at line 146 of file netspi.h.

◆ PHPROVIDER

Definition at line 36 of file netspi.h.

Enumeration Type Documentation

◆ NOTIFYTYPE

Enumerator
NotifyAddConnection 
NotifyCancelConnection 
NotifyGetConnectionPerformance 

Definition at line 93 of file netspi.h.

@ NotifyGetConnectionPerformance
Definition: netspi.h:95
@ NotifyCancelConnection
Definition: netspi.h:94
@ NotifyAddConnection
Definition: netspi.h:93

Function Documentation

◆ NPSAuthenticationDialogA()

DWORD WINAPI NPSAuthenticationDialogA ( LPAUTHDLGSTRUCTA  lpAuthDlgStruct)

Definition at line 100 of file nps.c.

101{
102 HMODULE hwininet = GetModuleHandleA( "mpr.dll" );
103
104 TRACE("%p\n", lpAuthDlgStruct);
105
106 if( !lpAuthDlgStruct )
107 return WN_BAD_POINTER;
108 if( lpAuthDlgStruct->cbStructure < sizeof *lpAuthDlgStruct )
109 return WN_BAD_POINTER;
110
111 TRACE("%s %s %s\n",lpAuthDlgStruct->lpResource,
112 lpAuthDlgStruct->lpOUTitle, lpAuthDlgStruct->lpExplainText);
113
114 return DialogBoxParamW( hwininet, MAKEINTRESOURCEW( IDD_PROXYDLG ),
115 lpAuthDlgStruct->hwndOwner, NPS_ProxyPasswordDialog,
116 (LPARAM) lpAuthDlgStruct );
117}
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:812
#define IDD_PROXYDLG
Definition: mprres.h:26
static INT_PTR WINAPI NPS_ProxyPasswordDialog(HWND hdlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: nps.c:39
#define TRACE(s)
Definition: solgame.cpp:4
HWND hwndOwner
Definition: netspi.h:41
LPCSTR lpExplainText
Definition: netspi.h:50
LPCSTR lpOUTitle
Definition: netspi.h:49
DWORD cbStructure
Definition: netspi.h:40
LPCSTR lpResource
Definition: netspi.h:42
LONG_PTR LPARAM
Definition: windef.h:208
#define WN_BAD_POINTER
Definition: winnetwk.h:118
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)

◆ NPSCopyStringA()

DWORD WINAPI NPSCopyStringA ( LPCSTR  lpString,
LPVOID  lpBuffer,
LPDWORD  lpdwBufferSize 
)

Definition at line 166 of file nps.c.

167{
168 FIXME( "(%s, %p, %p): stub\n", debugstr_a(lpString), lpBuffer, lpdwBufferSize );
169 return WN_NOT_SUPPORTED;
170}
#define FIXME(fmt,...)
Definition: debug.h:114
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
#define debugstr_a
Definition: kernel32.h:31
#define WN_NOT_SUPPORTED
Definition: winnetwk.h:113

◆ NPSDeviceGetNumberA()

DWORD WINAPI NPSDeviceGetNumberA ( LPSTR  lpLocalName,
LPDWORD  lpdwNumber,
LPDWORD  lpdwType 
)

Definition at line 175 of file nps.c.

176{
177 FIXME( "(%s, %p, %p): stub\n", debugstr_a(lpLocalName), lpdwNumber, lpdwType );
178 return WN_NOT_SUPPORTED;
179}

◆ NPSDeviceGetStringA()

DWORD WINAPI NPSDeviceGetStringA ( DWORD  dwNumber,
DWORD  dwType,
LPSTR  lpLocalName,
LPDWORD  lpdwBufferSize 
)

Definition at line 184 of file nps.c.

185{
186 FIXME( "(%d, %d, %p, %p): stub\n", dwNumber, dwType, lpLocalName, lpdwBufferSize );
187 return WN_NOT_SUPPORTED;
188}

◆ NPSGetProviderHandleA()

DWORD WINAPI NPSGetProviderHandleA ( PHPROVIDER  phProvider)

Definition at line 122 of file nps.c.

123{
124 FIXME( "(%p): stub\n", phProvider );
125 return WN_NOT_SUPPORTED;
126}

◆ NPSGetProviderNameA()

DWORD WINAPI NPSGetProviderNameA ( HPROVIDER  hProvider,
LPCSTR lpszProviderName 
)

Definition at line 131 of file nps.c.

132{
133 FIXME( "(%p, %p): stub\n", hProvider, lpszProviderName );
134 return WN_NOT_SUPPORTED;
135}
WDFWMIPROVIDER hProvider
Definition: fxwmiapi.cpp:165

◆ NPSGetSectionNameA()

DWORD WINAPI NPSGetSectionNameA ( HPROVIDER  hProvider,
LPCSTR lpszSectionName 
)

Definition at line 140 of file nps.c.

141{
142 FIXME( "(%p, %p): stub\n", hProvider, lpszSectionName );
143 return WN_NOT_SUPPORTED;
144}

◆ NPSNotifyGetContextA()

LPVOID WINAPI NPSNotifyGetContextA ( NOTIFYCALLBACK  pfNotifyCallBack)

Definition at line 202 of file nps.c.

203{
204 FIXME( "(%p): stub\n", pfNotifyCallBack );
205 return NULL;
206}
#define NULL
Definition: types.h:112

◆ NPSNotifyRegisterA()

DWORD WINAPI NPSNotifyRegisterA ( enum  NOTIFYTYPE,
NOTIFYCALLBACK  pfNotifyCallBack 
)

Definition at line 193 of file nps.c.

194{
195 FIXME( "(%d, %p): stub\n", NotifyType, pfNotifyCallBack );
196 return WN_NOT_SUPPORTED;
197}

◆ NPSSetCustomTextA()

VOID WINAPI NPSSetCustomTextA ( LPSTR  lpCustomErrorText)

Definition at line 158 of file nps.c.

159{
160 FIXME( "(%s): stub\n", debugstr_a(lpCustomErrorText) );
161}

◆ NPSSetExtendedErrorA()

DWORD WINAPI NPSSetExtendedErrorA ( DWORD  NetSpecificError,
LPSTR  lpExtendedErrorText 
)

Definition at line 149 of file nps.c.

150{
151 FIXME( "(%08x, %s): stub\n", NetSpecificError, debugstr_a(lpExtendedErrorText) );
152 return WN_NOT_SUPPORTED;
153}