This function allows applications to access facilities of a device not otherwise available through the API. Escapes are, in general, sent to the presentation driver and must be understood by it.
#define INCL_DEV /* Or use INCL_PM, */
#include <os2.h>
HDC hdc; /* Device-context handle. */
LONG lCode; /* Escape code. */
LONG lInCount; /* Input data count. */
PBYTE pbInData; /* The input data required for this escape. */
PLONG plOutCount; /* Output data count. */
PBYTE pbOutData; /* Output data. */
LONG lResult; /* Implementation error indicator: */
lResult = DevEscape(hdc, lCode, lInCount,
pbInData, plOutCount, pbOutData);