This topic has not yet been rated - Rate this topic

DrawEscape function

Applies to: desktop apps only

The DrawEscape function provides drawing capabilities of the specified video display that are not directly available through the graphics device interface (GDI).

Syntax

int DrawEscape(
  __in  HDC hdc,
  __in  int nEscape,
  __in  int cbInput,
  __in  LPCSTR lpszInData
);

Parameters

hdc [in]

A handle to the DC for the specified video display.

nEscape [in]

The escape function to be performed.

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.

Return value

If the function is successful, the return value is greater than zero except for the QUERYESCSUPPORT draw escape, which checks for implementation only.

If the escape is not implemented, the return value is zero.

If an error occurred, the return value is less than zero.

Remarks

When an application calls the DrawEscape function, the data identified by cbInput and lpszInData is passed directly to the specified display driver.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Device Contexts Overview
Device Context Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