ReactOS 0.4.15-dev-7953-g1f49173
npapi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _NOTIFYINFO
 
struct  _NOTIFYADD
 
struct  _NOTIFYCANCEL
 

Macros

#define WNNC_SPEC_VERSION   0x00000001
 
#define WNNC_SPEC_VERSION51   0x00050001
 
#define WNNC_NET_TYPE   0x00000002
 
#define WNNC_NET_NONE   0x00000000
 
#define WNNC_DRIVER_VERSION   0x00000003
 
#define WNNC_USER   0x00000004
 
#define WNNC_USR_GETUSER   0x00000001
 
#define WNNC_CONNECTION   0x00000006
 
#define WNNC_CON_ADDCONNECTION   0x00000001
 
#define WNNC_CON_CANCELCONNECTION   0x00000002
 
#define WNNC_CON_GETCONNECTIONS   0x00000004
 
#define WNNC_CON_ADDCONNECTION3   0x00000008
 
#define WNNC_DIALOG   0x00000008
 
#define WNNC_DLG_DEVICEMODE   0x00000001
 
#define WNNC_DLG_PROPERTYDIALOG   0x00000020
 
#define WNNC_DLG_SEARCHDIALOG   0x00000040
 
#define WNNC_DLG_FORMATNETWORKNAME   0x00000080
 
#define WNNC_DLG_PERMISSIONEDITOR   0x00000100
 
#define WNNC_DLG_GETRESOURCEPARENT   0x00000200
 
#define WNNC_DLG_GETRESOURCEINFORMATION   0x00000800
 
#define WNNC_ADMIN   0x00000009
 
#define WNNC_ADM_GETDIRECTORYTYPE   0x00000001
 
#define WNNC_ADM_DIRECTORYNOTIFY   0x00000002
 
#define WNNC_ENUMERATION   0x0000000b
 
#define WNNC_ENUM_GLOBAL   0x00000001
 
#define WNNC_ENUM_LOCAL   0x00000002
 
#define WNNC_ENUM_CONTEXT   0x00000004
 
#define WNNC_START   0x0000000c
 
#define WNNC_WAIT_FOR_START   0x00000001
 
#define WNSRCH_REFRESH_FIRST_LEVEL   0x00000001
 
#define WNTYPE_DRIVE   1
 
#define WNTYPE_FILE   2
 
#define WNTYPE_PRINTER   3
 
#define WNTYPE_COMM   4
 
#define WNPS_FILE   0
 
#define WNPS_DIR   1
 
#define WNPS_MULT   2
 
#define WNDT_NORMAL   0
 
#define WNDT_NETWORK   1
 
#define WNDN_MKDIR   1
 
#define WNDN_RMDIR   2
 
#define WNDN_MVDIR   3
 
#define WNPERMC_PERM   0x00000001
 
#define WNPERMC_AUDIT   0x00000002
 
#define WNPERMC_OWNER   0x00000004
 
#define WNPERM_DLG_PERM   0
 
#define WNPERM_DLG_AUDIT   1
 
#define WNPERM_DLG_OWNER   2
 
#define WNetSetLastError   WINELIB_NAME_AW(WNetSetLastError)
 
#define WN_NETWORK_CLASS   0x00000001
 
#define WN_CREDENTIAL_CLASS   0x00000002
 
#define WN_PRIMARY_AUTHENT_CLASS   0x00000004
 
#define WN_SERVICE_CLASS   0x00000008
 
#define WN_VALID_LOGON_ACCOUNT   0x00000001
 
#define WN_NT_PASSWORD_CHANGED   0x00000002
 
#define NOTIFY_PRE   0x00000001
 
#define NOTIFY_POST   0x00000002
 

Typedefs

typedef DWORD(APIENTRYPF_NPGetCaps) (DWORD ndex)
 
typedef DWORD(APIENTRYPF_NPGetUser) (LPWSTR lpName, LPWSTR lpUserName, LPDWORD lpnBufferLen)
 
