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.

71 lines
2.4 KiB

  1. //
  2. // Copyright (R) 1999-2000 Microsoft Corporation. All rights reserved.
  3. //
  4. // File Name: Sadisplay.h
  5. //
  6. // Author: Mukesh Karki
  7. //
  8. // Date: April 21, 1999
  9. //
  10. // Contents:
  11. // Definitions of data structures for WriteFile() structures
  12. // used by the low-level local display drivers.
  13. // This driver receives bitmaps and message codes
  14. // from higher level code and writes them to the local display
  15. // hardware. Bitmaps are intended to be written to an LCD.
  16. // Bit codes are intended to be used to light LED's or change
  17. // icon states on an LCD.
  18. //
  19. #ifndef __SADISPLAY__
  20. #define __SADISPLAY__
  21. //
  22. // Header files
  23. //
  24. // none
  25. ///////////////////////////////////////////////
  26. // lpBuffer
  27. //
  28. #define MAXDISPLINES 2
  29. #define MAXDISPCHAR 42
  30. #define MAXBITMAP 2048 // can handle a 128x128 pixel display
  31. typedef struct tagSABITMAP { /* bm */
  32. int bmWidth; // width in pixels
  33. int bmHeight; // height in pixels = scans
  34. int bmWidthBytes; // bytes per scan in bmBits
  35. BYTE bmBits[MAXBITMAP];
  36. } SABITMAP; // See the BITMAP definition in MSDN
  37. typedef struct _SADISPLAY_LP_BUFF {
  38. DWORD version; // each bit = version
  39. DWORD msgCode; // each bit = message code
  40. union {
  41. SABITMAP bitmap;
  42. CHAR chars[MAXDISPLINES][MAXDISPCHAR]; // future use
  43. WCHAR wChars[MAXDISPLINES][MAXDISPCHAR]; // future use
  44. } display;
  45. } SADISPLAY_LP_BUFF, *PSADISPLAY_LP_BUFF;
  46. // Default message codes
  47. #define READY 0x1 // OS is running normally
  48. #define SHUTTING_DOWN 0x2 // OS is shutting down
  49. #define NET_ERR 0x4 // LAN error
  50. #define HW_ERR 0x8 // general hardware error
  51. #define CHECK_DISK 0x10 // autochk.exe is running
  52. #define BACKUP_DISK 0x20 // disk backup in progress
  53. #define NEW_TAPE 0x40 // new tape media required
  54. #define NEW_DISK 0x80 // new disk media required
  55. #define STARTING 0x100 // OS is booting
  56. #define WAN_CONNECTED 0x200 // connected to ISP
  57. #define WAN_ERR 0x400 // WAN error, e.g. no dial tone
  58. #define DISK_ERR 0x800 // disk error, e.g. dirty bit set
  59. #define ADD_START_TASKS 0x1000 // additional startup tasks running,
  60. // e.g. autochk, sw update
  61. #define CRITICAL_ERR 0x2000 // LED will display info
  62. #endif // __SADISPLAY__