mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
![Colin Finck](/assets/img/avatar_default.png)
PDBs reveal that these functions are also used in winspool.drv, but not imported from spoolss.dll to retain the client/server architecture. As winspool.drv highly benefits from the MarshallUp* functions, I put them in a source file shared between spoolss.dll and winspool.drv. The added API Tests cover my testing and all implemented features. One more item done from https://reactos.org/wiki/Printing !
27 lines
1.3 KiB
C
27 lines
1.3 KiB
C
/*
|
|
* PROJECT: ReactOS Printing Stack Marshalling Functions
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Marshalling definitions for PORT_INFO_*
|
|
* COPYRIGHT: Copyright 2015-2018 Colin Finck (colin@reactos.org)
|
|
*/
|
|
|
|
const MARSHALLING PortInfo1Marshalling = {
|
|
sizeof(PORT_INFO_1W),
|
|
{
|
|
{ FIELD_OFFSET(PORT_INFO_1W, pName), RTL_FIELD_SIZE(PORT_INFO_1W, pName), RTL_FIELD_SIZE(PORT_INFO_1W, pName), TRUE },
|
|
{ MAXDWORD, 0, 0, FALSE }
|
|
}
|
|
};
|
|
|
|
const MARSHALLING PortInfo2Marshalling = {
|
|
sizeof(PORT_INFO_2W),
|
|
{
|
|
{ FIELD_OFFSET(PORT_INFO_2W, pPortName), RTL_FIELD_SIZE(PORT_INFO_2W, pPortName), RTL_FIELD_SIZE(PORT_INFO_2W, pPortName), TRUE },
|
|
{ FIELD_OFFSET(PORT_INFO_2W, pMonitorName), RTL_FIELD_SIZE(PORT_INFO_2W, pMonitorName), RTL_FIELD_SIZE(PORT_INFO_2W, pMonitorName), TRUE },
|
|
{ FIELD_OFFSET(PORT_INFO_2W, pDescription), RTL_FIELD_SIZE(PORT_INFO_2W, pDescription), RTL_FIELD_SIZE(PORT_INFO_2W, pDescription), TRUE },
|
|
{ FIELD_OFFSET(PORT_INFO_2W, fPortType), RTL_FIELD_SIZE(PORT_INFO_2W, fPortType), RTL_FIELD_SIZE(PORT_INFO_2W, fPortType), FALSE },
|
|
{ FIELD_OFFSET(PORT_INFO_2W, Reserved), RTL_FIELD_SIZE(PORT_INFO_2W, Reserved), RTL_FIELD_SIZE(PORT_INFO_2W, Reserved), FALSE },
|
|
{ MAXDWORD, 0, 0, FALSE }
|
|
}
|
|
};
|