术语 | readprinter |
释义 | ReadPrinter 语法: BOOL ReadPrinter( __in HANDLE hPrinter, __out LPVOID pBuf, __in DWORD cbBuf, __out LPDWORD pNoBytesRead ); ReadPrinter功能 该ReadPrinter函数从指定打印机数据。 参数 hPrinter [in] 句柄到打印机对象的检索数据。使用OpenPrinter函数检索打印机对象句柄。使用格式:PrinterName的,工作XXXX的。 pBuf [out] 阿一个缓冲区,它接收打印机数据的指针。 cbBuf [in] 大小,以字节为缓冲区的pBuf点。 pNoBytesRead [out] 一个变量,它接收到的数组复制的数据的字节数指针,其中pBuf点。 返回值 如果函数成功,返回值是一个非零值。 如果函数失败,返回值是零。 备注 ReadPrinter返回一个错误,如果该设备或打印机是不是双向的。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 OpenPrinter 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==ReadPrinter Function The ReadPrinter function retrieves data from the specified printer. Syntax BOOL ReadPrinter( __in HANDLE hPrinter, __out LPVOID pBuf, __in DWORD cbBuf, __out LPDWORD pNoBytesRead ); Parameters hPrinter [in] A handle to the printer object for which to retrieve data. Use the OpenPrinter function to retrieve a printer object handle. Use the format: Printername, Job xxxx. pBuf [out] A pointer to a buffer that receives the printer data. cbBuf [in] The size, in bytes, of the buffer to which pBuf points. pNoBytesRead [out] A pointer to a variable that receives the number of bytes of data copied into the array to which pBuf points. Return Value If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. Remarks ReadPrinter returns an error if the device or the printer is not bidirectional. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinspool.h (include Windows.h) LibraryWinspool.lib See Also Printing and Print Spooler Overview Printing and Print Spooler Functions OpenPrinter Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd162895(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。