typedef DWORD(APIENTRYPF_NPOpenEnum) (DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum)
 
typedef DWORD(APIENTRYPF_NPEnumResource) (HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)
 
typedef DWORD(APIENTRYPF_NPCloseEnum) (HANDLE hEnum)
 
typedef DWORD(APIENTRYPF_NPGetResourceInformation) (LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, LPDWORD lpcbBuffer, LPWSTR *lplpSystem)
 
typedef DWORD(APIENTRYPF_NPAddConnection) (LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName)
 
typedef DWORD(APIENTRYPF_NPAddConnection3) (HWND hwndOwner, LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName, DWORD dwFlags)
 
typedef DWORD(APIENTRYPF_NPCancelConnection) (LPWSTR lpName, BOOL fForce)
 
typedef DWORD(APIENTRYPF_NPGetConnection) (LPWSTR lpLocalName, LPWSTR lpRemoteName, LPDWORD lpnBufferLen)
 
typedef DWORD(APIENTRYPF_NPGetUniversalName) (LPWSTR lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpnBufferSize)
 
typedef DWORD(APIENTRYPF_NPFormatNetworkName) (LPWSTR lpRemoteName, LPWSTR lpFormattedName, LPDWORD lpnLength, DWORD dwFlags, DWORD dwAveCharPerLine)
 
typedef DWORD(APIENTRYPF_NPDeviceMode) (HWND hParent)
 
typedef DWORD(APIENTRYPF_NPSearchDialog) (HWND hwndParent, LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, DWORD cbBuffer, LPDWORD lpnFlags)
 
typedef DWORD(APIENTRYPF_NPGetPropertyText) (DWORD iButton, DWORD nPropSel, LPWSTR lpName, LPWSTR lpButtonName, DWORD nButtonNameLen, DWORD nType)
 
typedef DWORD(APIENTRYPF_NPPropertyDialog) (HWND hwndParent, DWORD iButtonDlg, DWORD nPropSel, LPWSTR lpFileName, DWORD nType)
 
typedef DWORD(APIENTRYPF_NPGetDirectoryType) (LPWSTR lpName, LPINT lpType, BOOL bFlushCache)
 
typedef DWORD(APIENTRYPF_NPDirectoryNotify) (HWND hwnd, LPWSTR lpDir, DWORD dwOper)
 
typedef DWORD(APIENTRYPF_NPFMXGetPermCaps) (LPWSTR lpDriveName)
 
typedef DWORD(APIENTRYPF_NPFMXEditPerm) (LPWSTR lpDriveName, HWND hwndFMX, DWORD nDialogType)
 
typedef DWORD(APIENTRYPF_NPFMXGetPermHelp) (LPWSTR lpDriveName, DWORD nDialogType, BOOL fDirectory, LPVOID lpFileNameBuffer, LPDWORD lpBufferSize, LPDWORD lpnHelpContext)
 
typedef DWORD(APIENTRYPF_NPLogonNotify) (PLUID lpLogonId, LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle, LPWSTR *lpLogonScript)
 
typedef DWORD(APIENTRYPF_NPPasswordChangeNotify) (LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle, DWORD dwChangeInfo)
 
typedef struct _NOTIFYINFO NOTIFYINFO
 
typedef struct _NOTIFYINFOLPNOTIFYINFO
 
typedef struct _NOTIFYADD NOTIFYADD
 
typedef struct _NOTIFYADDLPNOTIFYADD
 
typedef struct _NOTIFYCANCEL NOTIFYCANCEL
 
typedef struct _NOTIFYCANCELLPNOTIFYCANCEL
 
typedef DWORD(APIENTRYPF_AddConnectNotify) (LPNOTIFYINFO lpNotifyInfo, LPNOTIFYADD lpAddInfo)
 
