ReactOS 0.4.16-dev-297-gc569aee
|
#include "precomp.h"
Go to the source code of this file.
Functions | |||||||||
AlignRpcPtr | |||||||||
Checks if the input buffer and buffer size are 4-byte aligned. If the buffer size is not 4-byte aligned, it is aligned down. If the input buffer is not 4-byte aligned, a 4-byte aligned buffer of the aligned down buffer size is allocated and returned.
| |||||||||
PVOID WINAPI | AlignRpcPtr (PVOID pBuffer, PDWORD pcbBuffer) | ||||||||
AllocSplStr | |||||||||
Allocates memory for a Unicode string and copies the input string into it. Equivalent of wcsdup, but the returned buffer is allocated from the spooler heap and must be freed with DllFreeSplStr.
| |||||||||
PWSTR WINAPI | AllocSplStr (PCWSTR pwszInput) | ||||||||
DllAllocSplMem | |||||||||
Allocate a block of zeroed memory. Windows allocates from a separate spooler heap here while we just use the process heap.
| |||||||||
PVOID WINAPI | DllAllocSplMem (DWORD dwBytes) | ||||||||
DllFreeSplMem | |||||||||
Frees the memory allocated with DllAllocSplMem.
| |||||||||
BOOL WINAPI | DllFreeSplMem (PVOID pMem) | ||||||||
DllFreeSplStr | |||||||||
Frees the string allocated with AllocSplStr.
| |||||||||
BOOL WINAPI | DllFreeSplStr (PWSTR pwszString) | ||||||||
ReallocSplMem | |||||||||
Allocates a new block of memory and copies the contents of the old block into the new one.
| |||||||||
PVOID WINAPI | ReallocSplMem (PVOID pOldMem, DWORD cbOld, DWORD cbNew) | ||||||||
ReallocSplStr | |||||||||
Frees a string allocated by AllocSplStr and copies the given Unicode string into a newly allocated block of memory.
| |||||||||
BOOL WINAPI | ReallocSplStr (PWSTR *ppwszString, PCWSTR pwszInput) | ||||||||
UndoAlignRpcPtr | |||||||||
Copies the data from the aligned buffer previously allocated by AlignRpcPtr back to the original unaligned buffer. The aligned buffer is freed. Also aligns up the returned required buffer size of a function to a 4-byte boundary.
| |||||||||
PDWORD WINAPI | UndoAlignRpcPtr (PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded) | ||||||||
Definition at line 29 of file memory.c.
Referenced by _RpcAddJob(), _RpcEnumForms(), _RpcEnumJobs(), _RpcEnumMonitors(), _RpcEnumPorts(), _RpcEnumPrinterDrivers(), _RpcEnumPrinters(), _RpcEnumPrintProcessorDatatypes(), _RpcEnumPrintProcessors(), _RpcGetForm(), _RpcGetJob(), _RpcGetPrinter(), _RpcGetPrinterDriver(), _RpcGetPrinterDriver2(), START_TEST(), and YGetPrinterDriver2().
Definition at line 56 of file memory.c.
Referenced by _CreateNonspooledPort(), _LocalOpenPrinterHandle(), AddPrintMonitorList(), CreateJob(), CreatePrinterFriendlyName(), InitializePrinterList(), OpenPrintProcessor(), ReadJobShadowFile(), ReallocSplStr(), and START_TEST().
Definition at line 95 of file memory.c.
Referenced by _AddPrintProviderToList(), _CreateNonspooledPort(), _GetNonspooledPortName(), _HandleAddPort(), _InitializePrintProviderList(), _LocalGetPrinterLevel0(), _LocalGetPrinterLevel1(), _LocalGetPrinterLevel2(), _LocalGetPrinterLevel4(), _LocalGetPrinterLevel5(), _LocalOpenPortHandle(), _LocalOpenPrinterHandle(), _LocalOpenPrintServerHandle(), _LocalOpenXcvHandle(), _MakePrinterSubKey(), _OpenEnvironment(), _RpcAddPrinterDriver(), _RpcAddPrinterDriverEx(), AddPrinterExW(), AddPrinterW(), AddPrintMonitorList(), AlignRpcPtr(), AllocAndRegQueryWSZ(), ConstructXcvName(), CreateJob(), CreatePortEntry(), CreatePrinterFriendlyName(), CreateUIUserData(), DoesPortExist(), DuplicateDevMode(), FreeJob(), GetMonitorUI(), GetPortNameWithoutColon(), InitializeFormList(), InitializeGlobalJobList(), InitializePortList(), InitializePrinterJobList(), InitializePrinterList(), InitializePrintMonitor2(), InitializePrintMonitorList(), InitializePrintProcessorList(), LocalAddForm(), LocalAddPort(), LocalEnumPrintProcessors(), LocalmonAddPort(), LocalmonAddPortEx(), LocalmonOpenPort(), LocalmonXcvOpenPort(), LocalOpenPrinter(), OpenPrinterW(), OpenPrintProcessor(), PrintingThreadProc(), PrintRawJob(), ReadJobShadowFile(), ReallocSplMem(), START_TEST(), and WriteJobShadowFile().
Definition at line 112 of file memory.c.
Referenced by _AddPrintProviderToList(), _ClosePortHandles(), _CreateNonspooledPort(), _HandleDeletePort(), _HandleSetDefaultCommConfig(), _InitializePrintProviderList(), _LocalClosePrinterHandle(), _LocalGetPrinterHandleData(), _LocalGetPrinterLevel0(), _LocalGetPrinterLevel1(), _LocalGetPrinterLevel2(), _LocalGetPrinterLevel4(), _LocalGetPrinterLevel5(), _LocalOpenPortHandle(), _LocalOpenPrinterHandle(), _LocalOpenXcvHandle(), _LocalSetPrinterHandleData(), _OpenEnvironment(), _RpcAddPrinterDriver(), _RpcAddPrinterDriverEx(), AddPrintMonitorList(), AllocAndRegQueryWSZ(), ClosePrinter(), ClosePrintProcessor(), ConstructXcvName(), CreateJob(), CreatePrinterFriendlyName(), CreateUIUserData(), DestroyUIUserData(), DoesPortExist(), FreeJob(), FreeMonitorUI(), GetMonitorUI(), InitializeGlobalJobList(), InitializePortList(), InitializePrinterJobList(), InitializePrinterList(), InitializePrintMonitor2(), InitializePrintMonitorList(), InitializePrintProcessorList(), LocalAddPort(), LocalClosePrinter(), LocalDeleteForm(), LocalDeleteMonitor(), LocalDeletePort(), LocalEnumPrintProcessors(), LocalmonClosePort(), LocalmonDeletePort(), LocalmonShutdown(), LocalmonXcvClosePort(), LocalOpenPrinter(), OpenPrintProcessor(), PrintingThreadProc(), PrintRawJob(), ReadJobShadowFile(), ReallocSplMem(), START_TEST(), UndoAlignRpcPtr(), and WriteJobShadowFile().
Definition at line 130 of file memory.c.
Referenced by _ClosePortHandles(), _CreateNonspooledPort(), _LocalClosePrinterHandle(), _LocalOpenPrinterHandle(), ClosePrintProcessor(), FreeJob(), InitializePrinterList(), InitializePrintProcessorList(), LocalDeleteMonitor(), and ReallocSplStr().
Definition at line 157 of file memory.c.
Definition at line 195 of file memory.c.
Referenced by _LocalSetJobLevel1(), _LocalSetJobLevel2(), LocalStartDocPrinter(), and START_TEST().
PDWORD WINAPI UndoAlignRpcPtr | ( | PVOID | pDestinationBuffer, |
PVOID | pSourceBuffer, | ||
DWORD | cbBuffer, | ||
PDWORD | pcbNeeded | ||
) |
Definition at line 239 of file memory.c.
Referenced by _RpcAddJob(), _RpcEnumForms(), _RpcEnumJobs(), _RpcEnumMonitors(), _RpcEnumPorts(), _RpcEnumPrinterDrivers(), _RpcEnumPrinters(), _RpcEnumPrintProcessorDatatypes(), _RpcEnumPrintProcessors(), _RpcGetForm(), _RpcGetJob(), _RpcGetPrinter(), _RpcGetPrinterDriver(), _RpcGetPrinterDriver2(), START_TEST(), and YGetPrinterDriver2().