1 /* 2 * PROJECT: ReactOS Printing Stack Marshalling Functions 3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) 4 * PURPOSE: Marshalling definitions for FORM_INFO_* 5 * COPYRIGHT: Copyright 1998-2020 ReactOS 6 */ 7 8 static const MARSHALLING FormInfo1Marshalling = { 9 sizeof(FORM_INFO_1W), 10 { 11 { FIELD_OFFSET(FORM_INFO_1W, pName), RTL_FIELD_SIZE(FORM_INFO_1W, pName), RTL_FIELD_SIZE(FORM_INFO_1W, pName), TRUE }, 12 { MAXDWORD, 0, 0, FALSE } 13 } 14 }; 15 16 static const MARSHALLING FormInfo2Marshalling = { 17 sizeof(FORM_INFO_2W), 18 { 19 { FIELD_OFFSET(FORM_INFO_2W, pName), RTL_FIELD_SIZE(FORM_INFO_2W, pName), RTL_FIELD_SIZE(FORM_INFO_2W, pName), TRUE }, 20 { FIELD_OFFSET(FORM_INFO_2W, pKeyword), RTL_FIELD_SIZE(FORM_INFO_2W, pKeyword), RTL_FIELD_SIZE(FORM_INFO_2W, pKeyword), TRUE }, 21 { FIELD_OFFSET(FORM_INFO_2W, pMuiDll), RTL_FIELD_SIZE(FORM_INFO_2W, pMuiDll), RTL_FIELD_SIZE(FORM_INFO_2W, pMuiDll), TRUE }, 22 { FIELD_OFFSET(FORM_INFO_2W, pDisplayName), RTL_FIELD_SIZE(FORM_INFO_2W, pDisplayName), RTL_FIELD_SIZE(FORM_INFO_2W, pDisplayName), FALSE }, 23 { MAXDWORD, 0, 0, FALSE } 24 } 25 }; 26 27 static const MARSHALLING* pFormInfoMarshalling[] = { 28 NULL, 29 &FormInfo1Marshalling, 30 &FormInfo2Marshalling 31 }; 32