18.104.22.168.25 RpcDeletePerMachineConnection (Opnum 86)
RpcDeletePerMachineConnection deletes information about a printer connection.<357>
This method is used for remote administration of client computers running the print system.
DWORD RpcDeletePerMachineConnection( [in, string, unique] STRING_HANDLE pServer, [in, string] const wchar_t* pPrinterName );
Return Values: This method MUST return zero (ERROR_SUCCESS) to indicate successful completion or a nonzero Windows error code to indicate failure, as specified in [MS-ERREF].
Upon receiving this message, the server MUST validate parameters as follows:
Perform the validation steps specified in Print Server Name Parameters.
Perform the validation steps specified in Printer Name Parameters.
Verify that the per-machine connection exists, and if that fails, return ERROR_INVALID_PRINTER_NAME.
Additional validation MAY<358> 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:
Delete the per-machine printer connection from the list of per-machine connections that is identified by the string that is pointed to by the pPrinterName parameter. Defer deletion of the actual printer object for each user until the user logs on, and then delete the printer object for the printer connection to the printer specified in pPrinterName.
Return the status of the operation.