IPrintCorePS2::DrvWriteSpoolBuf method (prcomoem.h)

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]  IN PDEVOBJ pdevobj,
  [in]  IN PVOID   pBuffer,
  [in]  IN DWORD   cbSize,
  [out] OUT DWORD  *pdwResult
);

Parameters

[in] pdevobj

Caller-supplied pointer to a DEVOBJ structure.

[in] pBuffer

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

[in] cbSize

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

[out] 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

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

See also

IPrintCorePS2

IPrintOemDriverPS::DrvWriteSpoolBuf