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.

604 lines
16 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 dfrgifc.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, 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 COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __dfrgifc_h__
  27. #define __dfrgifc_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IFsuAsync_FWD_DEFINED__
  33. #define __IFsuAsync_FWD_DEFINED__
  34. typedef interface IFsuAsync IFsuAsync;
  35. #endif /* __IFsuAsync_FWD_DEFINED__ */
  36. #ifndef __IFsuDefrag_FWD_DEFINED__
  37. #define __IFsuDefrag_FWD_DEFINED__
  38. typedef interface IFsuDefrag IFsuDefrag;
  39. #endif /* __IFsuDefrag_FWD_DEFINED__ */
  40. #ifndef __IFsuFormat_FWD_DEFINED__
  41. #define __IFsuFormat_FWD_DEFINED__
  42. typedef interface IFsuFormat IFsuFormat;
  43. #endif /* __IFsuFormat_FWD_DEFINED__ */
  44. #ifndef __FsuDefrag_FWD_DEFINED__
  45. #define __FsuDefrag_FWD_DEFINED__
  46. #ifdef __cplusplus
  47. typedef class FsuDefrag FsuDefrag;
  48. #else
  49. typedef struct FsuDefrag FsuDefrag;
  50. #endif /* __cplusplus */
  51. #endif /* __FsuDefrag_FWD_DEFINED__ */
  52. #ifndef __FsuFormat_FWD_DEFINED__
  53. #define __FsuFormat_FWD_DEFINED__
  54. #ifdef __cplusplus
  55. typedef class FsuFormat FsuFormat;
  56. #else
  57. typedef struct FsuFormat FsuFormat;
  58. #endif /* __cplusplus */
  59. #endif /* __FsuFormat_FWD_DEFINED__ */
  60. /* header files for imported files */
  61. #include "oaidl.h"
  62. #include "ocidl.h"
  63. #ifdef __cplusplus
  64. extern "C"{
  65. #endif
  66. void * __RPC_USER MIDL_user_allocate(size_t);
  67. void __RPC_USER MIDL_user_free( void * );
  68. /* interface __MIDL_itf_dfrgifc_0000 */
  69. /* [local] */
  70. #pragma once
  71. #define DFRG_E_LOW_FREESPACE ( 0x80043400L )
  72. #define DFRG_E_CORRUPT_MFT ( 0x80043401L )
  73. #define DFRG_E_CANCEL_TOO_LATE ( 0x80043404L )
  74. #define DFRG_E_ALREADY_RUNNING ( 0x80043405L )
  75. #define DFRG_E_ENGINE_CONNECT ( 0x80043406L )
  76. #define DFRG_E_ENGINE_ERROR ( 0x80043407L )
  77. #pragma once
  78. #define FMT_E_UNSUPPORTED_FS ( 0x80043500L )
  79. #define FMT_E_CANT_QUICKFORMAT ( 0x80043501L )
  80. #define FMT_E_CANCEL_TOO_LATE ( 0x80043504L )
  81. #define FMT_E_IO_ERROR ( 0x80043505L )
  82. #define FMT_E_BAD_LABEL ( 0x80043506L )
  83. #define FMT_E_INCOMPATIBLE_MEDIA ( 0x80043507L )
  84. #define FMT_E_WRITE_PROTECTED ( 0x80043508L )
  85. #define FMT_E_CANT_LOCK ( 0x80043509L )
  86. #define FMT_E_NO_MEDIA ( 0x8004350aL )
  87. #define FMT_E_VOLUME_TOO_SMALL ( 0x8004350bL )
  88. #define FMT_E_VOLUME_TOO_BIG ( 0x8004350cL )
  89. #define FMT_E_CLUSTER_SIZE_TOO_SMALL ( 0x8004350dL )
  90. #define FMT_E_CLUSTER_SIZE_TOO_BIG ( 0x8004350eL )
  91. #define FMT_E_CLUSTER_COUNT_BEYOND_32BITS ( 0x8004350fL )
  92. #define FMT_E_VOLUME_NOT_MOUNTED ( 0x80043510L )
  93. typedef struct _DEFRAG_REPORT
  94. {
  95. WCHAR wszVolumeName[ 51 ];
  96. WCHAR wszVolumeLabel[ 100 ];
  97. WCHAR wcDrive;
  98. WCHAR wszFileSystem[ 16 ];
  99. LONGLONG DiskSize;
  100. LONGLONG BytesPerCluster;
  101. LONGLONG UsedSpace;
  102. LONGLONG FreeSpace;
  103. DWORD FreeSpacePercent;
  104. LONGLONG UsableFreeSpace;
  105. DWORD UsableFreeSpacePercent;
  106. LONGLONG PagefileBytes;
  107. LONGLONG PagefileFrags;
  108. LONGLONG TotalDirectories;
  109. LONGLONG FragmentedDirectories;
  110. LONGLONG ExcessDirFrags;
  111. LONGLONG TotalFiles;
  112. LONGLONG AvgFileSize;
  113. LONGLONG NumFraggedFiles;
  114. LONGLONG NumExcessFrags;
  115. DWORD PercentDiskFragged;
  116. LONGLONG AvgFragsPerFile;
  117. LONGLONG MFTBytes;
  118. LONGLONG InUseMFTRecords;
  119. LONGLONG TotalMFTRecords;
  120. LONGLONG MFTExtents;
  121. DWORD FreeSpaceFragPercent;
  122. } DEFRAG_REPORT;
  123. extern RPC_IF_HANDLE __MIDL_itf_dfrgifc_0000_v0_0_c_ifspec;
  124. extern RPC_IF_HANDLE __MIDL_itf_dfrgifc_0000_v0_0_s_ifspec;
  125. #ifndef __IFsuAsync_INTERFACE_DEFINED__
  126. #define __IFsuAsync_INTERFACE_DEFINED__
  127. /* interface IFsuAsync */
  128. /* [unique][uuid][object] */
  129. EXTERN_C const IID IID_IFsuAsync;
  130. #if defined(__cplusplus) && !defined(CINTERFACE)
  131. MIDL_INTERFACE("EB0BA0CE-C788-430c-AA1E-C4B46C8E16B0")
  132. IFsuAsync : public IUnknown
  133. {
  134. public:
  135. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0;
  136. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Wait(
  137. /* [out] */ HRESULT *pHrResult) = 0;
  138. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryStatus(
  139. /* [out] */ HRESULT *pHrResult,
  140. /* [out] */ ULONG *pulPercentCompleted) = 0;
  141. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDefragReport(
  142. /* [out] */ DEFRAG_REPORT *pAsyncOut) = 0;
  143. };
  144. #else /* C style interface */
  145. typedef struct IFsuAsyncVtbl
  146. {
  147. BEGIN_INTERFACE
  148. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  149. IFsuAsync * This,
  150. /* [in] */ REFIID riid,
  151. /* [iid_is][out] */ void **ppvObject);
  152. ULONG ( STDMETHODCALLTYPE *AddRef )(
  153. IFsuAsync * This);
  154. ULONG ( STDMETHODCALLTYPE *Release )(
  155. IFsuAsync * This);
  156. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Cancel )(
  157. IFsuAsync * This);
  158. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Wait )(
  159. IFsuAsync * This,
  160. /* [out] */ HRESULT *pHrResult);
  161. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryStatus )(
  162. IFsuAsync * This,
  163. /* [out] */ HRESULT *pHrResult,
  164. /* [out] */ ULONG *pulPercentCompleted);
  165. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDefragReport )(
  166. IFsuAsync * This,
  167. /* [out] */ DEFRAG_REPORT *pAsyncOut);
  168. END_INTERFACE
  169. } IFsuAsyncVtbl;
  170. interface IFsuAsync
  171. {
  172. CONST_VTBL struct IFsuAsyncVtbl *lpVtbl;
  173. };
  174. #ifdef COBJMACROS
  175. #define IFsuAsync_QueryInterface(This,riid,ppvObject) \
  176. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  177. #define IFsuAsync_AddRef(This) \
  178. (This)->lpVtbl -> AddRef(This)
  179. #define IFsuAsync_Release(This) \
  180. (This)->lpVtbl -> Release(This)
  181. #define IFsuAsync_Cancel(This) \
  182. (This)->lpVtbl -> Cancel(This)
  183. #define IFsuAsync_Wait(This,pHrResult) \
  184. (This)->lpVtbl -> Wait(This,pHrResult)
  185. #define IFsuAsync_QueryStatus(This,pHrResult,pulPercentCompleted) \
  186. (This)->lpVtbl -> QueryStatus(This,pHrResult,pulPercentCompleted)
  187. #define IFsuAsync_GetDefragReport(This,pAsyncOut) \
  188. (This)->lpVtbl -> GetDefragReport(This,pAsyncOut)
  189. #endif /* COBJMACROS */
  190. #endif /* C style interface */
  191. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuAsync_Cancel_Proxy(
  192. IFsuAsync * This);
  193. void __RPC_STUB IFsuAsync_Cancel_Stub(
  194. IRpcStubBuffer *This,
  195. IRpcChannelBuffer *_pRpcChannelBuffer,
  196. PRPC_MESSAGE _pRpcMessage,
  197. DWORD *_pdwStubPhase);
  198. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuAsync_Wait_Proxy(
  199. IFsuAsync * This,
  200. /* [out] */ HRESULT *pHrResult);
  201. void __RPC_STUB IFsuAsync_Wait_Stub(
  202. IRpcStubBuffer *This,
  203. IRpcChannelBuffer *_pRpcChannelBuffer,
  204. PRPC_MESSAGE _pRpcMessage,
  205. DWORD *_pdwStubPhase);
  206. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuAsync_QueryStatus_Proxy(
  207. IFsuAsync * This,
  208. /* [out] */ HRESULT *pHrResult,
  209. /* [out] */ ULONG *pulPercentCompleted);
  210. void __RPC_STUB IFsuAsync_QueryStatus_Stub(
  211. IRpcStubBuffer *This,
  212. IRpcChannelBuffer *_pRpcChannelBuffer,
  213. PRPC_MESSAGE _pRpcMessage,
  214. DWORD *_pdwStubPhase);
  215. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuAsync_GetDefragReport_Proxy(
  216. IFsuAsync * This,
  217. /* [out] */ DEFRAG_REPORT *pAsyncOut);
  218. void __RPC_STUB IFsuAsync_GetDefragReport_Stub(
  219. IRpcStubBuffer *This,
  220. IRpcChannelBuffer *_pRpcChannelBuffer,
  221. PRPC_MESSAGE _pRpcMessage,
  222. DWORD *_pdwStubPhase);
  223. #endif /* __IFsuAsync_INTERFACE_DEFINED__ */
  224. #ifndef __IFsuDefrag_INTERFACE_DEFINED__
  225. #define __IFsuDefrag_INTERFACE_DEFINED__
  226. /* interface IFsuDefrag */
  227. /* [unique][helpstring][uuid][object] */
  228. EXTERN_C const IID IID_IFsuDefrag;
  229. #if defined(__cplusplus) && !defined(CINTERFACE)
  230. MIDL_INTERFACE("E3C6F7D8-CB62-42FE-8B9E-72BC96CCE989")
  231. IFsuDefrag : public IUnknown
  232. {
  233. public:
  234. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Defrag(
  235. /* [string][unique][in] */ WCHAR *pwszVolume,
  236. /* [in] */ BOOL fForce,
  237. /* [out] */ IFsuAsync **ppAsyncOut) = 0;
  238. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DefragAnalysis(
  239. /* [string][unique][in] */ WCHAR *pwszVolume,
  240. /* [out] */ IFsuAsync **ppAsyncOut) = 0;
  241. };
  242. #else /* C style interface */
  243. typedef struct IFsuDefragVtbl
  244. {
  245. BEGIN_INTERFACE
  246. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  247. IFsuDefrag * This,
  248. /* [in] */ REFIID riid,
  249. /* [iid_is][out] */ void **ppvObject);
  250. ULONG ( STDMETHODCALLTYPE *AddRef )(
  251. IFsuDefrag * This);
  252. ULONG ( STDMETHODCALLTYPE *Release )(
  253. IFsuDefrag * This);
  254. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Defrag )(
  255. IFsuDefrag * This,
  256. /* [string][unique][in] */ WCHAR *pwszVolume,
  257. /* [in] */ BOOL fForce,
  258. /* [out] */ IFsuAsync **ppAsyncOut);
  259. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DefragAnalysis )(
  260. IFsuDefrag * This,
  261. /* [string][unique][in] */ WCHAR *pwszVolume,
  262. /* [out] */ IFsuAsync **ppAsyncOut);
  263. END_INTERFACE
  264. } IFsuDefragVtbl;
  265. interface IFsuDefrag
  266. {
  267. CONST_VTBL struct IFsuDefragVtbl *lpVtbl;
  268. };
  269. #ifdef COBJMACROS
  270. #define IFsuDefrag_QueryInterface(This,riid,ppvObject) \
  271. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  272. #define IFsuDefrag_AddRef(This) \
  273. (This)->lpVtbl -> AddRef(This)
  274. #define IFsuDefrag_Release(This) \
  275. (This)->lpVtbl -> Release(This)
  276. #define IFsuDefrag_Defrag(This,pwszVolume,fForce,ppAsyncOut) \
  277. (This)->lpVtbl -> Defrag(This,pwszVolume,fForce,ppAsyncOut)
  278. #define IFsuDefrag_DefragAnalysis(This,pwszVolume,ppAsyncOut) \
  279. (This)->lpVtbl -> DefragAnalysis(This,pwszVolume,ppAsyncOut)
  280. #endif /* COBJMACROS */
  281. #endif /* C style interface */
  282. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuDefrag_Defrag_Proxy(
  283. IFsuDefrag * This,
  284. /* [string][unique][in] */ WCHAR *pwszVolume,
  285. /* [in] */ BOOL fForce,
  286. /* [out] */ IFsuAsync **ppAsyncOut);
  287. void __RPC_STUB IFsuDefrag_Defrag_Stub(
  288. IRpcStubBuffer *This,
  289. IRpcChannelBuffer *_pRpcChannelBuffer,
  290. PRPC_MESSAGE _pRpcMessage,
  291. DWORD *_pdwStubPhase);
  292. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuDefrag_DefragAnalysis_Proxy(
  293. IFsuDefrag * This,
  294. /* [string][unique][in] */ WCHAR *pwszVolume,
  295. /* [out] */ IFsuAsync **ppAsyncOut);
  296. void __RPC_STUB IFsuDefrag_DefragAnalysis_Stub(
  297. IRpcStubBuffer *This,
  298. IRpcChannelBuffer *_pRpcChannelBuffer,
  299. PRPC_MESSAGE _pRpcMessage,
  300. DWORD *_pdwStubPhase);
  301. #endif /* __IFsuDefrag_INTERFACE_DEFINED__ */
  302. #ifndef __IFsuFormat_INTERFACE_DEFINED__
  303. #define __IFsuFormat_INTERFACE_DEFINED__
  304. /* interface IFsuFormat */
  305. /* [unique][helpstring][uuid][object] */
  306. EXTERN_C const IID IID_IFsuFormat;
  307. #if defined(__cplusplus) && !defined(CINTERFACE)
  308. MIDL_INTERFACE("A7EDB96A-FC28-4BA0-A297-3B760D8AFFEE")
  309. IFsuFormat : public IUnknown
  310. {
  311. public:
  312. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Format(
  313. /* [string][unique][in] */ WCHAR *pwszVolume,
  314. /* [string][unique][in] */ WCHAR *pwszFileSystem,
  315. /* [string][unique][in] */ WCHAR *pwszLabel,
  316. /* [in] */ BOOL fQuickFormat,
  317. /* [in] */ BOOL fEnableCompression,
  318. /* [in] */ DWORD cbClusterSize,
  319. /* [out] */ IFsuAsync **ppAsyncOut) = 0;
  320. };
  321. #else /* C style interface */
  322. typedef struct IFsuFormatVtbl
  323. {
  324. BEGIN_INTERFACE
  325. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  326. IFsuFormat * This,
  327. /* [in] */ REFIID riid,
  328. /* [iid_is][out] */ void **ppvObject);
  329. ULONG ( STDMETHODCALLTYPE *AddRef )(
  330. IFsuFormat * This);
  331. ULONG ( STDMETHODCALLTYPE *Release )(
  332. IFsuFormat * This);
  333. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Format )(
  334. IFsuFormat * This,
  335. /* [string][unique][in] */ WCHAR *pwszVolume,
  336. /* [string][unique][in] */ WCHAR *pwszFileSystem,
  337. /* [string][unique][in] */ WCHAR *pwszLabel,
  338. /* [in] */ BOOL fQuickFormat,
  339. /* [in] */ BOOL fEnableCompression,
  340. /* [in] */ DWORD cbClusterSize,
  341. /* [out] */ IFsuAsync **ppAsyncOut);
  342. END_INTERFACE
  343. } IFsuFormatVtbl;
  344. interface IFsuFormat
  345. {
  346. CONST_VTBL struct IFsuFormatVtbl *lpVtbl;
  347. };
  348. #ifdef COBJMACROS
  349. #define IFsuFormat_QueryInterface(This,riid,ppvObject) \
  350. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  351. #define IFsuFormat_AddRef(This) \
  352. (This)->lpVtbl -> AddRef(This)
  353. #define IFsuFormat_Release(This) \
  354. (This)->lpVtbl -> Release(This)
  355. #define IFsuFormat_Format(This,pwszVolume,pwszFileSystem,pwszLabel,fQuickFormat,fEnableCompression,cbClusterSize,ppAsyncOut) \
  356. (This)->lpVtbl -> Format(This,pwszVolume,pwszFileSystem,pwszLabel,fQuickFormat,fEnableCompression,cbClusterSize,ppAsyncOut)
  357. #endif /* COBJMACROS */
  358. #endif /* C style interface */
  359. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFsuFormat_Format_Proxy(
  360. IFsuFormat * This,
  361. /* [string][unique][in] */ WCHAR *pwszVolume,
  362. /* [string][unique][in] */ WCHAR *pwszFileSystem,
  363. /* [string][unique][in] */ WCHAR *pwszLabel,
  364. /* [in] */ BOOL fQuickFormat,
  365. /* [in] */ BOOL fEnableCompression,
  366. /* [in] */ DWORD cbClusterSize,
  367. /* [out] */ IFsuAsync **ppAsyncOut);
  368. void __RPC_STUB IFsuFormat_Format_Stub(
  369. IRpcStubBuffer *This,
  370. IRpcChannelBuffer *_pRpcChannelBuffer,
  371. PRPC_MESSAGE _pRpcMessage,
  372. DWORD *_pdwStubPhase);
  373. #endif /* __IFsuFormat_INTERFACE_DEFINED__ */
  374. #ifndef __DFRGIFCLib_LIBRARY_DEFINED__
  375. #define __DFRGIFCLib_LIBRARY_DEFINED__
  376. /* library DFRGIFCLib */
  377. /* [helpstring][version][uuid] */
  378. EXTERN_C const IID LIBID_DFRGIFCLib;
  379. EXTERN_C const CLSID CLSID_FsuDefrag;
  380. #ifdef __cplusplus
  381. class DECLSPEC_UUID("17ED95A4-61CC-46E0-A84D-325A1CEF1C7D")
  382. FsuDefrag;
  383. #endif
  384. EXTERN_C const CLSID CLSID_FsuFormat;
  385. #ifdef __cplusplus
  386. class DECLSPEC_UUID("5E1CE40E-6BD3-4570-86C8-C9C9BF23E3CF")
  387. FsuFormat;
  388. #endif
  389. #endif /* __DFRGIFCLib_LIBRARY_DEFINED__ */
  390. /* Additional Prototypes for ALL interfaces */
  391. /* end of Additional Prototypes */
  392. #ifdef __cplusplus
  393. }
  394. #endif
  395. #endif