Export (0) Print
Expand All RpcDeletePrinterData (Opnum 73)

RpcDeletePrinterData deletes specified configuration data for a printer.<337>

DWORD RpcDeletePrinterData(
  [in] PRINTER_HANDLE hPrinter,
  [in, string] wchar_t* pValueName

hPrinter: A handle to a printer object that was opened by RpcAddPrinter (section, RpcAddPrinterEx (section, RpcOpenPrinter (section, or RpcOpenPrinterEx (section

pValueName: A pointer to a string that identifies the configuration data to delete. For rules governing value names, see section

The value name is an arbitrary string defined by the printer driver associated with the printer object. The value name "ChangeID"<338> is reserved by the protocol and MAY NOT be used in a call to RpcDeletePrinterData.

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 validates parameters as follows:

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 printer data specified by pValueName.<340>

  • Return the status of the operation.

© 2015 Microsoft