typedef DWORD(APIENTRYPF_CancelConnectNotify) (LPNOTIFYINFO lpNotifyInfo, LPNOTIFYADD lpAddInfo)
 

Functions

VOID WINAPI WNetSetLastErrorA (DWORD err, LPSTR lpError, LPSTR lpProviders)
 
VOID WINAPI WNetSetLastErrorW (DWORD err, LPWSTR lpError, LPWSTR lpProviders)
 

Macro Definition Documentation

◆ NOTIFY_POST

#define NOTIFY_POST   0x00000002

Definition at line 173 of file npapi.h.

◆ NOTIFY_PRE

#define NOTIFY_PRE   0x00000001

Definition at line 172 of file npapi.h.

◆ WN_CREDENTIAL_CLASS

#define WN_CREDENTIAL_CLASS   0x00000002

Definition at line 155 of file npapi.h.

◆ WN_NETWORK_CLASS

#define WN_NETWORK_CLASS   0x00000001

Definition at line 154 of file npapi.h.

◆ WN_NT_PASSWORD_CHANGED

#define WN_NT_PASSWORD_CHANGED   0x00000002

Definition at line 160 of file npapi.h.

◆ WN_PRIMARY_AUTHENT_CLASS

#define WN_PRIMARY_AUTHENT_CLASS   0x00000004

Definition at line 156 of file npapi.h.

◆ WN_SERVICE_CLASS

#define WN_SERVICE_CLASS   0x00000008

Definition at line 157 of file npapi.h.

◆ WN_VALID_LOGON_ACCOUNT

#define WN_VALID_LOGON_ACCOUNT   0x00000001

Definition at line 159 of file npapi.h.

◆ WNDN_MKDIR

#define WNDN_MKDIR   1

Definition at line 122 of file npapi.h.

◆ WNDN_MVDIR

#define WNDN_MVDIR   3

Definition at line 124 of file npapi.h.

◆ WNDN_RMDIR

#define WNDN_RMDIR   2

Definition at line 123 of file npapi.h.

◆ WNDT_NETWORK

#define WNDT_NETWORK   1

Definition at line 120 of file npapi.h.

◆ WNDT_NORMAL

#define WNDT_NORMAL   0

Definition at line 119 of file npapi.h.

◆ WNetSetLastError

#define WNetSetLastError   WINELIB_NAME_AW(WNetSetLastError)

Definition at line 151 of file npapi.h.

◆ WNNC_ADM_DIRECTORYNOTIFY

#define WNNC_ADM_DIRECTORYNOTIFY   0x00000002

Definition at line 49 of file npapi.h.

◆ WNNC_ADM_GETDIRECTORYTYPE

#define WNNC_ADM_GETDIRECTORYTYPE   0x00000001

Definition at line 48 of file npapi.h.

◆ WNNC_ADMIN

#define WNNC_ADMIN   0x00000009

Definition at line 47 of file npapi.h.

◆ WNNC_CON_ADDCONNECTION

#define WNNC_CON_ADDCONNECTION   0x00000001

Definition at line 33 of file npapi.h.

◆ WNNC_CON_ADDCONNECTION3

#define WNNC_CON_ADDCONNECTION3   0x00000008

Definition at line 36 of file npapi.h.

◆ WNNC_CON_CANCELCONNECTION

#define WNNC_CON_CANCELCONNECTION   0x00000002

Definition at line 34 of file npapi.h.

◆ WNNC_CON_GETCONNECTIONS

#define WNNC_CON_GETCONNECTIONS   0x00000004

Definition at line 35 of file npapi.h.

◆ WNNC_CONNECTION

#define WNNC_CONNECTION   0x00000006

Definition at line 32 of file npapi.h.

◆ WNNC_DIALOG

#define WNNC_DIALOG   0x00000008

Definition at line 38 of file npapi.h.

◆ WNNC_DLG_DEVICEMODE

#define WNNC_DLG_DEVICEMODE   0x00000001

