/**************************************************************************** DCIMAN.H Copyright (c) 1993 Microsoft Corporation DCIMAN 1.0 client interface definitions ***************************************************************************/ #ifndef _INC_DCIMAN #define _INC_DCIMAN #ifdef __cplusplus #define __inline inline extern "C" { #endif /**************************************************************************** ***************************************************************************/ #include "dciddi.h" // interface to the DCI provider /**************************************************************************** ***************************************************************************/ /**************************************************************************** ***************************************************************************/ extern HDC WINAPI DCIOpenProvider(void); extern void WINAPI DCICloseProvider(HDC hdc); extern int WINAPI DCISendCommand(HDC hdc, DCICMD FAR *pcmd, VOID FAR * FAR * lplpOut); extern int WINAPI DCICreatePrimary(HDC hdc, DCISURFACEINFO FAR * FAR *lplpSurface); extern int WINAPI DCICreateOffscreen(HDC hdc, int width, int height, int bits, DCISURFACEINFO FAR * FAR *lplpSurface); /**************************************************************************** ***************************************************************************/ __inline void DCIDestroy(DCISURFACEINFO FAR *pdci) { pdci->DestroySurface(pdci); } __inline void DCIEndAccess(DCISURFACEINFO FAR *pdci) { pdci->EndAccess(pdci); } __inline int DCIBeginAccess(DCISURFACEINFO FAR *pdci, int x, int y, int dx, int dy) { RECT rc; rc.left=x; rc.top=y; rc.right = rc.left+dx; rc.bottom = rc.top+dy; return pdci->BeginAccess(pdci, &rc); } /**************************************************************************** ***************************************************************************/ #ifdef __cplusplus } #endif #endif // _INC_DCIMAN