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.

88 lines
1.8 KiB

  1. /*++ BUILD Version: 0001 // Increent this if a change has global effects
  2. Copyright (c) 1990-1999 Microsoft Corporation
  3. Module Name:
  4. ntddmup.h
  5. Abstract:
  6. This is the include file that defines all constants and types for
  7. accessing the Multiple UNC prodiver system device.
  8. Author:
  9. Manny Weiser (mannyw) 27-Dec-1991
  10. Revision History:
  11. --*/
  12. #ifndef _NTDDMUP_
  13. #define _NTDDMUP_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. //
  21. // Device Name - this string is the name of the device. It is the name
  22. // that should be passed to NtOpenFile when accessing the device.
  23. //
  24. //
  25. #define DD_MUP_DEVICE_NAME L"\\Device\\Mup" // ntifs
  26. //
  27. // NtFsControlFile FsControlCode values for this device.
  28. //
  29. #define FSCTL_MUP_REGISTER_UNC_PROVIDER CTL_CODE(FILE_DEVICE_MULTI_UNC_PROVIDER, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  30. //
  31. // Fs control parameter blocks.
  32. //
  33. typedef struct _REDIRECTOR_REGISTRATION {
  34. ULONG DeviceNameOffset;
  35. ULONG DeviceNameLength;
  36. ULONG ShortNameOffset;
  37. ULONG ShortNameLength;
  38. BOOLEAN MailslotsSupported;
  39. // PWCH DeviceName[];
  40. // PWCH ShortName[];
  41. } REDIRECTOR_REGISTRATION, *PREDIRECTOR_REGISTRATION;
  42. #ifndef _NTIFS_
  43. //!!! Move to redir
  44. //
  45. // NtDeviceIoControlFile calls to the redirector
  46. //
  47. // begin_ntifs
  48. #define IOCTL_REDIR_QUERY_PATH CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 99, METHOD_NEITHER, FILE_ANY_ACCESS)
  49. typedef struct _QUERY_PATH_REQUEST {
  50. ULONG PathNameLength;
  51. PIO_SECURITY_CONTEXT SecurityContext;
  52. WCHAR FilePathName[1];
  53. } QUERY_PATH_REQUEST, *PQUERY_PATH_REQUEST;
  54. typedef struct _QUERY_PATH_RESPONSE {
  55. ULONG LengthAccepted;
  56. } QUERY_PATH_RESPONSE, *PQUERY_PATH_RESPONSE;
  57. // end_ntifs
  58. #endif // _NTIFS_
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif // _NTDDMUP_