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.

96 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1989 - 1999 Microsoft Corporation
  3. Module Name:
  4. nulmrx.h
  5. Abstract:
  6. This header exports all symbols and definitions shared between
  7. user-mode clients of nulmrx and the driver itself.
  8. Notes:
  9. This module has been built and tested only in UNICODE environment
  10. --*/
  11. #ifndef _NULMRX_H_
  12. #define _NULMRX_H_
  13. // Device name for this driver
  14. #define NULMRX_DEVICE_NAME_A "NullMiniRdr"
  15. #define NULMRX_DEVICE_NAME_U L"NullMiniRdr"
  16. // Provider name for this driver
  17. #define NULMRX_PROVIDER_NAME_A "Sample Network"
  18. #define NULMRX_PROVIDER_NAME_U L"Sample Network"
  19. // The following constant defines the length of the above name.
  20. #define NULMRX_DEVICE_NAME_A_LENGTH (15)
  21. // The following constant defines the path in the ob namespace
  22. #define DD_NULMRX_FS_DEVICE_NAME_U L"\\Device\\NullMiniRdr"
  23. #ifndef NULMRX_DEVICE_NAME
  24. #define NULMRX_DEVICE_NAME
  25. //
  26. // The Devicename string required to access the nullmini device
  27. // from User-Mode. Clients should use DD_NULMRX_USERMODE_DEV_NAME_U.
  28. //
  29. // WARNING The next two strings must be kept in sync. Change one and you must
  30. // change the other. These strings have been chosen such that they are
  31. // unlikely to coincide with names of other drivers.
  32. //
  33. #define DD_NULMRX_USERMODE_SHADOW_DEV_NAME_U L"\\??\\NullMiniRdrDN"
  34. #define DD_NULMRX_USERMODE_DEV_NAME_U L"\\\\.\\NullMiniRdrDN"
  35. //
  36. // Prefix needed for disk filesystems
  37. //
  38. #define DD_NULMRX_MINIRDR_PREFIX L"\\;E:"
  39. #endif // NULMRX_DEVICE_NAME
  40. //
  41. // BEGIN WARNING WARNING WARNING WARNING
  42. // The following are from the ddk include files and cannot be changed
  43. #define FILE_DEVICE_NETWORK_FILE_SYSTEM 0x00000014 // from ddk\inc\ntddk.h
  44. #define METHOD_BUFFERED 0
  45. #define FILE_ANY_ACCESS 0
  46. // END WARNING WARNING WARNING WARNING
  47. #define IOCTL_NULMRX_BASE FILE_DEVICE_NETWORK_FILE_SYSTEM
  48. #define _NULMRX_CONTROL_CODE(request, method, access) \
  49. CTL_CODE(IOCTL_NULMRX_BASE, request, method, access)
  50. //
  51. // IOCTL codes supported by NullMini Device.
  52. //
  53. #define IOCTL_CODE_ADDCONN 100
  54. #define IOCTL_CODE_GETCONN 101
  55. #define IOCTL_CODE_DELCONN 102
  56. #define IOCTL_CODE_GETLIST 103
  57. //
  58. // Following is the IOCTL definition and associated structs.
  59. // for IOCTL_CODE_SAMPLE1
  60. //
  61. #define IOCTL_NULMRX_ADDCONN _NULMRX_CONTROL_CODE(IOCTL_CODE_ADDCONN, METHOD_BUFFERED, FILE_ANY_ACCESS)
  62. #define IOCTL_NULMRX_GETCONN _NULMRX_CONTROL_CODE(IOCTL_CODE_GETCONN, METHOD_BUFFERED, FILE_ANY_ACCESS)
  63. #define IOCTL_NULMRX_DELCONN _NULMRX_CONTROL_CODE(IOCTL_CODE_DELCONN, METHOD_BUFFERED, FILE_ANY_ACCESS)
  64. #define IOCTL_NULMRX_GETLIST _NULMRX_CONTROL_CODE(IOCTL_CODE_GETLIST, METHOD_BUFFERED, FILE_ANY_ACCESS)
  65. #endif // _NULMRX_H_