Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygennetspi.h
Go to the documentation of this file.
00001 /* 00002 * MPR - Network provider services 00003 * Warning: this file apparently existed as part of the Win98 DDK. Some of 00004 * the declarations in it conflict with those in the Platform SDK's npapi.h, 00005 * therefore this header was made private. Don't try to include both headers. 00006 * 00007 * Copyright (C) 1999 Ulrich Weigand 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00022 */ 00023 00024 #ifndef _NETSPI_H_ 00025 #define _NETSPI_H_ 00026 00027 #include "windef.h" 00028 #include "winnetwk.h" 00029 00030 /* 00031 * Note: The Unicode variants of all these routines/structures 00032 * apparently don't exist, at least not in Win95 ... 00033 */ 00034 00035 #define HPROVIDER LPVOID 00036 typedef HPROVIDER *PHPROVIDER; 00037 00038 typedef struct 00039 { 00040 DWORD cbStructure; 00041 HWND hwndOwner; 00042 LPCSTR lpResource; 00043 LPSTR lpUsername; 00044 DWORD cbUsername; 00045 LPSTR lpPassword; 00046 DWORD cbPassword; 00047 LPSTR lpOrgUnit; 00048 DWORD cbOrgUnit; 00049 LPCSTR lpOUTitle; 00050 LPCSTR lpExplainText; 00051 LPCSTR lpDefaultUserName; 00052 DWORD dwFlags; 00053 00054 } AUTHDLGSTRUCTA, *LPAUTHDLGSTRUCTA; 00055 00056 DECL_WINELIB_TYPE_AW(AUTHDLGSTRUCT) 00057 DECL_WINELIB_TYPE_AW(LPAUTHDLGSTRUCT) 00058 00059 #define AUTHDLG_ENABLECACHE 0x00000001 00060 #define AUTHDLG_CHECKCACHE 0x00000002 00061 #define AUTHDLG_CACHEINVALID 0x00000004 00062 #define AUTHDLG_USE_DEFAULT_NAME 0x00000008 00063 #define AUTHDLG_CHECKDEFAULT_NAME 0x00000010 00064 #define AUTHDLG_LOGON 0x00000020 00065 00066 #define AUTHDLG_ENABLECACHE 0x00000001 00067 #define AUTHDLG_CHECKCACHE 0x00000002 00068 #define AUTHDLG_CACHEINVALID 0x00000004 00069 #define AUTHDLG_USE_DEFAULT_NAME 0x00000008 00070 #define AUTHDLG_CHECKDEFAULT_NAME 0x00000010 00071 #define AUTHDLG_LOGON 0x00000020 00072 00073 DWORD WINAPI NPSAuthenticationDialogA(LPAUTHDLGSTRUCTA); 00074 #define NPSAuthenticationDialog WINELIB_NAME_AW(NPSAuthenticationDialog) 00075 DWORD WINAPI NPSGetProviderHandleA(PHPROVIDER); 00076 #define NPSGetProviderHandle WINELIB_NAME_AW(NPSGetProviderHandle) 00077 DWORD WINAPI NPSGetProviderNameA(HPROVIDER,LPCSTR *); 00078 #define NPSGetProviderName WINELIB_NAME_AW(NPSGetProviderName) 00079 DWORD WINAPI NPSGetSectionNameA(HPROVIDER,LPCSTR *lpszSectionName); 00080 #define NPSGetSectionName WINELIB_NAME_AW(NPSGetSectionName) 00081 DWORD WINAPI NPSSetExtendedErrorA(DWORD,LPSTR); 00082 #define NPSSetExtendedError WINELIB_NAME_AW(NPSSetExtendedError) 00083 VOID WINAPI NPSSetCustomTextA(LPSTR); 00084 #define NPSSetCustomText WINELIB_NAME_AW(NPSSetCustomText) 00085 DWORD WINAPI NPSCopyStringA(LPCSTR,LPVOID,LPDWORD); 00086 #define NPSCopyString WINELIB_NAME_AW(NPSCopyString) 00087 DWORD WINAPI NPSDeviceGetNumberA(LPSTR,LPDWORD,LPDWORD); 00088 #define NPSDeviceGetNumber WINELIB_NAME_AW(NPSDeviceGetNumber) 00089 DWORD WINAPI NPSDeviceGetStringA(DWORD,DWORD,LPSTR,LPDWORD); 00090 #define NPSDeviceGetString WINELIB_NAME_AW(NPSDeviceGetString) 00091 00092 00093 enum NOTIFYTYPE { NotifyAddConnection, 00094 NotifyCancelConnection, 00095 NotifyGetConnectionPerformance }; 00096 00097 #define NOTIFY_PRE 0x00 00098 #define NOTIFY_POST 0x01 00099 00100 typedef struct 00101 { 00102 DWORD cbStructure; 00103 DWORD dwNotifyStatus; 00104 DWORD dwOperationStatus; 00105 LPVOID lpNPContext; 00106 00107 } NOTIFYINFO, *LPNOTIFYINFO; 00108 00109 typedef struct 00110 { 00111 DWORD cbStructure; 00112 HWND hwndOwner; 00113 NETRESOURCEA NetResource; 00114 DWORD dwAddFlags; 00115 LPSTR lpAccessName; 00116 LPDWORD lpBufferSize; 00117 DWORD dwResult; 00118 DWORD dwAddContext; 00119 00120 } NOTIFYADDA, *LPNOTIFYADDA; 00121 00122 #define CONNECT_CTXT_RESTORE 0x00000001 00123 #define CONNECT_CTXT_GLOBAL 0x00000002 00124 #define CONNECT_CTXT_PROVIDER 0x00000004 00125 #define CONNECT_CTXT_SINGLE 0x00000008 00126 00127 typedef struct 00128 { 00129 DWORD cbStructure; 00130 LPSTR lpName; 00131 LPSTR lpProvider; 00132 DWORD dwFlags; 00133 BOOL fForce; 00134 00135 } NOTIFYCANCELA, *LPNOTIFYCANCELA; 00136 00137 typedef struct 00138 { 00139 DWORD cbStructure; 00140 LPSTR lpRemoteName; 00141 LPSTR lpProviderName; 00142 LPNETCONNECTINFOSTRUCT lpNetConnectInfo; 00143 00144 } NOTIFYPERFORMANCEA, *LPNOTIFYPERFORMANCEA; 00145 00146 typedef DWORD (CALLBACK *NOTIFYCALLBACK)(LPNOTIFYINFO,LPVOID); 00147 00148 DWORD WINAPI NPSNotifyRegisterA(enum NOTIFYTYPE,NOTIFYCALLBACK); 00149 #define NPSNotifyRegister WINELIB_NAME_AW(NPSNotifyRegister) 00150 LPVOID WINAPI NPSNotifyGetContextA(NOTIFYCALLBACK); 00151 #define NPSNotifyGetContext WINELIB_NAME_AW(NPSNotifyGetContext) 00152 00153 #endif /* _NETSPI_H_ */ Generated on Sat May 26 2012 04:23:17 for ReactOS by
1.7.6.1
|