ReactOS 0.4.16-dev-336-gb667d82
|
#include "precomp.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | PLocalGetPrinterLevelFunc) (PLOCAL_PRINTER, PVOID, PBYTE *, PDWORD, DWORD, PCWSTR) |
Functions | |||||||||
_LocalEnumPrintersCheckName | |||||||||
Checks the Name parameter supplied to a call to EnumPrinters.
| |||||||||
static void | _LocalGetPrinterLevel0 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_STRESS *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel1 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_1W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel2 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_2W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel3 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_3 *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel4 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_4W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel5 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_5W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel6 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_6 *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel7 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_7W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel8 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_8W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static void | _LocalGetPrinterLevel9 (PLOCAL_PRINTER pPrinter, PPRINTER_INFO_9W *ppPrinterInfo, PBYTE *ppPrinterInfoEnd, PDWORD pcbNeeded, DWORD cchComputerName, PCWSTR wszComputerName) | ||||||||
static DWORD | _LocalEnumPrintersCheckName (DWORD Flags, PCWSTR Name, PWSTR pwszComputerName, PDWORD pcchComputerName) | ||||||||
static DWORD | _DumpLevel1PrintProviderInformation (PBYTE pPrinterEnum, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned) | ||||||||
BOOL WINAPI | LocalEnumPrinters (DWORD Flags, LPWSTR Name, DWORD Level, LPBYTE pPrinterEnum, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned) | ||||||||
BOOL WINAPI | LocalGetPrinter (HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded) | ||||||||
static DWORD | _LocalOpenPortHandle (PWSTR pwszPortName, PHANDLE phPrinter) | ||||||||
static DWORD | _LocalOpenPrinterHandle (PWSTR pwszPrinterName, PWSTR pwszJobParameter, PHANDLE phPrinter, PPRINTER_DEFAULTSW pDefault) | ||||||||
static DWORD | _LocalOpenPrintServerHandle (PHANDLE phPrinter) | ||||||||
static DWORD | _LocalOpenXcvHandle (PWSTR pwszParameter, PHANDLE phPrinter) | ||||||||
DWORD WINAPI | LocalPrinterMessageBox (HANDLE hPrinter, DWORD Error, HWND hWnd, LPWSTR pText, LPWSTR pCaption, DWORD dwType) | ||||||||
BOOL WINAPI | LocalOpenPrinter (PWSTR lpPrinterName, HANDLE *phPrinter, PPRINTER_DEFAULTSW pDefault) | ||||||||
BOOL WINAPI | LocalReadPrinter (HANDLE hPrinter, PVOID pBuf, DWORD cbBuf, PDWORD pNoBytesRead) | ||||||||
DWORD WINAPI | LocalStartDocPrinter (HANDLE hPrinter, DWORD Level, PBYTE pDocInfo) | ||||||||
BOOL WINAPI | LocalStartPagePrinter (HANDLE hPrinter) | ||||||||
BOOL WINAPI | LocalWritePrinter (HANDLE hPrinter, PVOID pBuf, DWORD cbBuf, PDWORD pcWritten) | ||||||||
BOOL WINAPI | LocalEndPagePrinter (HANDLE hPrinter) | ||||||||
BOOL WINAPI | LocalEndDocPrinter (HANDLE hPrinter) | ||||||||
static void | _LocalClosePortHandle (PLOCAL_PORT_HANDLE pPortHandle) | ||||||||
static void | _LocalClosePrinterHandle (PLOCAL_PRINTER_HANDLE pPrinterHandle) | ||||||||
static void | _LocalCloseXcvHandle (PLOCAL_XCV_HANDLE pXcvHandle) | ||||||||
BOOL WINAPI | LocalClosePrinter (HANDLE hPrinter) | ||||||||
_PrinterListCompareRoutine | |||||||||
SKIPLIST_COMPARE_ROUTINE for the Printer List. Does a case-insensitive comparison, because e.g. LocalOpenPrinter doesn't match the case when looking for Printers. | |||||||||
static int WINAPI | _PrinterListCompareRoutine (PVOID FirstStruct, PVOID SecondStruct) | ||||||||
InitializePrinterList | |||||||||
Initializes a list of locally available Printers. The list is searchable by name and returns information about the printers, including their job queues. During this process, the job queues are also initialized. | |||||||||
BOOL | InitializePrinterList (VOID) | ||||||||
VOID | BroadcastChange (PLOCAL_HANDLE pHandle) | ||||||||
Variables | |
SKIPLIST | PrinterList |
static const PLocalGetPrinterLevelFunc | pfnGetPrinterLevels [] |
static DWORD | dwPrinterInfo0Offsets [] |
static DWORD | dwPrinterInfo1Offsets [] |
static DWORD | dwPrinterInfo2Offsets [] |
static DWORD | dwPrinterInfo4Offsets [] |
static DWORD | dwPrinterInfo5Offsets [] |
static const DWORD | dwDeviceNotSelectedTimeout = 15000 |
static const DWORD | dwTransmissionRetryTimeout = 45000 |
Definition at line 26 of file printers.c.
|
static |
Definition at line 486 of file printers.c.
Referenced by LocalEnumPrinters().
|
static |
Definition at line 1926 of file printers.c.
Referenced by LocalClosePrinter().
|
static |
Definition at line 1937 of file printers.c.
Referenced by LocalClosePrinter().
|
static |
Definition at line 1950 of file printers.c.
Referenced by LocalClosePrinter().
|
static |
Definition at line 391 of file printers.c.
Referenced by LocalEnumPrinters().
|
static |
Definition at line 509 of file printers.c.
|
static |
Definition at line 556 of file printers.c.
|
static |
Definition at line 611 of file printers.c.
|
static |
Definition at line 704 of file printers.c.
|
static |
Definition at line 726 of file printers.c.
|
static |
Definition at line 760 of file printers.c.
|
static |
Definition at line 801 of file printers.c.
|
static |
Definition at line 817 of file printers.c.
|
static |
Definition at line 836 of file printers.c.
|
static |
Definition at line 859 of file printers.c.
Definition at line 1043 of file printers.c.
Referenced by LocalOpenPrinter().
|
static |
Definition at line 1117 of file printers.c.
Referenced by LocalOpenPrinter().
Definition at line 1258 of file printers.c.
Referenced by LocalOpenPrinter().
Definition at line 1280 of file printers.c.
Referenced by LocalOpenPrinter().
Definition at line 91 of file printers.c.
Referenced by InitializePrinterList().
VOID BroadcastChange | ( | PLOCAL_HANDLE | pHandle | ) |
Definition at line 350 of file printers.c.
Referenced by LocalAddForm(), LocalDeleteForm(), and LocalSetForm().
Definition at line 107 of file printers.c.
Referenced by _InitializeLocalSpooler().
Definition at line 1960 of file printers.c.
Definition at line 1857 of file printers.c.
Definition at line 1834 of file printers.c.
BOOL WINAPI LocalEnumPrinters | ( | DWORD | Flags, |
LPWSTR | Name, | ||
DWORD | Level, | ||
LPBYTE | pPrinterEnum, | ||
DWORD | cbBuf, | ||
LPDWORD | pcbNeeded, | ||
LPDWORD | pcReturned | ||
) |
Definition at line 884 of file printers.c.
BOOL WINAPI LocalGetPrinter | ( | HANDLE | hPrinter, |
DWORD | Level, | ||
LPBYTE | pPrinter, | ||
DWORD | cbBuf, | ||
LPDWORD | pcbNeeded | ||
) |
Definition at line 985 of file printers.c.
BOOL WINAPI LocalOpenPrinter | ( | PWSTR | lpPrinterName, |
HANDLE * | phPrinter, | ||
PPRINTER_DEFAULTSW | pDefault | ||
) |
Definition at line 1398 of file printers.c.
DWORD WINAPI LocalPrinterMessageBox | ( | HANDLE | hPrinter, |
DWORD | Error, | ||
HWND | hWnd, | ||
LPWSTR | pText, | ||
LPWSTR | pCaption, | ||
DWORD | dwType | ||
) |
Definition at line 1391 of file printers.c.
Definition at line 1534 of file printers.c.
Definition at line 1607 of file printers.c.
Definition at line 1724 of file printers.c.
Definition at line 1758 of file printers.c.
These values serve no purpose anymore, but are still used in PRINTER_INFO_5 and HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts
Definition at line 80 of file printers.c.
Referenced by _LocalGetPrinterLevel5().
|
static |
Definition at line 41 of file printers.c.
Referenced by _LocalGetPrinterLevel0().
|
static |
Definition at line 46 of file printers.c.
Referenced by _DumpLevel1PrintProviderInformation(), and _LocalGetPrinterLevel1().
|
static |
Definition at line 53 of file printers.c.
Referenced by _LocalGetPrinterLevel2().
|
static |
Definition at line 67 of file printers.c.
Referenced by _LocalGetPrinterLevel4().
|
static |
Definition at line 72 of file printers.c.
Referenced by _LocalGetPrinterLevel5().
Definition at line 81 of file printers.c.
Referenced by _LocalGetPrinterLevel5().
|
static |
Definition at line 28 of file printers.c.
Referenced by LocalEnumPrinters(), and LocalGetPrinter().
SKIPLIST PrinterList |
Definition at line 11 of file printers.c.
Referenced by _LocalOpenPrinterHandle(), BroadcastChange(), InitializePrinterList(), LocalEnumPrinterDrivers(), LocalEnumPrinters(), and ReadJobShadowFile().