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.

330 lines
9.7 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for netdfs.idl, dfssrv.acf:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, oldnames, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef __netdfs_h__
  23. #define __netdfs_h__
  24. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  25. #pragma once
  26. #endif
  27. /* Forward Declarations */
  28. /* header files for imported files */
  29. #include "import.h"
  30. #ifdef __cplusplus
  31. extern "C"{
  32. #endif
  33. void * __RPC_USER MIDL_user_allocate(size_t);
  34. void __RPC_USER MIDL_user_free( void * );
  35. #ifndef __netdfs_INTERFACE_DEFINED__
  36. #define __netdfs_INTERFACE_DEFINED__
  37. /* interface netdfs */
  38. /* [implicit_handle][unique][ms_union][version][uuid] */
  39. #pragma once
  40. typedef struct _DFS_INFO_1_CONTAINER
  41. {
  42. DWORD EntriesRead;
  43. /* [size_is] */ LPDFS_INFO_1 Buffer;
  44. } DFS_INFO_1_CONTAINER;
  45. typedef struct _DFS_INFO_1_CONTAINER *LPDFS_INFO_1_CONTAINER;
  46. typedef struct _DFS_INFO_2_CONTAINER
  47. {
  48. DWORD EntriesRead;
  49. /* [size_is] */ LPDFS_INFO_2 Buffer;
  50. } DFS_INFO_2_CONTAINER;
  51. typedef struct _DFS_INFO_2_CONTAINER *LPDFS_INFO_2_CONTAINER;
  52. typedef struct _DFS_INFO_3_CONTAINER
  53. {
  54. DWORD EntriesRead;
  55. /* [size_is] */ LPDFS_INFO_3 Buffer;
  56. } DFS_INFO_3_CONTAINER;
  57. typedef struct _DFS_INFO_3_CONTAINER *LPDFS_INFO_3_CONTAINER;
  58. typedef struct _DFS_INFO_4_CONTAINER
  59. {
  60. DWORD EntriesRead;
  61. /* [size_is] */ LPDFS_INFO_4 Buffer;
  62. } DFS_INFO_4_CONTAINER;
  63. typedef struct _DFS_INFO_4_CONTAINER *LPDFS_INFO_4_CONTAINER;
  64. typedef struct _DFS_INFO_200_CONTAINER
  65. {
  66. DWORD EntriesRead;
  67. /* [size_is] */ LPDFS_INFO_200 Buffer;
  68. } DFS_INFO_200_CONTAINER;
  69. typedef struct _DFS_INFO_200_CONTAINER *LPDFS_INFO_200_CONTAINER;
  70. typedef struct _DFS_INFO_300_CONTAINER
  71. {
  72. DWORD EntriesRead;
  73. /* [size_is] */ LPDFS_INFO_300 Buffer;
  74. } DFS_INFO_300_CONTAINER;
  75. typedef struct _DFS_INFO_300_CONTAINER *LPDFS_INFO_300_CONTAINER;
  76. typedef struct _DFS_INFO_ENUM_STRUCT
  77. {
  78. DWORD Level;
  79. /* [switch_is] */ /* [switch_type] */ union
  80. {
  81. /* [case()] */ LPDFS_INFO_1_CONTAINER DfsInfo1Container;
  82. /* [case()] */ LPDFS_INFO_2_CONTAINER DfsInfo2Container;
  83. /* [case()] */ LPDFS_INFO_3_CONTAINER DfsInfo3Container;
  84. /* [case()] */ LPDFS_INFO_4_CONTAINER DfsInfo4Container;
  85. /* [case()] */ LPDFS_INFO_200_CONTAINER DfsInfo200Container;
  86. /* [case()] */ LPDFS_INFO_300_CONTAINER DfsInfo300Container;
  87. } DfsInfoContainer;
  88. } DFS_INFO_ENUM_STRUCT;
  89. typedef struct _DFS_INFO_ENUM_STRUCT *LPDFS_INFO_ENUM_STRUCT;
  90. typedef /* [switch_type] */ union _DFS_INFO_STRUCT
  91. {
  92. /* [case()] */ LPDFS_INFO_1 DfsInfo1;
  93. /* [case()] */ LPDFS_INFO_2 DfsInfo2;
  94. /* [case()] */ LPDFS_INFO_3 DfsInfo3;
  95. /* [case()] */ LPDFS_INFO_4 DfsInfo4;
  96. /* [case()] */ LPDFS_INFO_100 DfsInfo100;
  97. /* [case()] */ LPDFS_INFO_101 DfsInfo101;
  98. /* [case()] */ LPDFS_INFO_102 DfsInfo102;
  99. /* [default] */ /* Empty union arm */
  100. } DFS_INFO_STRUCT;
  101. typedef /* [switch_type] */ union _DFS_INFO_STRUCT *LPDFS_INFO_STRUCT;
  102. typedef struct _DFSM_ENTRY_ID
  103. {
  104. GUID idSubordinate;
  105. /* [unique][string] */ LPWSTR wszSubordinate;
  106. } DFSM_ENTRY_ID;
  107. typedef struct _DFSM_ENTRY_ID *LPDFSM_ENTRY_ID;
  108. typedef struct _DFSM_RELATION_INFO
  109. {
  110. DWORD cSubordinates;
  111. /* [size_is] */ DFSM_ENTRY_ID eid[ 1 ];
  112. } DFSM_RELATION_INFO;
  113. typedef /* [allocate] */ struct _DFSM_RELATION_INFO *LPDFSM_RELATION_INFO;
  114. typedef struct _DFSM_ROOT_LIST_ENTRY
  115. {
  116. /* [unique][string] */ LPWSTR ServerShare;
  117. } DFSM_ROOT_LIST_ENTRY;
  118. typedef struct _DFSM_ROOT_LIST_ENTRY *PDFSM_ROOT_LIST_ENTRY;
  119. typedef struct _DFSM_ROOT_LIST_ENTRY *LPDFSM_ROOT_LIST_ENTRY;
  120. typedef struct _DFSM_ROOT_LIST
  121. {
  122. DWORD cEntries;
  123. /* [size_is] */ DFSM_ROOT_LIST_ENTRY Entry[ 1 ];
  124. } DFSM_ROOT_LIST;
  125. typedef struct _DFSM_ROOT_LIST *PDFSM_ROOT_LIST;
  126. typedef /* [allocate] */ struct _DFSM_ROOT_LIST *LPDFSM_ROOT_LIST;
  127. DWORD NetrDfsManagerGetVersion( void);
  128. DWORD NetrDfsAdd(
  129. /* [string][in] */ LPWSTR DfsEntryPath,
  130. /* [string][in] */ LPWSTR ServerName,
  131. /* [string][unique][in] */ LPWSTR ShareName,
  132. /* [string][unique][in] */ LPWSTR Comment,
  133. /* [in] */ DWORD Flags);
  134. DWORD NetrDfsRemove(
  135. /* [string][in] */ LPWSTR DfsEntryPath,
  136. /* [string][unique][in] */ LPWSTR ServerName,
  137. /* [string][unique][in] */ LPWSTR ShareName);
  138. DWORD NetrDfsSetInfo(
  139. /* [string][in] */ LPWSTR DfsEntryPath,
  140. /* [string][unique][in] */ LPWSTR ServerName,
  141. /* [string][unique][in] */ LPWSTR ShareName,
  142. /* [in] */ DWORD Level,
  143. /* [switch_is][in] */ LPDFS_INFO_STRUCT DfsInfo);
  144. DWORD NetrDfsGetInfo(
  145. /* [string][in] */ LPWSTR DfsEntryPath,
  146. /* [string][unique][in] */ LPWSTR ServerName,
  147. /* [string][unique][in] */ LPWSTR ShareName,
  148. /* [in] */ DWORD Level,
  149. /* [switch_is][out] */ LPDFS_INFO_STRUCT DfsInfo);
  150. DWORD NetrDfsEnum(
  151. /* [in] */ DWORD Level,
  152. /* [in] */ DWORD PrefMaxLen,
  153. /* [unique][out][in] */ LPDFS_INFO_ENUM_STRUCT DfsEnum,
  154. /* [unique][out][in] */ LPDWORD ResumeHandle);
  155. DWORD NetrDfsMove(
  156. /* [string][in] */ LPWSTR DfsEntryPath,
  157. /* [string][in] */ LPWSTR NewDfsEntryPath);
  158. DWORD NetrDfsRename(
  159. /* [string][in] */ LPWSTR Path,
  160. /* [string][in] */ LPWSTR NewPath);
  161. DWORD NetrDfsManagerGetConfigInfo(
  162. /* [string][in] */ LPWSTR wszServer,
  163. /* [string][in] */ LPWSTR wszLocalVolumeEntryPath,
  164. /* [in] */ GUID idLocalVolume,
  165. /* [unique][out][in] */ LPDFSM_RELATION_INFO *ppRelationInfo);
  166. DWORD NetrDfsManagerSendSiteInfo(
  167. /* [string][in] */ LPWSTR wszServer,
  168. /* [in] */ LPDFS_SITELIST_INFO pSiteInfo);
  169. DWORD NetrDfsAddFtRoot(
  170. /* [string][in] */ LPWSTR ServerName,
  171. /* [string][in] */ LPWSTR DcName,
  172. /* [string][in] */ LPWSTR RootShare,
  173. /* [string][in] */ LPWSTR FtDfsName,
  174. /* [string][in] */ LPWSTR Comment,
  175. /* [string][in] */ LPWSTR ConfigDN,
  176. /* [in] */ BOOLEAN NewFtDfs,
  177. /* [in] */ DWORD Flags,
  178. /* [unique][out][in] */ PDFSM_ROOT_LIST *ppRootList);
  179. DWORD NetrDfsRemoveFtRoot(
  180. /* [string][in] */ LPWSTR ServerName,
  181. /* [string][in] */ LPWSTR DcName,
  182. /* [string][in] */ LPWSTR RootShare,
  183. /* [string][in] */ LPWSTR FtDfsName,
  184. /* [in] */ DWORD Flags,
  185. /* [unique][out][in] */ PDFSM_ROOT_LIST *ppRootList);
  186. DWORD NetrDfsAddStdRoot(
  187. /* [string][in] */ LPWSTR ServerName,
  188. /* [string][in] */ LPWSTR RootShare,
  189. /* [string][in] */ LPWSTR Comment,
  190. /* [in] */ DWORD Flags);
  191. DWORD NetrDfsRemoveStdRoot(
  192. /* [string][in] */ LPWSTR ServerName,
  193. /* [string][in] */ LPWSTR RootShare,
  194. /* [in] */ DWORD Flags);
  195. DWORD NetrDfsManagerInitialize(
  196. /* [string][in] */ LPWSTR ServerName,
  197. /* [in] */ DWORD Flags);
  198. DWORD NetrDfsAddStdRootForced(
  199. /* [string][in] */ LPWSTR ServerName,
  200. /* [string][in] */ LPWSTR RootShare,
  201. /* [string][in] */ LPWSTR Comment,
  202. /* [string][in] */ LPWSTR Share);
  203. DWORD NetrDfsGetDcAddress(
  204. /* [string][in] */ LPWSTR ServerName,
  205. /* [string][out][in] */ LPWSTR *DcName,
  206. /* [out][in] */ BOOLEAN *IsRoot,
  207. /* [out][in] */ ULONG *Timeout);
  208. DWORD NetrDfsSetDcAddress(
  209. /* [string][in] */ LPWSTR ServerName,
  210. /* [string][in] */ LPWSTR DcName,
  211. /* [in] */ DWORD Timeout,
  212. /* [in] */ DWORD Flags);
  213. DWORD NetrDfsFlushFtTable(
  214. /* [string][in] */ LPWSTR DcName,
  215. /* [string][in] */ LPWSTR wszFtDfsName);
  216. DWORD NetrDfsAdd2(
  217. /* [string][in] */ LPWSTR DfsEntryPath,
  218. /* [string][in] */ LPWSTR DcName,
  219. /* [string][in] */ LPWSTR ServerName,
  220. /* [string][unique][in] */ LPWSTR ShareName,
  221. /* [string][unique][in] */ LPWSTR Comment,
  222. /* [in] */ DWORD Flags,
  223. /* [unique][out][in] */ PDFSM_ROOT_LIST *ppRootList);
  224. DWORD NetrDfsRemove2(
  225. /* [string][in] */ LPWSTR DfsEntryPath,
  226. /* [string][in] */ LPWSTR DcName,
  227. /* [string][unique][in] */ LPWSTR ServerName,
  228. /* [string][unique][in] */ LPWSTR ShareName,
  229. /* [unique][out][in] */ PDFSM_ROOT_LIST *ppRootList);
  230. DWORD NetrDfsEnumEx(
  231. /* [string][in] */ LPWSTR DfsEntryPath,
  232. /* [in] */ DWORD Level,
  233. /* [in] */ DWORD PrefMaxLen,
  234. /* [unique][out][in] */ LPDFS_INFO_ENUM_STRUCT DfsEnum,
  235. /* [unique][out][in] */ LPDWORD ResumeHandle);
  236. DWORD NetrDfsSetInfo2(
  237. /* [string][in] */ LPWSTR DfsEntryPath,
  238. /* [string][in] */ LPWSTR DcName,
  239. /* [string][unique][in] */ LPWSTR ServerName,
  240. /* [string][unique][in] */ LPWSTR ShareName,
  241. /* [in] */ DWORD Level,
  242. /* [switch_is][in] */ LPDFS_INFO_STRUCT pDfsInfo,
  243. /* [unique][out][in] */ PDFSM_ROOT_LIST *ppRootList);
  244. extern handle_t netdfs_bhandle;
  245. extern RPC_IF_HANDLE netdfs_ClientIfHandle;
  246. extern RPC_IF_HANDLE netdfs_ServerIfHandle;
  247. #endif /* __netdfs_INTERFACE_DEFINED__ */
  248. /* Additional Prototypes for ALL interfaces */
  249. /* end of Additional Prototypes */
  250. #ifdef __cplusplus
  251. }
  252. #endif
  253. #endif