3.1.4.8.2 RpcEnumPrintProcessors (Opnum 15)

RpcEnumPrintProcessors enumerates the print processors installed on a specified server.

 DWORD RpcEnumPrintProcessors(
   [in, string, unique] STRING_HANDLE pName,
   [in, string, unique] wchar_t* pEnvironment,
   [in] DWORD Level,
   [in, out, unique, size_is(cbBuf), disable_consistency_check] 
     BYTE* pPrintProcessorInfo,
   [in] DWORD cbBuf,
   [out] DWORD* pcbNeeded,
   [out] DWORD* pcReturned
 );

pName: A parameter specified in Print Server Name Parameters, section 3.1.4.1.4.

pEnvironment: A parameter specified in Environment Name Parameters, section 3.1.4.1.3.

Level: The information level. This value MUST be 0x00000001.

pPrintProcessorInfo: A pointer to BUFFER as specified in INFO Structures Query Parameters, section 3.1.4.1.9

BUFFER TYPE: _PRINTPROCESSOR_INFO_1.

This parameter can be NULL if cbBuf equals zero.

cbBuf: A parameter specified in INFO Structures Query Parameters, section 3.1.4.1.9.

pcbNeeded: A parameter specified in INFO Structures Query Parameters, section 3.1.4.1.9.

pcReturned: A parameter specified in INFO Structures Query Parameters, section 3.1.4.1.9.

Return Values: This method MUST return zero (ERROR_SUCCESS) to indicate successful completion or a nonzero Windows error code to indicate failure [MS-ERREF].

Upon receiving this message, the server MUST validate parameters as follows:

  • Perform the validation steps specified in Print Server Name Parameters, section 3.1.4.1.4.

  • Perform the validation steps specified in Environment Name Parameters, section 3.1.4.1.3.

  • Perform the validation steps specified in INFO Structures Query Parameters, section 3.1.4.1.9.

  • Additional validation MAY<372> be performed.

If parameter validation fails, the server MUST fail the operation immediately and return a nonzero error response to the client. Otherwise, the server MUST process the message and compose a response to the client as follows:

  • Enumerate all print processors on the print server.

  • Using the enumerated objects, perform the processing and response steps specified in INFO Structures Query Parameters, section 3.1.4.1.9.

  • Return the status of the operation.