1999-08-07 16:32:33 +02:00
|
|
|
/*
|
|
|
|
* MPR - Network provider services
|
2005-01-18 12:40:24 +01:00
|
|
|
* Warning: this file apparently existed as part of the Win98 DDK. Some of
|
|
|
|
* the declarations in it conflict with those in the Platform SDK's npapi.h,
|
|
|
|
* therefore this header was made private. Don't try to include both headers.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Ulrich Weigand
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-08-07 16:32:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSPI_H_
|
|
|
|
#define _NETSPI_H_
|
|
|
|
|
2005-01-18 12:40:24 +01:00
|
|
|
#include "windef.h"
|
|
|
|
#include "winnetwk.h"
|
1999-08-07 16:32:33 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Note: The Unicode variants of all these routines/structures
|
|
|
|
* apparently don't exist, at least not in Win95 ...
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define HPROVIDER LPVOID
|
|
|
|
typedef HPROVIDER *PHPROVIDER;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef struct
|
1999-08-07 16:32:33 +02:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
HWND hwndOwner;
|
|
|
|
LPCSTR lpResource;
|
|
|
|
LPSTR lpUsername;
|
|
|
|
DWORD cbUsername;
|
|
|
|
LPSTR lpPassword;
|
|
|
|
DWORD cbPassword;
|
|
|
|
LPSTR lpOrgUnit;
|
|
|
|
DWORD cbOrgUnit;
|
|
|
|
LPCSTR lpOUTitle;
|
|
|
|
LPCSTR lpExplainText;
|
|
|
|
LPCSTR lpDefaultUserName;
|
|
|
|
DWORD dwFlags;
|
|
|
|
|
|
|
|
} AUTHDLGSTRUCTA, *LPAUTHDLGSTRUCTA;
|
|
|
|
|
|
|
|
DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT)
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA);
|
|
|
|
#define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog)
|
|
|
|
DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER);
|
|
|
|
#define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle)
|
|
|
|
DWORD WINAPI NPSGetProviderNameA(HPROVIDER,LPCSTR *);
|
|
|
|
#define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName)
|
|
|
|
DWORD WINAPI NPSGetSectionNameA(HPROVIDER,LPCSTR *lpszSectionName);
|
|
|
|
#define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName)
|
|
|
|
DWORD WINAPI NPSSetExtendedErrorA(DWORD,LPSTR);
|
|
|
|
#define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError)
|
|
|
|
VOID WINAPI NPSSetCustomTextA(LPSTR);
|
|
|
|
#define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText)
|
|
|
|
DWORD WINAPI NPSCopyStringA(LPCSTR,LPVOID,LPDWORD);
|
|
|
|
#define NPSCopyString WINELIB_NAME_AW(NPSCopyString)
|
|
|
|
DWORD WINAPI NPSDeviceGetNumberA(LPSTR,LPDWORD,LPDWORD);
|
|
|
|
#define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber)
|
|
|
|
DWORD WINAPI NPSDeviceGetStringA(DWORD,DWORD,LPSTR,LPDWORD);
|
|
|
|
#define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString)
|
|
|
|
|
|
|
|
|
|
|
|
enum NOTIFYTYPE { NotifyAddConnection,
|
|
|
|
NotifyCancelConnection,
|
|
|
|
NotifyGetConnectionPerformance };
|
|
|
|
|
|
|
|
#define NOTIFY_PRE 0x00
|
|
|
|
#define NOTIFY_POST 0x01
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef struct
|
1999-08-07 16:32:33 +02:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
DWORD dwNotifyStatus;
|
|
|
|
DWORD dwOperationStatus;
|
|
|
|
LPVOID lpNPContext;
|
|
|
|
|
|
|
|
} NOTIFYINFO, *LPNOTIFYINFO;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef struct
|
1999-08-07 16:32:33 +02:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
HWND hwndOwner;
|
|
|
|
NETRESOURCEA NetResource;
|
|
|
|
DWORD dwAddFlags;
|
|
|
|
LPSTR lpAccessName;
|
|
|
|
LPDWORD lpBufferSize;
|
|
|
|
DWORD dwResult;
|
|
|
|
DWORD dwAddContext;
|
|
|
|
|
|
|
|
} NOTIFYADDA, *LPNOTIFYADDA;
|
|
|
|
|
|
|
|
#define CONNECT_CTXT_RESTORE 0x00000001
|
|
|
|
#define CONNECT_CTXT_GLOBAL 0x00000002
|
|
|
|
#define CONNECT_CTXT_PROVIDER 0x00000004
|
|
|
|
#define CONNECT_CTXT_SINGLE 0x00000008
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef struct
|
1999-08-07 16:32:33 +02:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
LPSTR lpName;
|
|
|
|
LPSTR lpProvider;
|
|
|
|
DWORD dwFlags;
|
|
|
|
BOOL fForce;
|
|
|
|
|
|
|
|
} NOTIFYCANCELA, *LPNOTIFYCANCELA;
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef struct
|
1999-08-07 16:32:33 +02:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
LPSTR lpRemoteName;
|
|
|
|
LPSTR lpProviderName;
|
|
|
|
LPNETCONNECTINFOSTRUCT lpNetConnectInfo;
|
|
|
|
|
|
|
|
} NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA;
|
|
|
|
|
2002-02-01 00:22:07 +01:00
|
|
|
typedef DWORD (CALLBACK *NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID);
|
1999-08-07 16:32:33 +02:00
|
|
|
|
|
|
|
DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE,NOTIFYCALLBACK);
|
|
|
|
#define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister)
|
|
|
|
LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK);
|
|
|
|
#define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext)
|
|
|
|
|
2001-03-21 21:31:26 +01:00
|
|
|
#endif /* _NETSPI_H_ */
|