Definition at line 39 of file npapi.h.

◆ WNNC_DLG_FORMATNETWORKNAME

#define WNNC_DLG_FORMATNETWORKNAME   0x00000080

Definition at line 42 of file npapi.h.

◆ WNNC_DLG_GETRESOURCEINFORMATION

#define WNNC_DLG_GETRESOURCEINFORMATION   0x00000800

Definition at line 45 of file npapi.h.

◆ WNNC_DLG_GETRESOURCEPARENT

#define WNNC_DLG_GETRESOURCEPARENT   0x00000200

Definition at line 44 of file npapi.h.

◆ WNNC_DLG_PERMISSIONEDITOR

#define WNNC_DLG_PERMISSIONEDITOR   0x00000100

Definition at line 43 of file npapi.h.

◆ WNNC_DLG_PROPERTYDIALOG

#define WNNC_DLG_PROPERTYDIALOG   0x00000020

Definition at line 40 of file npapi.h.

◆ WNNC_DLG_SEARCHDIALOG

#define WNNC_DLG_SEARCHDIALOG   0x00000040

Definition at line 41 of file npapi.h.

◆ WNNC_DRIVER_VERSION

#define WNNC_DRIVER_VERSION   0x00000003

Definition at line 27 of file npapi.h.

◆ WNNC_ENUM_CONTEXT

#define WNNC_ENUM_CONTEXT   0x00000004

Definition at line 54 of file npapi.h.

◆ WNNC_ENUM_GLOBAL

#define WNNC_ENUM_GLOBAL   0x00000001

Definition at line 52 of file npapi.h.

◆ WNNC_ENUM_LOCAL

#define WNNC_ENUM_LOCAL   0x00000002

Definition at line 53 of file npapi.h.

◆ WNNC_ENUMERATION

#define WNNC_ENUMERATION   0x0000000b

Definition at line 51 of file npapi.h.

◆ WNNC_NET_NONE

#define WNNC_NET_NONE   0x00000000

Definition at line 25 of file npapi.h.

◆ WNNC_NET_TYPE

#define WNNC_NET_TYPE   0x00000002

Definition at line 24 of file npapi.h.

◆ WNNC_SPEC_VERSION

#define WNNC_SPEC_VERSION   0x00000001

Definition at line 22 of file npapi.h.

◆ WNNC_SPEC_VERSION51

#define WNNC_SPEC_VERSION51   0x00050001

Definition at line 23 of file npapi.h.

◆ WNNC_START

#define WNNC_START   0x0000000c

Definition at line 56 of file npapi.h.

◆ WNNC_USER

#define WNNC_USER   0x00000004

Definition at line 29 of file npapi.h.

◆ WNNC_USR_GETUSER

#define WNNC_USR_GETUSER   0x00000001

Definition at line 30 of file npapi.h.

◆ WNNC_WAIT_FOR_START

#define WNNC_WAIT_FOR_START   0x00000001

Definition at line 57 of file npapi.h.

◆ WNPERM_DLG_AUDIT

#define WNPERM_DLG_AUDIT   1

Definition at line 139 of file npapi.h.

◆ WNPERM_DLG_OWNER

#define WNPERM_DLG_OWNER   2

Definition at line 140 of file npapi.h.

◆ WNPERM_DLG_PERM

#define WNPERM_DLG_PERM   0

Definition at line 138 of file npapi.h.

◆ WNPERMC_AUDIT

#define WNPERMC_AUDIT   0x00000002

Definition at line 133 of file npapi.h.

◆ WNPERMC_OWNER

#define WNPERMC_OWNER   0x00000004

Definition at line 134 of file npapi.h.

◆ WNPERMC_PERM

#define WNPERMC_PERM   0x00000001

Definition at line 132 of file npapi.h.

◆ WNPS_DIR

#define WNPS_DIR   1

Definition at line 109 of file npapi.h.

◆ WNPS_FILE

