Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB

  1. /****************************************************************************
  2. DCIMAN.H
  3. Copyright (c) 1993 Microsoft Corporation
  4. DCIMAN 1.0 client interface definitions
  5. ***************************************************************************/
  6. #ifndef _INC_DCIMAN
  7. #define _INC_DCIMAN
  8. #ifdef __cplusplus
  9. #define __inline inline
  10. extern "C" {
  11. #endif
  12. /****************************************************************************
  13. ***************************************************************************/
  14. #include "dciddi.h" // interface to the DCI provider
  15. /****************************************************************************
  16. ***************************************************************************/
  17. /****************************************************************************
  18. ***************************************************************************/
  19. extern HDC WINAPI DCIOpenProvider(void);
  20. extern void WINAPI DCICloseProvider(HDC hdc);
  21. extern int WINAPI DCISendCommand(HDC hdc, DCICMD FAR *pcmd, VOID FAR * FAR * lplpOut);
  22. extern int WINAPI DCICreatePrimary(HDC hdc, DCISURFACEINFO FAR * FAR *lplpSurface);
  23. extern int WINAPI DCICreateOffscreen(HDC hdc, int width, int height, int bits, DCISURFACEINFO FAR * FAR *lplpSurface);
  24. /****************************************************************************
  25. ***************************************************************************/
  26. __inline void DCIDestroy(DCISURFACEINFO FAR *pdci)
  27. {
  28. pdci->DestroySurface(pdci);
  29. }
  30. __inline void DCIEndAccess(DCISURFACEINFO FAR *pdci)
  31. {
  32. pdci->EndAccess(pdci);
  33. }
  34. __inline int DCIBeginAccess(DCISURFACEINFO FAR *pdci, int x, int y, int dx, int dy)
  35. {
  36. RECT rc;
  37. rc.left=x;
  38. rc.top=y;
  39. rc.right = rc.left+dx;
  40. rc.bottom = rc.top+dy;
  41. return pdci->BeginAccess(pdci, &rc);
  42. }
  43. /****************************************************************************
  44. ***************************************************************************/
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif // _INC_DCIMAN