2.2.2.5.2 _FORM_INFO_2

The _FORM_INFO_2 structure specifies printer media information.<111> It is a custom-marshaled form of the RPC_FORM_INFO_2 (section 2.2.1.6.2) structure.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Fixed_Portion (variable)

...

Variable_Data (variable)

...

Fixed_Portion (variable): An array of one or more groups of fixed-size fields, which are defined as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Flags

NameOffset

Size.cx

Size.cy

ImageableArea.left

ImageableArea.top

ImageableArea.right

ImageableArea.bottom

KeywordOffset

StringType

MuiDllOffset

dwResourceId

DisplayNameOffset

wLangID

unused

KeywordOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the KeywordArray member.

MuiDllOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the MuiDllArray member.

DisplayNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the DisplayNameArray member.

unused (2 bytes): A value that SHOULD be set to zero when sent and MUST be ignored on receipt.

Variable_Data (variable): An array of zero or more groups of optional, variable-size fields, which are defined as follows.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

NameArray (variable)

...

KeywordArray (variable)

...

MuiDllArray (variable)

...

DisplayNameArray (variable)

...

KeywordArray (variable): A string that specifies the form’s unique keyword. The location of this buffer is determined by the value of the KeywordOffset member.

MuiDllArray (variable): A string that specifies the MUI resource DLL name of the form. The location of this buffer is determined by the value of the MuiDllOffset member. 

DisplayNameArray (variable): A string that specifies the localized form name. The location of this buffer is determined by the value of the DisplayNameOffset member.