Windows2003-3790/drivers/serveravailability/saport/display.h
2020-09-30 16:53:55 +02:00

109 lines
2.7 KiB
C

/*++
Copyright (c) 1991 - 2001 Microsoft Corporation
Module Name:
##### #### ### ##### ## ### ## ## ## ##
## ## ## ## # ## ## ## ### ## ## ## ##
## ## ## ### ## ## ## ## ## #### ## ##
## ## ## ### ## ## ## ## ## #### #######
## ## ## ### ##### ## ####### ## ## ##
## ## ## # ## ## ## ## ## ## ## ## ##
##### #### ### ## ##### ## ## ## ## ## ##
Abstract:
This header file contains all the global
definitions for the display device.
Author:
Wesley Witt (wesw) 1-Oct-2001
Environment:
Kernel mode only.
Notes:
--*/
//
// Global defines
//
#define DEFAULT_DISPLAY_WIDTH (128)
#define DEFAULT_DISPLAY_HEIGHT (64)
#define DISPLAY_STARTING_PARAM L"Startup BitMap"
#define DISPLAY_CHECKDISK_PARAM L"CheckDisk BitMap"
#define DISPLAY_READY_PARAM L"Ready BitMap"
#define DISPLAY_SHUTDOWN_PARAM L"Shutdown BitMap"
#define DISPLAY_UPDATE_PARAM L"Update BitMap"
//
// Device extension
//
typedef struct _DISPLAY_DEVICE_EXTENSION : _DEVICE_EXTENSION {
FAST_MUTEX DisplayMutex;
BOOLEAN AllowWrites;
PVOID StartingBitmap;
PVOID CheckDiskBitmap;
PVOID ReadyBitmap;
PVOID ShutdownBitmap;
PVOID UpdateBitmap;
USHORT DisplayType;
USHORT DisplayHeight;
USHORT DisplayWidth;
} DISPLAY_DEVICE_EXTENSION, *PDISPLAY_DEVICE_EXTENSION;
//
// Display specific functions
//
NTSTATUS
SaDisplayLoadAllBitmaps(
IN PDISPLAY_DEVICE_EXTENSION DeviceExtension,
IN PUNICODE_STRING RegistryPath
);
NTSTATUS
SaDisplayClearDisplay(
IN PDISPLAY_DEVICE_EXTENSION DisplayDeviceExtension
);
NTSTATUS
SaDisplayDisplayBitmap(
IN PDISPLAY_DEVICE_EXTENSION DisplayDeviceExtension,
IN PSA_DISPLAY_SHOW_MESSAGE Bitmap
);
NTSTATUS
SaDisplayStartDevice(
IN PDISPLAY_DEVICE_EXTENSION DeviceExtension
);
NTSTATUS
SaDisplayIoValidation(
IN PDISPLAY_DEVICE_EXTENSION DeviceExtension,
IN PIRP Irp,
PIO_STACK_LOCATION IrpSp
);
NTSTATUS
SaDisplayDeviceInitialization(
IN PSAPORT_DRIVER_EXTENSION DriverExtension
);
NTSTATUS
SaDisplayShutdownNotification(
IN PDISPLAY_DEVICE_EXTENSION DeviceExtension,
IN PIRP Irp,
PIO_STACK_LOCATION IrpSp
);