网站首页  词典首页

请输入您要查询的函数:

 

术语 extescape
释义 ExtEscape
语法:
int ExtEscape(
__in HDC hdc,
__in int nEscape,
__in int cbInput,
__in LPCSTR lpszInData,
__in int cbOutput,
__out LPSTR lpszOutData
);
ExtEscape功能
该ExtEscape功能,使应用程序的特定设备未获得通过GDI接入能力。
参数
hdc [in]
一个句柄,设备上下文。
nEscape [in]
转义函数执行。它可以是下列之一,也可以是一个应用程序定义的转义函数。
ValueMeaning
CHECKJPEGFORMAT检查打印机是否支持JPEG图像。
CHECKPNGFORMAT检查打印机是否支持PNG图像。
DRAWPATTERNRECT绘制一个白色,灰色,规模,或黑色的矩形。
GET_PS_FEATURESETTING获取对指定的PostScript驱动程序设置功能的信息。
GETTECHNOLOGY报告是否驱动程序是PostScript驱动程序。
过手允许应用程序直接发送数据到打印机。支持兼容模式和GDI为中心的模式。
POSTSCRIPT_DATA允许应用程序直接发送数据到打印机。只支持在兼容模式下。
POSTSCRIPT_IDENTIFY PostScript驱动程序设置到GDI中心或PostScript为中心的模式。
POSTSCRIPT_INJECTION插入在一个工作流的PostScript原始数据块。
POSTSCRIPT_PASSTHROUGH数据直接发送到PostScript打印机驱动程序。支持兼容模式和PS为中心的模式。
是否是逃避,是由设备驱动程序中实现QUERYESCSUPPORTDetermines。
SPCLPASSTHROUGH2使应用程序,包括在私人文件级别保存环境和其他资源。
cbInput [in]
对数据的字节数指向的lpszInData参数。
lpszInData [in]
一个输入结构指定指针规定的逃生。
cbOutput [in]
对数据的字节数指向的lpszOutData参数。
lpszOutData [out]
一个结构,收到此转义输出指针。此参数必须是NULL如果ExtEscape作为查询功能调用。如果没有数据要返回设置cbOutput这一结构为0。
返回值
返回值指定函数的结果。这是大于零的功能,如果成功,除了QUERYESCSUPPORT打印机转义,其中仅实施检查。返回值是零,如果逃避是没有实现。返回值小于零表示错误。
备注
使用此功能通过驱动程序定义的转义值到设备。
使用逃逸函数传递一个系统定义的转义值设备,除非是在逃避nEscape定义一条逃生。 ExtEscape可能无法正常使用系统定义的逃逸。特别是,逃离中lpszInData是对一个结构,它包含一个成员,是一个指针的指针就会失败。
请注意,该行为本文中描述的是预期的行为,但要由司机遵守这一模式。
实例
有关示例,请参见施胶JPEG或PNG图像。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
逃生
GetDeviceCaps
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ExtEscape Function
The ExtEscape function enables applications to access capabilities of a particular device that are not available through GDI.
Syntax
int ExtEscape(
__in HDC hdc,
__in int nEscape,
__in int cbInput,
__in LPCSTR lpszInData,
__in int cbOutput,
__out LPSTR lpszOutData
);
Parameters
hdc [in]
A handle to the device context.
nEscape [in]
The escape function to be performed. It can be one of the following or it can be an application-defined escape function.
ValueMeaning
CHECKJPEGFORMAT Checks whether the printer supports a JPEG image.
CHECKPNGFORMAT Checks whether the printer supports a PNG image.
DRAWPATTERNRECT Draws a white, gray-scale, or black rectangle.
GET_PS_FEATURESETTING Gets information on a specified feature setting for a PostScript driver.
GETTECHNOLOGY Reports on whether or not the driver is a Postscript driver.
PASSTHROUGH Allows the application to send data directly to a printer. Supported in compatibility mode and GDI-centric mode.
POSTSCRIPT_DATA Allows the application to send data directly to a printer. Supported only in compatibility mode.
POSTSCRIPT_IDENTIFY Sets a PostScript driver to GDI-centric or PostScript-centric mode.
POSTSCRIPT_INJECTION Inserts a block of raw data in a PostScript job stream.
POSTSCRIPT_PASSTHROUGH Sends data directly to a PostScript printer driver. Supported in compatibility mode and PS-centric mode.
QUERYESCSUPPORTDetermines whether a particular escape is implemented by the device driver.
SPCLPASSTHROUGH2 Enables applications to include private procedures and other resources at the document level-save context.

cbInput [in]
The number of bytes of data pointed to by the lpszInData parameter.
lpszInData [in]
A pointer to the input structure required for the specified escape.
cbOutput [in]
The number of bytes of data pointed to by the lpszOutData parameter.
lpszOutData [out]
A pointer to the structure that receives output from this escape. This parameter must not be NULL if ExtEscape is called as a query function. If no data is to be returned in this structure, set cbOutput to 0.
Return Value
The return value specifies the outcome of the function. It is greater than zero if the function is successful, except for the QUERYESCSUPPORT printer escape, which checks for implementation only. The return value is zero if the escape is not implemented. A return value less than zero indicates an error.
Remarks
Use this function to pass a driver-defined escape value to a device.
Use the Escape function to pass one of the system-defined escape values to a device, unless the escape is one of the defined escapes in nEscape. ExtEscape might not work properly with the system-defined escapes. In particular, escapes in which lpszInData is a pointer to a structure that contains a member that is a pointer will fail.
Note, that the behavior described in this article is the expected behavior, but it is up to the driver to comply with this model.
Examples
For an example, see Sizing a JPEG or PNG Image .
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
Escape
GetDeviceCaps
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162708(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:23:08