2.2.2.11 PRINTER_ENUM_VALUES

The PRINTER_ENUM_VALUES structure specifies the value name, type, and data for a printer configuration value.<179>


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

ValueNameOffset

cbValueName

dwType

DataOffset

cbData

ValueNameOffset (4 bytes): This member is a 32-bit unsigned integer that MUST specify the number of bytes from the start of the structure to the start of the ValueNameArray member.

cbValueName (4 bytes): The value of this member MUST specify the size of the ValueNameArray, in bytes.

dwType (4 bytes): The value of this member MUST specify the data type of the data in the DataArray member. For a list of the possible type codes, see section 2.2.3.9. For rules governing registry type values, see section 2.2.4.15.

DataOffset (4 bytes): This member is a 32-bit unsigned integer that MUST specify the number of bytes from the start of the structure to the start of the Data member.

cbData (4 bytes): The value of this member MUST specify the number of bytes retrieved in the DataArray buffer.

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

ValueNameArray (variable)

...

DataArray (variable)

...

ValueNameArray (variable): This member MUST contain a string that specifies the value name. The location of this buffer is determined by the value of the ValueNameOffset member. For rules governing value names, see section 2.2.4.18.

DataArray (variable): This member MUST contain the data for the retrieved value.

Show: