Compartilhar via


2.2.2.9.1 _PRINTER_INFO_STRESS

The _PRINTER_INFO_STRESS structure specifies printer diagnostic information.<120> It is a custom-marshaled form of the _PRINTER_INFO_STRESS (section 2.2.1.10.1) structure. This form of the _PRINTER_INFO_STRESS structure corresponds to an information Level value of 0x00000000.


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

PrinterNameOffset

ServerNameOffset

cJobs

cTotalJobs

cTotalBytes

stUpTime.wYear

stUpTime.wMonth

stUpTime.wDayOfWeek

stUpTime.wDay

stUpTime.wHour

stUpTime.wMinute

stUpTime.wSecond

stUpTime.wMilliseconds

MaxcRef

cTotalPagesPrinted

dwGetVersion

fFreeBuild

cSpooling

cMaxSpooling

cRef

cErrorOutOfPaper

cErrorNotReady

cJobError

dwNumberOfProcessors

dwProcessorType

dwHighPartTotalBytes

cChangeID

dwLastError

Status

cEnumerateNetworkPrinters

cAddNetPrinters

wProcessorArchitecture

wProcessorLevel

cRefIC

dwReserved2

dwReserved3

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

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

cJobs (4 bytes): The number of jobs that are currently in the print queue .

cTotalJobs (4 bytes): The total number of jobs that have been spooled since the print server was started.

cTotalBytes (4 bytes): The low-order 32 bits of an unsigned 64-bit value that specifies the total number of bytes that have been printed since system startup.

stUpTime (16 bytes): The time the printer data structure was created. It is a SYSTEMTIME structure ([MS-DTYP] section 2.3.13). Each field is 2 bytes that contains a WORD sized member in UTC.

MaxcRef (4 bytes): The historic maximum value of the cRef member.

cTotalPagesPrinted (4 bytes): The total number of pages printed.

dwGetVersion (4 bytes): An implementation-specific value that specifies the version of the operating system.<121>

fFreeBuild (4 bytes): An implementation-specific value that MUST be ignored on receipt.<122>

cSpooling (4 bytes): The number of actively spooling jobs.

cMaxSpooling (4 bytes): The historic maximum number of actively spooling jobs.

cRef (4 bytes): The reference count for opened printer objects.

cErrorOutOfPaper (4 bytes): The total number of out-of-paper errors.

cErrorNotReady (4 bytes): The total number of not-ready errors.

cJobError (4 bytes): The total number of job errors.

dwNumberOfProcessors (4 bytes): The number of processors in the computer on which the print server is running.

dwProcessorType (4 bytes): An implementation-specific value that identifies the type of processor in the computer.<123>

dwHighPartTotalBytes (4 bytes): The high-order 32 bits of an unsigned 64-bit value that specifies the total number of bytes that have been printed since system startup. The low-order 32 bits are specified by the cTotalBytes member.

cChangeID (4 bytes): A unique number that identifies the last change.

dwLastError (4 bytes): An implementation-specific error code for the last error that occurred with this printer.<124>

Status (4 bytes): The current printer status (section 2.2.3.12).

cEnumerateNetworkPrinters (4 bytes): The number of times the network printers in the "List of Known Printers" have been requested.

cAddNetPrinters (4 bytes): The number of network printers added, per server.

wProcessorArchitecture (2 bytes): An implementation-specific value that identifies the system's processor architecture. This value SHOULD be ignored on receipt.<125>

wProcessorLevel (2 bytes): An implementation-specific value that identifies the system's architecture-dependent processor level. This value SHOULD be ignored on receipt.<126>

cRefIC (4 bytes): The number of open information context (IC) handles.

dwReserved2 (4 bytes): Reserved for future use. The value of this member SHOULD be set to zero when sent and MUST be ignored on receipt.

dwReserved3 (4 bytes): Reserved for future use. The value of this member 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

PrinterNameArray (variable)

...

ServerNameArray (variable)

...

PrinterNameArray (variable): A string that specifies the printer name. The location of this buffer is determined by the value of the PrinterNameOffset member.

ServerNameArray (variable): A string that specifies the server name. The location of this buffer is determined by the value of the ServerNameOffset member.