#define WNPS_FILE   0

Definition at line 108 of file npapi.h.

◆ WNPS_MULT

#define WNPS_MULT   2

Definition at line 110 of file npapi.h.

◆ WNSRCH_REFRESH_FIRST_LEVEL

#define WNSRCH_REFRESH_FIRST_LEVEL   0x00000001

Definition at line 95 of file npapi.h.

◆ WNTYPE_COMM

#define WNTYPE_COMM   4

Definition at line 106 of file npapi.h.

◆ WNTYPE_DRIVE

#define WNTYPE_DRIVE   1

Definition at line 103 of file npapi.h.

◆ WNTYPE_FILE

#define WNTYPE_FILE   2

Definition at line 104 of file npapi.h.

◆ WNTYPE_PRINTER

#define WNTYPE_PRINTER   3

Definition at line 105 of file npapi.h.

Typedef Documentation

◆ LPNOTIFYADD

◆ LPNOTIFYCANCEL

◆ LPNOTIFYINFO

◆ NOTIFYADD

◆ NOTIFYCANCEL

◆ NOTIFYINFO

◆ PF_AddConnectNotify

typedef DWORD(APIENTRY * PF_AddConnectNotify) (LPNOTIFYINFO lpNotifyInfo, LPNOTIFYADD lpAddInfo)

Definition at line 204 of file npapi.h.

◆ PF_CancelConnectNotify

typedef DWORD(APIENTRY * PF_CancelConnectNotify) (LPNOTIFYINFO lpNotifyInfo, LPNOTIFYADD lpAddInfo)

Definition at line 206 of file npapi.h.

◆ PF_NPAddConnection

typedef DWORD(APIENTRY * PF_NPAddConnection) (LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName)

Definition at line 75 of file npapi.h.

◆ PF_NPAddConnection3

typedef DWORD(APIENTRY * PF_NPAddConnection3) (HWND hwndOwner, LPNETRESOURCEW lpNetResource, LPWSTR lpPassword, LPWSTR lpUserName, DWORD dwFlags)

Definition at line 77 of file npapi.h.

◆ PF_NPCancelConnection

typedef DWORD(APIENTRY * PF_NPCancelConnection) (LPWSTR lpName, BOOL fForce)

Definition at line 80 of file npapi.h.

◆ PF_NPCloseEnum

typedef DWORD(APIENTRY * PF_NPCloseEnum) (HANDLE hEnum)

Definition at line 70 of file npapi.h.

◆ PF_NPDeviceMode

typedef DWORD(APIENTRY * PF_NPDeviceMode) (HWND hParent)

Definition at line 92 of file npapi.h.

◆ PF_NPDirectoryNotify

typedef DWORD(APIENTRY * PF_NPDirectoryNotify) (HWND hwnd, LPWSTR lpDir, DWORD dwOper)

Definition at line 128 of file npapi.h.

◆ PF_NPEnumResource

typedef DWORD(APIENTRY * PF_NPEnumResource) (HANDLE hEnum, LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)

Definition at line 68 of file npapi.h.

◆ PF_NPFMXEditPerm

typedef DWORD(APIENTRY * PF_NPFMXEditPerm) (LPWSTR lpDriveName, HWND hwndFMX, DWORD nDialogType)

Definition at line 142 of file npapi.h.

◆ PF_NPFMXGetPermCaps

typedef DWORD(APIENTRY * PF_NPFMXGetPermCaps) (LPWSTR lpDriveName)

Definition at line 136 of file npapi.h.

◆ PF_NPFMXGetPermHelp

typedef DWORD(APIENTRY * PF_NPFMXGetPermHelp) (LPWSTR lpDriveName, DWORD nDialogType, BOOL fDirectory, LPVOID lpFileNameBuffer, LPDWORD lpBufferSize, LPDWORD lpnHelpContext)

Definition at line 145 of file npapi.h.

◆ PF_NPFormatNetworkName

typedef DWORD(APIENTRY * PF_NPFormatNetworkName) (LPWSTR lpRemoteName, LPWSTR lpFormattedName, LPDWORD lpnLength, DWORD dwFlags, DWORD dwAveCharPerLine)

Definition at line 87 of file npapi.h.

◆ PF_NPGetCaps

typedef DWORD(APIENTRY * PF_NPGetCaps) (DWORD ndex)

Definition at line 59 of file npapi.h.

◆ PF_NPGetConnection

typedef DWORD(APIENTRY * PF_NPGetConnection) (LPWSTR lpLocalName, LPWSTR lpRemoteName, LPDWORD lpnBufferLen)

Definition at line 81 of file npapi.h.

◆ PF_NPGetDirectoryType

typedef DWORD(APIENTRY * PF_NPGetDirectoryType) (LPWSTR lpName, LPINT lpType, BOOL bFlushCache)

Definition at line 126 of file npapi.h.

◆ PF_NPGetPropertyText

typedef DWORD(APIENTRY * PF_NPGetPropertyText) (DWORD iButton, DWORD nPropSel, LPWSTR lpName, LPWSTR lpButtonName, DWORD nButtonNameLen, DWORD nType)

Definition at line 112 of file npapi.h.

◆ PF_NPGetResourceInformation

typedef DWORD(APIENTRY * PF_NPGetResourceInformation) (LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, LPDWORD lpcbBuffer, LPWSTR *lplpSystem)

Definition at line 71 of file npapi.h.

◆ PF_NPGetUniversalName

typedef DWORD(APIENTRY * PF_NPGetUniversalName) (LPWSTR lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpnBufferSize)

Definition at line 85 of file npapi.h.

◆ PF_NPGetUser

typedef DWORD(APIENTRY * PF_NPGetUser) (LPWSTR lpName, LPWSTR lpUserName, LPDWORD lpnBufferLen)

Definition at line 62 of file npapi.h.

◆ PF_NPLogonNotify

typedef DWORD(APIENTRY * PF_NPLogonNotify) (PLUID lpLogonId, LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle, LPWSTR *lpLogonScript)

Definition at line 163 of file npapi.h.

◆ PF_NPOpenEnum

typedef DWORD(APIENTRY * PF_NPOpenEnum) (DWORD dwScope, DWORD dwType, DWORD dwUsage, LPNETRESOURCEW lpNetResource, LPHANDLE lphEnum)

Definition at line 66 of file npapi.h.

◆ PF_NPPasswordChangeNotify

typedef DWORD(APIENTRY * PF_NPPasswordChangeNotify) (LPCWSTR lpAuthentInfoType, LPVOID lpAuthentInfo, LPCWSTR lpPreviousAuthentInfoType, LPVOID lpPreviousAuthentInfo, LPWSTR lpStationName, LPVOID StationHandle, DWORD dwChangeInfo)

Definition at line 167 of file npapi.h.

◆ PF_NPPropertyDialog

typedef DWORD(APIENTRY * PF_NPPropertyDialog) (HWND hwndParent, DWORD iButtonDlg, DWORD nPropSel, LPWSTR lpFileName, DWORD nType)

Definition at line 115 of file npapi.h.

◆ PF_NPSearchDialog

typedef DWORD(APIENTRY * PF_NPSearchDialog) (HWND hwndParent, LPNETRESOURCEW lpNetResource, LPVOID lpBuffer, DWORD cbBuffer, LPDWORD lpnFlags)

Definition at line 97 of file npapi.h.

Function Documentation

◆ WNetSetLastErrorA()

VOID WINAPI WNetSetLastErrorA ( DWORD  err,
LPSTR  lpError,
LPSTR  lpProviders 
)

◆ WNetSetLastErrorW()

VOID WINAPI WNetSetLastErrorW ( DWORD  err,
LPWSTR  lpError,
LPWSTR  lpProviders 
)