Leaked source code of windows server 2003
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.

50 lines
1.5 KiB

  1. //
  2. // NT Miniport SetMode() header file.
  3. //
  4. //
  5. //
  6. // Default mode: VGA mode 3
  7. //
  8. #define DEFAULT_MODE 0
  9. //
  10. // The mode switch library exports these symbols to the miniport.
  11. //
  12. //
  13. // Mode table structure
  14. // Structure used for the mode table informations
  15. //
  16. typedef struct {
  17. BOOLEAN ValidMode; // TRUE: Mode is valid.
  18. ULONG ChipType; // Chips which support this mode.
  19. USHORT fbType; // color or monochrome, text or graphics,
  20. // via VIDEO_MODE_COLOR and VIDEO_MODE_GRAPHICS
  21. // and interlace or non-interlace via
  22. // VIDEO_MODE_INTERLACED
  23. USHORT Frequency; // Frequency
  24. USHORT BIOSModeNum; // BIOS Mode number
  25. USHORT BytesPerScanLine; // Bytes Per Scan Line
  26. USHORT XResol; // Horizontal resolution in pixels or char
  27. USHORT YResol; // Vertical resolution in pixels or char
  28. UCHAR XCharSize; // Char cell width in pixels
  29. UCHAR YCharSize; // Char cell height in pixels
  30. UCHAR NumOfPlanes; // Number of memory planes
  31. UCHAR BitsPerPixel; // Bits per pixel
  32. UCHAR MonitorTypeVal; // Monitor type setting bytes
  33. UCHAR *SetModeString; // Instructino string used by SetMode().
  34. } MODETABLE, *PMODETABLE;
  35. extern MODETABLE ModeTable[];
  36. extern ULONG TotalVideoModes;
  37. void SetMode(BYTE *, BYTE *, BYTE *);
  38. unsigned long GetVmemSize(BYTE *Regs);