<div class="content" name="RpcGetPrintProcessorDirectory" uuid="17eaee3b-e575-4f82-855c-e60657d5b2c8"><p>RpcGetPrintProcessorDirectory retrieves the path for the <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_062f3e76-3149-468c-bf64-1535651725d1" data-linktype="relative-path">print
processor</a></span> on the specified server.</p><dl>
<dd>
<div><pre> DWORD RpcGetPrintProcessorDirectory(
   [in, string, unique] STRING_HANDLE pName,
   [in, string, unique] wchar_t* pEnvironment,
   [in] DWORD Level,
   [in, out, unique, size_is(cbBuf)] 
     BYTE* pPrintProcessorDirectory,
   [in] DWORD cbBuf,
   [out] DWORD* pcbNeeded
 );
</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>pEnvironment: </b>This parameter MUST adhere to
the parameter specification in <span><a href="5b2bf7d5-ac77-464f-be5e-f3a7c1782246" data-linktype="relative-path">Environment Name Parameters</a></span>,
section 3.1.4.1.3.</p><p><b>Level: </b>The value of this parameter MUST be
0x00000001.</p><p><b>pPrintProcessorDirectory: </b>This parameter MAY
be NULL if <i>cbBuf</i> equals zero; otherwise, it is a pointer to <span><a href="6bae59af-f923-41b9-b395-13872aaf2ce0" data-linktype="relative-path">BUFFER</a></span>
as specified in String Query Parameters, section 3.1.4.1.7.</p><p><b>cbBuf: </b>This parameter MUST adhere to the
parameter specification in String Query Parameters, section 3.1.4.1.7.</p><p><b>pcbNeeded: </b>This parameter MUST adhere to the
parameter specification in String Query Parameters, section 3.1.4.1.7.</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>Perform the validation steps that are specified in Environment
Name Parameters, section 3.1.4.1.3.</p>
</li><li><p><span><span> 
</span></span>Perform the validation steps that are specified in String Query
Parameters, section 3.1.4.1.7.</p>
</li><li><p><span><span> 
</span></span>Additional validation MAY<a id="Appendix_A_Target_373"></a><a aria-label="Product behavior note 373" href="e81cbc09-ab05-4a32-ae4a-8ec57b436c43#Appendix_A_373" data-linktype="relative-path">&lt;373&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>Using the path of the print processor directory on the <span><a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_59fb3ddc-63cf-45df-8a90-46a6af9e00cb" data-linktype="relative-path">print
server</a></span>, perform the processing and response steps specified in
String Query Parameters, section 3.1.4.1.7.</p>
</li><li><p><span><span> 
</span></span>Return the status of the operation.</p>
</li></ul></div>