<div class="content" name="RpcEnumPrintProcessorDatatypes" uuid="c4a35c20-4082-4ce6-8401-02c52ee3158e"><p>RpcEnumPrintProcessorDatatypes enumerates the data types
that a specified <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_062f3e76-3149-468c-bf64-1535651725d1" data-linktype="relative-path">print processor</a></span>
supports.</p><dl>
<dd>
<div><pre> DWORD RpcEnumPrintProcessorDatatypes(
   [in, string, unique] STRING_HANDLE pName,
   [in, string, unique] wchar_t* pPrintProcessorName,
   [in] DWORD Level,
   [in, out, unique, size_is(cbBuf)] 
     BYTE* pDatatypes,
   [in] DWORD cbBuf,
   [out] DWORD* pcbNeeded,
   [out] DWORD* pcReturned
 );
</pre></div>
</dd></dl><p><b>pName: </b>This parameter MUST adhere to the
parameter specification in <span><a href="acb355a4-913b-4abb-8cb5-415aea160015" data-linktype="relative-path">Print Server Name Parameters</a></span>,
section 3.1.4.1.4.</p><p><b>pPrintProcessorName: </b>A pointer to a string
that specifies the name of the print processor whose data types MUST be
enumerated. For rules governing print processor names, see section <span><a href="807e0bdd-21a5-4a72-9a6a-1a7fb1b08a8e" data-linktype="relative-path">2.2.4.11</a></span>.</p><p><b>Level: </b>The value of this parameter MUST be
0x00000001.</p><p><b>pDatatypes: </b>This parameter MAY be NULL if <i>cbBuf</i>
equals zero; otherwise, it is a pointer to <span><a href="f29e9057-df29-40d4-9c51-c615c0da62a1" data-linktype="relative-path">BUFFER</a></span> as specified
in INFO Structures Query Parameters, section 3.1.4.1.9.</p><p><b>BUFFER TYPE:</b> _DATATYPES_INFO_1</p><p><b>cbBuf: </b>This parameter MUST adhere to the
parameter specification in INFO Structures Query Parameters, section 3.1.4.1.9.</p><p><b>pcbNeeded: </b>This parameter MUST adhere to the
parameter specification in INFO Structures Query Parameters, section 3.1.4.1.9.</p><p><b>pcReturned: </b>This parameter MUST adhere to the
parameter specification in INFO Structures Query Parameters, section 3.1.4.1.9.</p><p><b>Return Values: </b>This method MUST return zero
(ERROR_SUCCESS) to indicate successful completion or a nonzero Windows error
code to indicate failure <span><a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a></span>.</p><p>Upon receiving this message, the server MUST validate
parameters as follows:</p><ul><li><p><span><span> 
</span></span>Perform the validation steps that are specified in Print Server
Name Parameters, section 3.1.4.1.4.</p>
</li><li><p><span><span> 
</span></span>Verify that the print processor that is identified by the string
that is referenced by the <i>pPrintProcessorName</i> parameter is in the list
of print processors.</p>
</li><li><p><span><span> 
</span></span>Perform the validation steps that are specified in INFO
Structures Query Parameters, section 3.1.4.1.9.</p>
</li><li><p><span><span> 
</span></span>Additional validation MAY<a id="Appendix_A_Target_375"></a><a aria-label="Product behavior note 375" href="e81cbc09-ab05-4a32-ae4a-8ec57b436c43#Appendix_A_375" data-linktype="relative-path">&lt;375&gt;</a> be
performed.</p>
</li></ul><p>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:</p><ul><li><p><span><span> 
</span></span>Enumerate all data types that are supported by the specified
print processor.</p>
</li><li><p><span><span> 
</span></span>Using the enumerated objects, perform the processing and response
steps specified in INFO Structures Query Parameters, section 3.1.4.1.9.</p>
</li><li><p><span><span> 
</span></span>Return the status of the operation.</p>
</li></ul></div>