Release 961023
[wine/dcerpc.git] / misc / escape.c
blobec061568ff70c0f32ed3f45b9cc4113db08a6ccf
1 /*
2 * Escape() function.
4 * Copyright 1994 Bob Amstadt
5 */
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include "windows.h"
10 #include "gdi.h"
12 INT Escape( HDC16 hdc, INT nEscape, INT cbInput,
13 SEGPTR lpszInData, SEGPTR lpvOutData )
15 DC * dc = (DC *) GDI_GetObjPtr( hdc, DC_MAGIC );
16 if (!dc)
18 dc = (DC *)GDI_GetObjPtr(hdc, METAFILE_DC_MAGIC);
19 if (!dc) return 0;
22 if (!dc->funcs->pEscape) return 0;
23 return dc->funcs->pEscape( dc, nEscape, cbInput, lpszInData, lpvOutData );