Compartilhar via


2.2.1.13.2 RPC_V2_NOTIFY_OPTIONS_TYPE

The RPC_V2_NOTIFY_OPTIONS_TYPE structure specifies the set of printer or job information members to be monitored by a printer change notification object.<74>

 typedef struct _RPC_V2_NOTIFY_OPTIONS_TYPE {
   unsigned short Type;
   unsigned short Reserved0;
   DWORD Reserved1;
   DWORD Reserved2;
   DWORD Count;
   [size_is(Count), unique] unsigned short* pFields;
 } RPC_V2_NOTIFY_OPTIONS_TYPE;

Type: The value of this member specifies the type of notification to watch for. The value of this member MUST be one of the constant values from the following table.

Name/value

Description

PRINTER_NOTIFY_TYPE

0x0000

Indicates that the members specified in the array that is pointed to by the pFields member are printer notification constants.

JOB_NOTIFY_TYPE

0x0001

Indicates that the members specified in the array that is pointed to by the pFields member are job notification constants.

SERVER_NOTIFY_TYPE

0x0002

Indicates that the members specified in the array that is pointed to by the pFields member are server notification constants.<75>

Reserved0: The value of this member MUST be set to zero when sent and MUST be ignored on receipt.

Reserved1: The value of this member MUST be set to zero when sent and MUST be ignored on receipt.

Reserved2: The value of this member MUST be set to zero when sent and MUST be ignored on receipt.

Count: The number of elements in the pFields array.

pFields: A pointer to an array that MUST identify the job or printer information members to be monitored. The array MUST consist entirely of elements that are either job notification values (section 2.2.3.3) or printer notification values (section 2.2.3.8), depending on the value of the Type member. The two types of notification values MUST NOT be mixed within a given instance of the array.