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.

108 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1991 - 2001 Microsoft Corporation
  3. Module Name:
  4. ##### #### ### ##### ## ### ## ## ## ##
  5. ## ## ## ## # ## ## ## ### ## ## ## ##
  6. ## ## ## ### ## ## ## ## ## #### ## ##
  7. ## ## ## ### ## ## ## ## ## #### #######
  8. ## ## ## ### ##### ## ####### ## ## ##
  9. ## ## ## # ## ## ## ## ## ## ## ## ##
  10. ##### #### ### ## ##### ## ## ## ## ## ##
  11. Abstract:
  12. This header file contains all the global
  13. definitions for the display device.
  14. Author:
  15. Wesley Witt (wesw) 1-Oct-2001
  16. Environment:
  17. Kernel mode only.
  18. Notes:
  19. --*/
  20. //
  21. // Global defines
  22. //
  23. #define DEFAULT_DISPLAY_WIDTH (128)
  24. #define DEFAULT_DISPLAY_HEIGHT (64)
  25. #define DISPLAY_STARTING_PARAM L"Startup BitMap"
  26. #define DISPLAY_CHECKDISK_PARAM L"CheckDisk BitMap"
  27. #define DISPLAY_READY_PARAM L"Ready BitMap"
  28. #define DISPLAY_SHUTDOWN_PARAM L"Shutdown BitMap"
  29. #define DISPLAY_UPDATE_PARAM L"Update BitMap"
  30. //
  31. // Device extension
  32. //
  33. typedef struct _DISPLAY_DEVICE_EXTENSION : _DEVICE_EXTENSION {
  34. FAST_MUTEX DisplayMutex;
  35. BOOLEAN AllowWrites;
  36. PVOID StartingBitmap;
  37. PVOID CheckDiskBitmap;
  38. PVOID ReadyBitmap;
  39. PVOID ShutdownBitmap;
  40. PVOID UpdateBitmap;
  41. USHORT DisplayType;
  42. USHORT DisplayHeight;
  43. USHORT DisplayWidth;
  44. } DISPLAY_DEVICE_EXTENSION, *PDISPLAY_DEVICE_EXTENSION;
  45. //
  46. // Display specific functions
  47. //
  48. NTSTATUS
  49. SaDisplayLoadAllBitmaps(
  50. IN PDISPLAY_DEVICE_EXTENSION DeviceExtension,
  51. IN PUNICODE_STRING RegistryPath
  52. );
  53. NTSTATUS
  54. SaDisplayClearDisplay(
  55. IN PDISPLAY_DEVICE_EXTENSION DisplayDeviceExtension
  56. );
  57. NTSTATUS
  58. SaDisplayDisplayBitmap(
  59. IN PDISPLAY_DEVICE_EXTENSION DisplayDeviceExtension,
  60. IN PSA_DISPLAY_SHOW_MESSAGE Bitmap
  61. );
  62. NTSTATUS
  63. SaDisplayStartDevice(
  64. IN PDISPLAY_DEVICE_EXTENSION DeviceExtension
  65. );
  66. NTSTATUS
  67. SaDisplayIoValidation(
  68. IN PDISPLAY_DEVICE_EXTENSION DeviceExtension,
  69. IN PIRP Irp,
  70. PIO_STACK_LOCATION IrpSp
  71. );
  72. NTSTATUS
  73. SaDisplayDeviceInitialization(
  74. IN PSAPORT_DRIVER_EXTENSION DriverExtension
  75. );
  76. NTSTATUS
  77. SaDisplayShutdownNotification(
  78. IN PDISPLAY_DEVICE_EXTENSION DeviceExtension,
  79. IN PIRP Irp,
  80. PIO_STACK_LOCATION IrpSp
  81. );