网站首页  词典首页

请输入您要查询的函数:

 

术语 flushprinter
释义 FlushPrinter
语法:
BOOL FlushPrinter(
__in HANDLE hPrinter,
__in LPVOID pBuf,
__in DWORD cbBuf,
__out LPDWORD pcWritten,
__in DWORD cSleep
);
FlushPrinter功能
该FlushPrinter函数发送到打印机的缓冲区,以便清楚短暂的状态。
参数
hPrinter [in]
句柄到打印机对象。这应当是相同的句柄用,在之前的WritePrinter调用打印机驱动程序。
pBuf [in]
一个字节数组,包含要写入到打印机数据的指针。
cbBuf [in]
大小,指出以字节数组的由pBuf。
pcWritten [out]
一个一个值,它接收的是被写入打印机数据的字节数的指针。
cSleep [in]
时间以毫秒为单位,对其中的I / O线到打印机端口应保持闲置。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
FlushPrinter应该称为只有WritePrinter失败了,留下一瞬态打印机。例如,打印机可能会进入一个短暂的状态,这些工作都中断,并有部分打印机驱动程序的一些原始数据发送到打印机。
FlushPrinter也可以指定一个空闲期内,打印后台处理程序不安排任何工作,到相应的打印机端口。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
WritePrinter
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==FlushPrinter Function
The FlushPrinter function sends a buffer to the printer in order to clear it from a transient state.
Syntax
BOOL FlushPrinter(
__in HANDLE hPrinter,
__in LPVOID pBuf,
__in DWORD cbBuf,
__out LPDWORD pcWritten,
__in DWORD cSleep
);
Parameters
hPrinter [in]
A handle to the printer object. This should be the same handle that was used, in a prior WritePrinter call, by the printer driver.
pBuf [in]
A pointer to an array of bytes that contains the data to be written to the printer.
cbBuf [in]
The size, in bytes, of the array pointed to by pBuf.
pcWritten [out]
A pointer to a value that receives the number of bytes of data that were written to the printer.
cSleep [in]
The time, in milliseconds, for which the I/O line to the printer port should be kept idle.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
FlushPrinter should be called only if WritePrinter failed, leaving the printer in a transient state. For example, the printer could get into a transient state when the job gets aborted and the printer driver has partially sent some raw data to the printer.
FlushPrinter also can specify a idle period during which the print spooler does not schedule any jobs to the corresponding printer port.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
WritePrinter
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144818(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:28:23