IPrintCorePS2::DrvWriteSpoolBuf method

The IPrintCorePS2::DrvWriteSpoolBuf method is provided by the Pscript5 driver so that a rendering plug-in can send printer data to the spooler.

Syntax

HRESULT DrvWriteSpoolBuf(
  IN PDEVOBJ pdevobj,
  IN PVOID   pBuffer,
  IN DWORD   cbSize,
  OUT DWORD  *pdwResult
);

Parameters

pdevobj

Caller-supplied pointer to a DEVOBJ structure.

pBuffer

Caller-supplied pointer to a buffer containing data to be sent to the print spooler.

cbSize

Caller-supplied value representing the size, in bytes, of the buffer pointed to by pBuffer.

pdwResult

Receives a method-supplied value representing the number of bytes sent to the spooler.

Return Value

The method must return one of the following values.

Return code Description
S_OK
The operation succeeded.
E_FAIL
The operation failed.
E_NOTIMPL
The method is not implemented.

Remarks

This method has the same behavior as IPrintOemDriverPS::DrvWriteSpoolBuf. This method is supported for any Pscript5 render plug-ins.

Requirements

   
Target Platform Desktop
Header prcomoem.h (include Prcomoem.h)

See Also

IPrintCorePS2

IPrintOemDriverPS::DrvWriteSpoolBuf