1999-08-07 14:32:33 +00:00
|
|
|
/*
|
|
|
|
* MPR - Network provider services
|
2002-03-09 23:29:33 +00: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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-08-07 14:32:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSPI_H_
|
|
|
|
#define _NETSPI_H_
|
|
|
|
|
|
|
|
#include "windef.h"
|
1999-10-24 21:48:50 +00:00
|
|
|
#include "winnetwk.h"
|
1999-08-07 14:32:33 +00: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-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
1999-08-07 14:32:33 +00: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-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
1999-08-07 14:32:33 +00:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
DWORD dwNotifyStatus;
|
|
|
|
DWORD dwOperationStatus;
|
|
|
|
LPVOID lpNPContext;
|
|
|
|
|
|
|
|
} NOTIFYINFO, *LPNOTIFYINFO;
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
1999-08-07 14:32:33 +00: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-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
1999-08-07 14:32:33 +00:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
LPSTR lpName;
|
|
|
|
LPSTR lpProvider;
|
|
|
|
DWORD dwFlags;
|
|
|
|
BOOL fForce;
|
|
|
|
|
|
|
|
} NOTIFYCANCELA, *LPNOTIFYCANCELA;
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
1999-08-07 14:32:33 +00:00
|
|
|
{
|
|
|
|
DWORD cbStructure;
|
|
|
|
LPSTR lpRemoteName;
|
|
|
|
LPSTR lpProviderName;
|
|
|
|
LPNETCONNECTINFOSTRUCT lpNetConnectInfo;
|
|
|
|
|
|
|
|
} NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA;
|
|
|
|
|
2002-01-31 23:22:07 +00:00
|
|
|
typedef DWORD (CALLBACK *NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID);
|
1999-08-07 14:32:33 +00: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 20:31:26 +00:00
|
|
|
#endif /* _NETSPI_H_ */
|
1999-08-07 14:32:33 +00:00
|
|
|
|