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.

89 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991 - 2002 Microsoft Corporation
  3. Module Name:
  4. ## ## ### ##### #### ### ##### ## ##
  5. ### ### ## # ## ## ## ## # ## ## ## ##
  6. ######## ### ## ## ## ### ## ## ## ##
  7. # ### ## ### ## ## ## ### ## ## #######
  8. # # ## ### ## ## ## ### ##### ## ##
  9. # ## # ## ## ## ## # ## ## ## ## ##
  10. # ## ### ##### #### ### ## ## ## ##
  11. Abstract:
  12. This header file contains the definitions for the
  13. Microsoft virtual display miniport driver.
  14. @@BEGIN_DDKSPLIT
  15. Author:
  16. Wesley Witt (wesw) 1-Oct-2001
  17. @@END_DDKSPLIT
  18. Environment:
  19. Kernel mode only.
  20. Notes:
  21. --*/
  22. extern "C" {
  23. #include <ntddk.h>
  24. #include <stdio.h>
  25. }
  26. #define MINIPORT_DEVICE_TYPE SA_DEVICE_DISPLAY
  27. #include "saport.h"
  28. #include "..\inc\virtual.h"
  29. #define SecToNano(_sec) (LONGLONG)((_sec) * 1000 * 1000 * 10)
  30. //
  31. // Global Defines
  32. //
  33. #define DISPLAY_WIDTH (128)
  34. #define DISPLAY_HEIGHT (64)
  35. #define MAX_BITMAP_SIZE ((DISPLAY_WIDTH/8)*DISPLAY_HEIGHT)
  36. typedef struct _DEVICE_EXTENSION {
  37. PDEVICE_OBJECT DeviceObject;
  38. PUCHAR DisplayBuffer;
  39. ULONG DisplayBufferLength;
  40. KMUTEX DeviceLock;
  41. PKEVENT Event;
  42. HANDLE EventHandle;
  43. } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
  44. typedef struct _MSDISP_WORK_ITEM {
  45. PDEVICE_EXTENSION DeviceExtension;
  46. PIO_WORKITEM WorkItem;
  47. NTSTATUS Status;
  48. KEVENT Event;
  49. PSA_DISPLAY_SHOW_MESSAGE SaDisplay;
  50. } MSDISP_WORK_ITEM, *PMSDISP_WORK_ITEM;
  51. typedef struct _MSDISP_FSCONTEXT {
  52. ULONG HasLockedPages;
  53. PMDL Mdl;
  54. } MSDISP_FSCONTEXT, *PMSDISP_FSCONTEXT;
  55. //
  56. // prototypes
  57. //
  58. extern "C" {
  59. NTSTATUS
  60. DriverEntry(
  61. IN PDRIVER_OBJECT DriverObject,
  62. IN PUNICODE_STRING RegistryPath
  63. );
  64. } // extern "C"