Source code of Windows XP (NT5)
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.

86 lines
1.7 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. //!!! Move to redir
  43. //
  44. // NtDeviceIoControlFile calls to the redirector
  45. //
  46. // begin_ntifs
  47. #define IOCTL_REDIR_QUERY_PATH CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 99, METHOD_NEITHER, FILE_ANY_ACCESS)
  48. typedef struct _QUERY_PATH_REQUEST {
  49. ULONG PathNameLength;
  50. PIO_SECURITY_CONTEXT SecurityContext;
  51. WCHAR FilePathName[1];
  52. } QUERY_PATH_REQUEST, *PQUERY_PATH_REQUEST;
  53. typedef struct _QUERY_PATH_RESPONSE {
  54. ULONG LengthAccepted;
  55. } QUERY_PATH_RESPONSE, *PQUERY_PATH_RESPONSE;
  56. // end_ntifs
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif // _NTDDMUP_