网站首页  词典首页

请输入您要查询的函数:

 

术语 closeprinter
释义 ClosePrinter
语法:
BOOL ClosePrinter(
__in HANDLE hPrinter
);
ClosePrinter函数
该ClosePrinter函数关闭指定的打印机对象。
参数
hPrinter [in]
句柄到打印机对象被关闭。这种处理是由OpenPrinter或添加打印机函数返回。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
当ClosePrinter函数返回的句柄hPrinter是无效的,无论功能是成功还是失败。
要求:
最低支持: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日
==英文原文==ClosePrinter Function
The ClosePrinter function closes the specified printer object.
Syntax
BOOL ClosePrinter(
__in HANDLE hPrinter
);
Parameters
hPrinter [in]
A handle to the printer object to be closed. This handle is returned by the OpenPrinter or AddPrinter function.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
When the ClosePrinter function returns, the handle hPrinter is invalid, regardless of whether the function has succeeded or failed.
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
AddPrinter
OpenPrinter
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183446(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:26:07