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.

92 lines
3.1 KiB

  1. /*++ BUILD Version: 0002 // Increment this if a change has global effects
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. davname.h
  5. Abstract:
  6. This file contains service name strings for the dav redir. it should
  7. be folded into lmsname.h at some point
  8. Environment:
  9. User Mode -Win32
  10. --*/
  11. #ifndef _DAVNAME_
  12. #define _DAVNAME_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. //
  17. // Standard LAN Manager service names.
  18. //
  19. #define SERVICE_DAVCLIENT L"WebClient"
  20. #define DAVCLIENT_DRIVER L"MRxDAV"
  21. #define DAV_PARAMETERS_KEY L"System\\CurrentControlSet\\Services\\WebClient\\Parameters"
  22. #define DAV_DEBUG_KEY L"ServiceDebug"
  23. #define DAV_MAXTHREADS_KEY L"MaxThreads"
  24. #define DAV_THREADS_KEY L"Threads"
  25. #define SERVICE_REGISTRY_KEY L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\"
  26. //
  27. // Device Name - this string is the name of the device. It is the name
  28. // that should be passed to NtOpenFile when accessing the device.
  29. //
  30. // Note: For devices that support multiple units, it should be suffixed
  31. // with the Ascii representation of the unit number.
  32. //
  33. #define DD_DAV_DEVICE_NAME "\\Device\\WebDavRedirector"
  34. #define DD_DAV_DEVICE_NAME_U L"\\Device\\WebDavRedirector"
  35. #define DAV_ENCODE_SEED 0x9C
  36. //
  37. // The file system name as returned by
  38. // NtQueryInformationVolume(FileFsAttributeInformation)
  39. //
  40. #define DD_DAV_FILESYS_NAME "FAT"
  41. #define DD_DAV_FILESYS_NAME_U L"FAT"
  42. // #define DD_DAV_FILESYS_NAME "WebDavRedirector"
  43. // #define DD_DAV_FILESYS_NAME_U L"WebDavRedirector"
  44. #endif
  45. //
  46. // Warning: Remember that the low two bits of the code specify how the
  47. // buffers are passed to the driver!
  48. //
  49. //
  50. // Method = 00 - Buffer both input and output buffers for the request
  51. // Method = 01 - Buffer input, map output buffer to an MDL as an IN buff
  52. // Method = 10 - Buffer input, map output buffer to an MDL as an OUT buff
  53. // Method = 11 - Do not buffer either the input or output
  54. //
  55. #define IOCTL_DAV_BASE 0x400
  56. #define _DAV_CONTROL_CODE(request, method, access) \
  57. CTL_CODE(IOCTL_DAV_BASE, request, method, access)
  58. #define FSCTL_DAV_START _DAV_CONTROL_CODE(1, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
  59. #define FSCTL_DAV_STOP _DAV_CONTROL_CODE(2, METHOD_BUFFERED, FILE_ANY_ACCESS)
  60. #define FSCTL_DAV_SET_CONFIG_INFO _DAV_CONTROL_CODE(3, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
  61. #define FSCTL_DAV_GET_CONFIG_INFO _DAV_CONTROL_CODE(4, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
  62. #define FSCTL_DAV_GET_CONNECTION_INFO _DAV_CONTROL_CODE(5, METHOD_NEITHER, FILE_ANY_ACCESS)
  63. #define FSCTL_DAV_ENUMERATE_CONNECTIONS _DAV_CONTROL_CODE(6, METHOD_NEITHER, FILE_ANY_ACCESS)
  64. #define FSCTL_DAV_GET_VERSIONS _DAV_CONTROL_CODE(7, METHOD_BUFFERED, FILE_ANY_ACCESS)
  65. #define FSCTL_DAV_DELETE_CONNECTION _DAV_CONTROL_CODE(8, METHOD_BUFFERED, FILE_ANY_ACCESS)
  66. #define FSCTL_DAV_GET_STATISTICS _DAV_CONTROL_CODE(9, METHOD_BUFFERED, FILE_ANY_ACCESS)