网站首页  词典首页

请输入您要查询的函数:

 

术语 setabortproc
释义 SetAbortProc
语法:
int SetAbortProc(
__in HDC hdc,
__in ABORTPROC lpAbortProc
);
SETABORTPROC的功能
该SETABORTPROC的函数设置应用程序定义的中止功能,以使打印作业将在后台取消。
参数
hdc [in]
句柄打印作业的设备上下文。
lpAbortProc [in]
指向应用程序定义的中止功能。如需有关回调函数的详细信息,请参阅AbortProc回调函数。
返回值
如果函数成功,返回值大于零。
如果函数失败,返回值是SP_ERROR。
实例
有关示例,请参阅准备打印。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
AbortDoc
AbortProc
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetAbortProc Function
The SetAbortProc function sets the application-defined abort function that allows a print job to be canceled during spooling.
Syntax
int SetAbortProc(
__in HDC hdc,
__in ABORTPROC lpAbortProc
);
Parameters
hdc [in]
Handle to the device context for the print job.
lpAbortProc [in]
Pointer to the application-defined abort function. For more information about the callback function, see the AbortProc callback function.
Return Value
If the function succeeds, the return value is greater than zero.
If the function fails, the return value is SP_ERROR.
Examples
For an example, see Preparing to Print .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AbortDoc
AbortProc
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162960(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 13:25:23