18#ifndef __WINE_NPAPI_H__
19#define __WINE_NPAPI_H__
22#define WNNC_SPEC_VERSION 0x00000001
23#define WNNC_SPEC_VERSION51 0x00050001
24#define WNNC_NET_TYPE 0x00000002
25#define WNNC_NET_NONE 0x00000000
27#define WNNC_DRIVER_VERSION 0x00000003
29#define WNNC_USER 0x00000004
30#define WNNC_USR_GETUSER 0x00000001
32#define WNNC_CONNECTION 0x00000006
33#define WNNC_CON_ADDCONNECTION 0x00000001
34#define WNNC_CON_CANCELCONNECTION 0x00000002
35#define WNNC_CON_GETCONNECTIONS 0x00000004
36#define WNNC_CON_ADDCONNECTION3 0x00000008
38#define WNNC_DIALOG 0x00000008
39#define WNNC_DLG_DEVICEMODE 0x00000001
40#define WNNC_DLG_PROPERTYDIALOG 0x00000020
41#define WNNC_DLG_SEARCHDIALOG 0x00000040
42#define WNNC_DLG_FORMATNETWORKNAME 0x00000080
43#define WNNC_DLG_PERMISSIONEDITOR 0x00000100
44#define WNNC_DLG_GETRESOURCEPARENT 0x00000200
45#define WNNC_DLG_GETRESOURCEINFORMATION 0x00000800
47#define WNNC_ADMIN 0x00000009
48#define WNNC_ADM_GETDIRECTORYTYPE 0x00000001
49#define WNNC_ADM_DIRECTORYNOTIFY 0x00000002
51#define WNNC_ENUMERATION 0x0000000b
52#define WNNC_ENUM_GLOBAL 0x00000001
53#define WNNC_ENUM_LOCAL 0x00000002
54#define WNNC_ENUM_CONTEXT 0x00000004
56#define WNNC_START 0x0000000c
57#define WNNC_WAIT_FOR_START 0x00000001
89 DWORD dwAveCharPerLine);
95#define WNSRCH_REFRESH_FIRST_LEVEL 0x00000001
103#define WNTYPE_DRIVE 1
105#define WNTYPE_PRINTER 3
120#define WNDT_NETWORK 1
132#define WNPERMC_PERM 0x00000001
133#define WNPERMC_AUDIT 0x00000002
134#define WNPERMC_OWNER 0x00000004
138#define WNPERM_DLG_PERM 0
139#define WNPERM_DLG_AUDIT 1
140#define WNPERM_DLG_OWNER 2
151#define WNetSetLastError WINELIB_NAME_AW(WNetSetLastError)
154#define WN_NETWORK_CLASS 0x00000001
155#define WN_CREDENTIAL_CLASS 0x00000002
156#define WN_PRIMARY_AUTHENT_CLASS 0x00000004
157#define WN_SERVICE_CLASS 0x00000008
159#define WN_VALID_LOGON_ACCOUNT 0x00000001
160#define WN_NT_PASSWORD_CHANGED 0x00000002
165 LPCWSTR lpPreviousAuthentInfoType,
LPVOID lpPreviousAuthentInfo,
172#define NOTIFY_PRE 0x00000001
173#define NOTIFY_POST 0x00000002
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
DWORD(APIENTRY * PF_NPLogonNotify)(PLUID lpLogonId, LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle, LPWSTR *lpLogonScript)
DWORD(APIENTRY * PF_NPPasswordChangeNotify)(LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle, DWORD dwChangeInfo)
DWORD(APIENTRY * PF_NPEnumResource)(HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)
DWORD(APIENTRY * PF_NPGetConnection)(LPWSTR lpLocalName, LPWSTR lpRemoteName, LPDWORD lpnBufferLen)
DWORD(APIENTRY * PF_NPAddConnection)(LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName)
DWORD(APIENTRY * PF_NPOpenEnum)(DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum)
VOID WINAPI WNetSetLastErrorW(DWORD err, LPWSTR lpError, LPWSTR lpProviders)
DWORD(APIENTRY * PF_CancelConnectNotify)(LPNOTIFYINFO lpNotifyInfo, LPNOTIFYADD lpAddInfo)
struct _NOTIFYADD * LPNOTIFYADD
DWORD(APIENTRY * PF_NPFMXGetPermHelp)(LPWSTR lpDriveName, DWORD nDialogType, BOOL fDirectory, LPVOID lpFileNameBuffer, LPDWORD lpBufferSize, LPDWORD lpnHelpContext)
DWORD(APIENTRY * PF_NPGetCaps)(DWORD ndex)
DWORD(APIENTRY * PF_NPFMXEditPerm)(LPWSTR lpDriveName, HWND hwndFMX, DWORD nDialogType)
DWORD(APIENTRY * PF_NPGetPropertyText)(DWORD iButton, DWORD nPropSel, LPWSTR lpName, LPWSTR lpButtonName, DWORD nButtonNameLen, DWORD nType)
DWORD(APIENTRY * PF_NPFormatNetworkName)(LPWSTR lpRemoteName, LPWSTR lpFormattedName, LPDWORD lpnLength, DWORD dwFlags, DWORD dwAveCharPerLine)
VOID WINAPI WNetSetLastErrorA(DWORD err, LPSTR lpError, LPSTR lpProviders)
struct _NOTIFYCANCEL * LPNOTIFYCANCEL
DWORD(APIENTRY * PF_NPGetUser)(LPWSTR lpName, LPWSTR lpUserName, LPDWORD lpnBufferLen)
DWORD(APIENTRY * PF_AddConnectNotify)(LPNOTIFYINFO lpNotifyInfo, LPNOTIFYADD lpAddInfo)
DWORD(APIENTRY * PF_NPDirectoryNotify)(HWND hwnd, LPWSTR lpDir, DWORD dwOper)
DWORD(APIENTRY * PF_NPGetDirectoryType)(LPWSTR lpName, LPINT lpType, BOOL bFlushCache)
DWORD(APIENTRY * PF_NPSearchDialog)(HWND hwndParent, LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, DWORD cbBuffer, LPDWORD lpnFlags)
DWORD(APIENTRY * PF_NPFMXGetPermCaps)(LPWSTR lpDriveName)
struct _NOTIFYCANCEL NOTIFYCANCEL
DWORD(APIENTRY * PF_NPGetResourceInformation)(LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, LPDWORD lpcbBuffer, LPWSTR *lplpSystem)
DWORD(APIENTRY * PF_NPAddConnection3)(HWND hwndOwner, LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName, DWORD dwFlags)
DWORD(APIENTRY * PF_NPCancelConnection)(LPWSTR lpName, BOOL fForce)
DWORD(APIENTRY * PF_NPPropertyDialog)(HWND hwndParent, DWORD iButtonDlg, DWORD nPropSel, LPWSTR lpFileName, DWORD nType)
DWORD(APIENTRY * PF_NPCloseEnum)(HANDLE hEnum)
struct _NOTIFYADD NOTIFYADD
struct _NOTIFYINFO NOTIFYINFO
DWORD(APIENTRY * PF_NPGetUniversalName)(LPWSTR lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpnBufferSize)
DWORD(APIENTRY * PF_NPDeviceMode)(HWND hParent)
struct _NOTIFYINFO * LPNOTIFYINFO
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags