ReactOS 0.4.16-dev-297-gc569aee
|
#include "precomp.h"
Go to the source code of this file.
Functions | |||||
_GetNonspooledPortName | |||||
Prepends "NONSPOOLED_" to a port name without colon.
| |||||
static __inline DWORD | _GetNonspooledPortName (PCWSTR pwszPortNameWithoutColon, PWSTR *ppwszNonspooledPortName) | ||||
_IsLegacyPort | |||||
Checks if the given port name is a legacy port (COM or LPT). This check is extra picky to not cause false positives (like file name ports starting with "COM" or "LPT").
| |||||
static __inline BOOL | _IsLegacyPort (PCWSTR pwszPortName, PCWSTR pwszPortType) | ||||
_ClosePortHandles | |||||
Closes a port of any type if it's open. Removes any saved mapping or existing definition of a NONSPOOLED device mapping.
| |||||
static void | _ClosePortHandles (PLOCALMON_PORT pPort) | ||||
_CreateNonspooledPort | |||||
Queries the system-wide device definition of the given port. If such a definition exists, it's a legacy port remapped to a named pipe by the spooler. In this case, the function creates and opens a NONSPOOLED device definition to the most recent mapping before the current one (usually the physical device).
| |||||
static BOOL | _CreateNonspooledPort (PLOCALMON_PORT pPort) | ||||
static PLOCALMON_PORT | _FindPort (PLOCALMON_HANDLE pLocalmon, PCWSTR pwszPortName) | ||||
static void | _LocalmonGetPortLevel1 (PLOCALMON_PORT pPort, PPORT_INFO_1W *ppPortInfo, PBYTE *ppPortInfoEnd, PDWORD pcbNeeded) | ||||
static void | _LocalmonGetPortLevel2 (PLOCALMON_PORT pPort, PPORT_INFO_2W *ppPortInfo, PBYTE *ppPortInfoEnd, PDWORD pcbNeeded) | ||||
_SetTransmissionRetryTimeout | |||||
Checks if the given port is a physical one and sets the transmission retry timeout in this case using the value from registry.
| |||||
static BOOL | _SetTransmissionRetryTimeout (PLOCALMON_PORT pPort) | ||||
BOOL WINAPI | LocalmonClosePort (HANDLE hPort) | ||||
BOOL WINAPI | LocalmonEndDocPort (HANDLE hPort) | ||||
BOOL WINAPI | LocalmonEnumPorts (HANDLE hMonitor, PWSTR pName, DWORD Level, PBYTE pPorts, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned) | ||||
BOOL WINAPI | LocalmonGetPrinterDataFromPort (HANDLE hPort, DWORD ControlID, PWSTR pValueName, PWSTR lpInBuffer, DWORD cbInBuffer, PWSTR lpOutBuffer, DWORD cbOutBuffer, PDWORD lpcbReturned) | ||||
BOOL WINAPI | LocalmonOpenPort (HANDLE hMonitor, PWSTR pName, PHANDLE pHandle) | ||||
BOOL WINAPI | LocalmonSetPortTimeOuts (HANDLE hPort, LPCOMMTIMEOUTS lpCTO, DWORD Reserved) | ||||
BOOL WINAPI | LocalmonReadPort (HANDLE hPort, PBYTE pBuffer, DWORD cbBuffer, PDWORD pcbRead) | ||||
BOOL WINAPI | LocalmonStartDocPort (HANDLE hPort, PWSTR pPrinterName, DWORD JobId, DWORD Level, PBYTE pDocInfo) | ||||
BOOL WINAPI | LocalmonWritePort (HANDLE hPort, PBYTE pBuffer, DWORD cbBuf, PDWORD pcbWritten) | ||||
BOOL WINAPI | LocalmonAddPortEx (HANDLE hMonitor, LPWSTR pName, DWORD Level, LPBYTE lpBuffer, LPWSTR lpMonitorName) | ||||
BOOL WINAPI | LocalmonAddPort (HANDLE hMonitor, LPWSTR pName, HWND hWnd, LPWSTR pMonitorName) | ||||
BOOL WINAPI | LocalmonConfigurePort (HANDLE hMonitor, LPWSTR pName, HWND hWnd, LPWSTR pPortName) | ||||
BOOL WINAPI | LocalmonDeletePort (HANDLE hMonitor, LPWSTR pName, HWND hWnd, LPWSTR pPortName) | ||||
Variables | |
static const WCHAR | wszNonspooledPrefix [] = L"NONSPOOLED_" |
static const DWORD | cchNonspooledPrefix = _countof(wszNonspooledPrefix) - 1 |
static DWORD | dwPortInfo1Offsets [] |
static DWORD | dwPortInfo2Offsets [] |
|
static |
Definition at line 113 of file ports.c.
Referenced by LocalmonClosePort(), LocalmonEndDocPort(), LocalmonGetPrinterDataFromPort(), LocalmonOpenPort(), LocalmonReadPort(), LocalmonSetPortTimeOuts(), and LocalmonWritePort().
|
static |
Definition at line 162 of file ports.c.
Referenced by LocalmonGetPrinterDataFromPort(), LocalmonOpenPort(), LocalmonReadPort(), LocalmonSetPortTimeOuts(), LocalmonStartDocPort(), and LocalmonWritePort().
|
static |
Definition at line 356 of file ports.c.
Referenced by LocalmonDeletePort(), and LocalmonOpenPort().
|
static |
Definition at line 44 of file ports.c.
Referenced by _ClosePortHandles(), and _CreateNonspooledPort().
Definition at line 79 of file ports.c.
Referenced by LocalmonOpenPort().
|
static |
Definition at line 373 of file ports.c.
Referenced by LocalmonEnumPorts().
|
static |
Definition at line 396 of file ports.c.
Referenced by LocalmonEnumPorts().
|
static |
Definition at line 440 of file ports.c.
Referenced by LocalmonOpenPort(), and LocalmonStartDocPort().
Definition at line 1137 of file ports.c.
BOOL WINAPI LocalmonAddPortEx | ( | HANDLE | hMonitor, |
LPWSTR | pName, | ||
DWORD | Level, | ||
LPBYTE | lpBuffer, | ||
LPWSTR | lpMonitorName | ||
) |
Definition at line 1054 of file ports.c.
Definition at line 456 of file ports.c.
Referenced by LocalmonShutdown().
Definition at line 1197 of file ports.c.
Definition at line 493 of file ports.c.
BOOL WINAPI LocalmonEnumPorts | ( | HANDLE | hMonitor, |
PWSTR | pName, | ||
DWORD | Level, | ||
PBYTE | pPorts, | ||
DWORD | cbBuf, | ||
PDWORD | pcbNeeded, | ||
PDWORD | pcReturned | ||
) |
Definition at line 530 of file ports.c.
BOOL WINAPI LocalmonGetPrinterDataFromPort | ( | HANDLE | hPort, |
DWORD | ControlID, | ||
PWSTR | pValueName, | ||
PWSTR | lpInBuffer, | ||
DWORD | cbInBuffer, | ||
PWSTR | lpOutBuffer, | ||
DWORD | cbOutBuffer, | ||
PDWORD | lpcbReturned | ||
) |
Definition at line 630 of file ports.c.
Definition at line 684 of file ports.c.
Definition at line 843 of file ports.c.
BOOL WINAPI LocalmonSetPortTimeOuts | ( | HANDLE | hPort, |
LPCOMMTIMEOUTS | lpCTO, | ||
DWORD | Reserved | ||
) |
Definition at line 789 of file ports.c.
BOOL WINAPI LocalmonStartDocPort | ( | HANDLE | hPort, |
PWSTR | pPrinterName, | ||
DWORD | JobId, | ||
DWORD | Level, | ||
PBYTE | pDocInfo | ||
) |
Definition at line 896 of file ports.c.
Definition at line 996 of file ports.c.
|
static |
Definition at line 12 of file ports.c.
Referenced by _CreateNonspooledPort(), and _GetNonspooledPortName().
|
static |
Definition at line 14 of file ports.c.
Referenced by _LocalmonGetPortLevel1().
|
static |
Definition at line 19 of file ports.c.
Referenced by _LocalmonGetPortLevel2(), and START_TEST().
Definition at line 11 of file ports.c.
Referenced by _CreateNonspooledPort(), and _GetNonspooledPortName().