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.

122 lines
3.5 KiB

  1. #ifndef _XHDFSH_
  2. #define _XHDFSH_
  3. #ifndef __LPGUID_DEFINED__
  4. #define __LPGUID_DEFINED__
  5. typedef GUID *LPGUID;
  6. #endif // __LPGUID_DEFINED__
  7. #include <dfsfsctl.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. //
  12. // These internal only calls are used to manage DFS. They should be called only
  13. // by the DFS manager service.
  14. //
  15. NET_API_STATUS NET_API_FUNCTION
  16. I_NetDfsGetVersion (
  17. IN LPWSTR ServerName,
  18. IN LPDWORD Version
  19. );
  20. NET_API_STATUS NET_API_FUNCTION
  21. I_NetDfsCreateLocalPartition (
  22. IN LPWSTR ServerName,
  23. IN LPWSTR ShareName,
  24. IN LPGUID EntryUid,
  25. IN LPWSTR EntryPrefix,
  26. IN LPWSTR ShortName,
  27. IN LPNET_DFS_ENTRY_ID_CONTAINER RelationInfo,
  28. IN BOOL Force
  29. );
  30. NET_API_STATUS NET_API_FUNCTION
  31. I_NetDfsDeleteLocalPartition (
  32. IN LPWSTR ServerName,
  33. IN LPGUID Uid,
  34. IN LPWSTR Prefix
  35. );
  36. NET_API_STATUS NET_API_FUNCTION
  37. I_NetDfsSetLocalVolumeState (
  38. IN LPWSTR ServerName,
  39. IN LPGUID Uid,
  40. IN LPWSTR Prefix,
  41. IN ULONG State
  42. );
  43. NET_API_STATUS NET_API_FUNCTION
  44. I_NetDfsSetServerInfo (
  45. IN LPWSTR ServerName,
  46. IN LPGUID Uid,
  47. IN LPWSTR Prefix
  48. );
  49. NET_API_STATUS NET_API_FUNCTION
  50. I_NetDfsCreateExitPoint (
  51. IN LPWSTR ServerName,
  52. IN LPGUID Uid,
  53. IN LPWSTR Prefix,
  54. IN ULONG Type,
  55. IN ULONG ShortPrefixSize, // In Bytes
  56. OUT LPWSTR ShortPrefix
  57. );
  58. NET_API_STATUS NET_API_FUNCTION
  59. I_NetDfsDeleteExitPoint (
  60. IN LPWSTR ServerName,
  61. IN LPGUID Uid,
  62. IN LPWSTR Prefix,
  63. IN ULONG Type
  64. );
  65. NET_API_STATUS NET_API_FUNCTION
  66. I_NetDfsModifyPrefix (
  67. IN LPWSTR ServerName,
  68. IN LPGUID Uid,
  69. IN LPWSTR Prefix
  70. );
  71. NET_API_STATUS NET_API_FUNCTION
  72. I_NetDfsFixLocalVolume (
  73. IN LPWSTR ServerName,
  74. IN LPWSTR VolumeName,
  75. IN ULONG EntryType,
  76. IN ULONG ServiceType,
  77. IN LPWSTR StgId,
  78. IN LPGUID EntryUid, // unique id for this partition
  79. IN LPWSTR EntryPrefix, // path prefix for this partition
  80. IN LPNET_DFS_ENTRY_ID_CONTAINER RelationInfo,
  81. IN ULONG CreateDisposition
  82. );
  83. NET_API_STATUS NET_API_FUNCTION
  84. I_NetDfsGetFtServers(
  85. IN PVOID LdapInputArg OPTIONAL,
  86. IN LPWSTR wszDomainName OPTIONAL,
  87. IN LPWSTR wszDfsName OPTIONAL,
  88. OUT LPWSTR **List
  89. );
  90. DWORD
  91. I_NetDfsIsThisADomainName(
  92. IN LPWSTR wszName
  93. );
  94. NET_API_STATUS NET_API_FUNCTION
  95. I_NetDfsManagerReportSiteInfo (
  96. IN LPWSTR ServerName,
  97. OUT LPDFS_SITELIST_INFO *ppSiteInfo
  98. );
  99. #ifdef __cplusplus
  100. }
  101. #endif
  102. #endif