<div class="content"><p>RpcDeletePrintProcessor removes a <a href="831cd729-be7c-451e-b729-bd8d84ce4d24#gt_062f3e76-3149-468c-bf64-1535651725d1" data-linktype="relative-path">print processor</a>.</p><dl>
<dd>
<div><pre> DWORD RpcDeletePrintProcessor(
   [in, string, unique] STRING_HANDLE Name,
   [in, string, unique] wchar_t* pEnvironment,
   [in, string] wchar_t* pPrintProcessorName
 );
</pre></div>
</dd></dl><p><b>Name: </b>A parameter specified in <a href="acb355a4-913b-4abb-8cb5-415aea160015" data-linktype="relative-path">Print Server Name
Parameters (section 3.1.4.1.4)</a>.</p><p><b>pEnvironment: </b>A parameter specified in <a href="5b2bf7d5-ac77-464f-be5e-f3a7c1782246" data-linktype="relative-path">Environment Name
Parameters (section 3.1.4.1.3)</a>.</p><p><b>pPrintProcessorName: </b>A pointer to a string
that specifies the name of the print processor that is removed. For rules
governing print processor names, see <a href="807e0bdd-21a5-4a72-9a6a-1a7fb1b08a8e" data-linktype="relative-path">Print Processor
Names (section 2.2.4.11)</a>.</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 <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>.</p><p>Upon receiving this message, the server MUST validate the
following:</p><ul><li><p><span><span> 
</span></span>Perform the validation steps specified in Print Server Name
Parameters.</p>
</li><li><p><span><span> 
</span></span>Perform the validation steps specified in Environment Name
Parameters.</p>
</li><li><p><span><span> 
</span></span>The string that is referenced by the <i>pPrintProcessorName</i>
parameter identifies a print processor installed on the server.</p>
</li><li><p><span><span> 
</span></span>Verify that there are no printers on the system that use the
print processor at this time, and if that verification fails, return
ERROR_CAN_NOT_COMPLETE.</p>
</li><li><p><span><span> 
</span></span>Additional validation MAY<a id="Appendix_A_Target_374"></a><a aria-label="Product behavior note 374" href="e81cbc09-ab05-4a32-ae4a-8ec57b436c43#Appendix_A_374" data-linktype="relative-path">&lt;374&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>Clear all references to the specified print processor from any
other data structures.</p>
</li><li><p><span><span> 
</span></span>Delete the print processor object.</p>
</li><li><p><span><span> 
</span></span>If any clients have registered for notification of server object
changes, a notification MUST be broadcast to them.</p>
</li><li><p><span><span> 
</span></span>Return the status of the operation.</p>
</li></ul></div>