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.

33 lines
1.5 KiB

  1. //
  2. // DVADDDI.H
  3. //
  4. // Copyright (c) 1993 Microsoft Corporation
  5. //
  6. // DVA 1.0 Interface Definitions
  7. //
  8. #define DVAGETSURFACE 3074 // GDI Escape for DVA
  9. #define DVA_VERSION 0x0100 // version number of DVA 1.0
  10. //
  11. // DVASURFACEINFO structure
  12. //
  13. typedef struct { //
  14. BITMAPINFOHEADER BitmapInfo; // BITMAPINFO of surface
  15. DWORD dwMask[3]; // masks for BI_BITFIELDS
  16. DWORD offSurface; // surface offset
  17. WORD selSurface; // surface selector
  18. WORD Version; // DVA Version
  19. DWORD Flags; // Flags
  20. LPVOID lpSurface; // driver use.
  21. BOOL (CALLBACK *OpenSurface) (LPVOID); // OpenSurface callback
  22. void (CALLBACK *CloseSurface)(LPVOID); // CloseSurface callback
  23. BOOL (CALLBACK *BeginAccess) (LPVOID,int,int,int,int); // BeginAccess callback
  24. void (CALLBACK *EndAccess) (LPVOID); // EndAccess callback
  25. UINT (CALLBACK *ShowSurface) (LPVOID,HWND,LPRECT,LPRECT); // ShowSurface callback
  26. } DVASURFACEINFO, FAR *LPDVASURFACEINFO; //
  27. //
  28. // Definitions for DVASURFACEINFO.dvaFlags
  29. //
  30. #define DVAF_1632_ACCESS 0x0001 // must access using 16:32 pointers