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.

65 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1991 - 2002 Microsoft Corporation
  3. Module Name:
  4. ## ## ### ## ## ##### ## ## ##### ### ##### ## ##
  5. ### ### ## # ## ## ## ## ## ## ## ### ## ## ## ##
  6. ######## ### #### ## #### ## ## ## ## ## ## ## ##
  7. # ### ## ### ### ##### #### ## ## ## ## ## ## #######
  8. # # ## ### #### ## ## ##### ####### ## ## ## ##
  9. # ## # ## ## ## ## ## ## ## ## ## ## ## ## ##
  10. # ## ### ## ## ##### ## ## ## ## ##### ## ## ##
  11. Abstract:
  12. The module is the header file for the virtual
  13. keypad miniport device 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_KEYPAD
  27. #include "saport.h"
  28. #include "..\inc\virtual.h"
  29. typedef struct _DEVICE_EXTENSION {
  30. KSPIN_LOCK DeviceLock;
  31. PUCHAR DataBuffer;
  32. UCHAR Keypress;
  33. } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
  34. //
  35. // prototypes
  36. //
  37. extern "C" {
  38. NTSTATUS
  39. DriverEntry(
  40. IN PDRIVER_OBJECT DriverObject,
  41. IN PUNICODE_STRING RegistryPath
  42. );
  43. } // extern "C"