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

Caller-supplied pointer to a DEVOBJ structure.

pBuffer [in]

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

cbSize [in]

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

pdwResult [out]

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 codeDescription
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

Header

Prcomoem.h (include Prcomoem.h)

See also

IPrintOemDriverPS::DrvWriteSpoolBuf

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft