2.2.7.1.2 PrnDataRoot Structure
The PrnDataRoot structure describes a printer configuration value in the registry structure used by a printer driver that is associated with a printer. This structure is repeated for a count specified by the cItems member of the BIN file (section 2.2.7.1) header.
Printer configuration values control the behavior of the printer driver in a printer driver-specific way. A printer driver can define an arbitrary number of printer configuration values.
Printer configuration values are uniquely identified by the following attributes:
Key: An arbitrary string defined by the printer driver associated with a printer.
ValueName: A string that contains the name of the printer configuration value.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
cbSize |
|||||||||||||||||||||||||||||||
|
dwType |
|||||||||||||||||||||||||||||||
|
KeyOffset |
|||||||||||||||||||||||||||||||
|
ValueNameOffset |
|||||||||||||||||||||||||||||||
|
pDataOffset |
|||||||||||||||||||||||||||||||
|
cbData |
|||||||||||||||||||||||||||||||
|
Key (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
ValueName (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
Data (variable) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
cbSize (4 bytes): The total number of bytes in this PrnDataRoot.
dwType (4 bytes): A value that specifies a Registry Type value (section 2.2.3). For additional information about registry types, see [MSDN-RTV].
KeyOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the PrnDataRoot to the Key field.
ValueNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the PrnDataRoot to the ValueName field.
pDataOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the PrnDataRoot to the Data field.
cbData (4 bytes): The number of bytes in the Data field.
Key (variable): A string that contains the name of the key that corresponds to the printer configuration value identified by ValueName.
-
This field MUST be padded to the next 64-bit boundary.
ValueName (variable): A string that contains the name of a printer configuration value for the printer driver.
-
This field MUST be padded to the next 64-bit boundary.
Data (variable): A field containing data for the printer configuration value identified by ValueName. The data contained in this field MUST be interpreted according to the registry value type that is specified by the dwType field.
-
This field MUST be padded to the next 64-bit boundary.