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.

681 lines
26 KiB

  1. #include "rpc.h"
  2. #include "rpcndr.h"
  3. #ifndef COM_NO_WINDOWS_H
  4. #include "windows.h"
  5. #include "ole2.h"
  6. #endif /*COM_NO_WINDOWS_H*/
  7. #ifndef __imd_h__
  8. #define __imd_h__
  9. #ifdef __cplusplus
  10. extern "C"{
  11. #endif
  12. /* Forward Declarations */
  13. #ifndef __IMDCOM_FWD_DEFINED__
  14. #define __IMDCOM_FWD_DEFINED__
  15. typedef interface IMDCOM IMDCOM;
  16. #endif /* __IMDCOM_FWD_DEFINED__ */
  17. #ifndef __IMDCOMSINKA_FWD_DEFINED__
  18. #define __IMDCOMSINKA_FWD_DEFINED__
  19. typedef interface IMDCOMSINKA IMDCOMSINKA;
  20. #endif /* __IMDCOMSINKA_FWD_DEFINED__ */
  21. #ifndef __IMDCOMSINKW_FWD_DEFINED__
  22. #define __IMDCOMSINKW_FWD_DEFINED__
  23. typedef interface IMDCOMSINKW IMDCOMSINKW;
  24. #endif /* __IMDCOMSINKW_FWD_DEFINED__ */
  25. /* header files for imported files */
  26. #include "unknwn.h"
  27. #include "objidl.h"
  28. #include "ocidl.h"
  29. #include "mddef.h"
  30. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  31. void __RPC_USER MIDL_user_free( void __RPC_FAR * );
  32. /****************************************
  33. * Generated header for interface: __MIDL__intf_0000
  34. * at Tue Jun 24 13:13:57 1997
  35. * using MIDL 3.00.44
  36. ****************************************/
  37. /* [local] */
  38. #ifndef _MD_IMD_
  39. #define _MD_IMD_
  40. /*
  41. The Main Interface
  42. */
  43. DEFINE_GUID(CLSID_MDCOM, 0xba4e57f0, 0xfab6, 0x11cf, 0x9d, 0x1a, 0x0, 0xaa, 0x0, 0xa7, 0xd, 0x51);
  44. DEFINE_GUID(IID_IMDCOM, 0xc1aa48c0, 0xfacc, 0x11cf, 0x9d, 0x1a, 0x0, 0xaa, 0x0, 0xa7, 0xd, 0x51);
  45. DEFINE_GUID(IID_IMDCOM2, 0x08dbe811, 0x20e5, 0x4e09, 0xb0, 0xc8, 0xcf, 0x87, 0x19, 0x0c, 0xe6, 0x0e);
  46. DEFINE_GUID(IID_IMDCOM3, 0xa53fd4aa, 0x6f0d, 0x4fe3, 0x9f, 0x81, 0x2b, 0x56, 0x19, 0x7b, 0x47, 0xdb);
  47. DEFINE_GUID(IID_NSECOM, 0x4810a750, 0x4318, 0x11d0, 0xa5, 0xc8, 0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x52);
  48. DEFINE_GUID(CLSID_NSEPMCOM, 0x05dc3bb0, 0x4337, 0x11d0, 0xa5, 0xc8, 0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x52);
  49. DEFINE_GUID(CLSID_MDCOMEXE, 0xba4e57f1, 0xfab6, 0x11cf, 0x9d, 0x1a, 0x0, 0xaa, 0x0, 0xa7, 0xd, 0x51);
  50. #define GETMDCLSID(IsService) CLSID_MDCOM
  51. DEFINE_GUID(CLSID_MDPCOM, 0xf1e08563, 0x1598, 0x11d1, 0x9d, 0x77, 0x0, 0xc0, 0x4f, 0xd7, 0xbf, 0x3e);
  52. #define GETMDPCLSID(IsService) CLSID_MDPCOM
  53. #define IID_IMDCOMSINK IID_IMDCOMSINK_A
  54. DEFINE_GUID(IID_IMDCOMSINK_A, 0x5229ea36, 0x1bdf, 0x11d0, 0x9d, 0x1c, 0x0, 0xaa, 0x0, 0xa7, 0xd, 0x51);
  55. DEFINE_GUID(IID_IMDCOMSINK_W, 0x6906ee20, 0xb69f, 0x11d0, 0xb9, 0xb9, 0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x50);
  56. extern RPC_IF_HANDLE __MIDL__intf_0000_v0_0_c_ifspec;
  57. extern RPC_IF_HANDLE __MIDL__intf_0000_v0_0_s_ifspec;
  58. #ifndef __IMDCOM_INTERFACE_DEFINED__
  59. #define __IMDCOM_INTERFACE_DEFINED__
  60. /****************************************
  61. * Generated header for interface: IMDCOM
  62. * at Tue Jun 24 13:13:57 1997
  63. * using MIDL 3.00.44
  64. ****************************************/
  65. /* [unique][uuid][object] */
  66. EXTERN_C const IID IID_IMDCOM;
  67. #if defined(__cplusplus) && !defined(CINTERFACE)
  68. interface IMDCOM : public IUnknown
  69. {
  70. public:
  71. virtual HRESULT STDMETHODCALLTYPE ComMDInitialize( void) = 0;
  72. virtual HRESULT STDMETHODCALLTYPE ComMDTerminate(
  73. /* [in] */ BOOL bSaveData) = 0;
  74. virtual HRESULT STDMETHODCALLTYPE ComMDShutdown( void) = 0;
  75. virtual HRESULT STDMETHODCALLTYPE ComMDAddMetaObjectA(
  76. /* [in] */ METADATA_HANDLE hMDHandle,
  77. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath) = 0;
  78. virtual HRESULT STDMETHODCALLTYPE ComMDAddMetaObjectW(
  79. /* [in] */ METADATA_HANDLE hMDHandle,
  80. /* [string][in][unique] */ LPCWSTR pszMDPath) = 0;
  81. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteMetaObjectA(
  82. /* [in] */ METADATA_HANDLE hMDHandle,
  83. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath) = 0;
  84. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteMetaObjectW(
  85. /* [in] */ METADATA_HANDLE hMDHandle,
  86. /* [string][in][unique] */ LPCWSTR pszMDPath) = 0;
  87. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteChildMetaObjectsA(
  88. /* [in] */ METADATA_HANDLE hMDHandle,
  89. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath) = 0;
  90. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteChildMetaObjectsW(
  91. /* [in] */ METADATA_HANDLE hMDHandle,
  92. /* [string][in][unique] */ LPCWSTR pszMDPath) = 0;
  93. virtual HRESULT STDMETHODCALLTYPE ComMDEnumMetaObjectsA(
  94. /* [in] */ METADATA_HANDLE hMDHandle,
  95. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  96. /* [size_is][out] */ unsigned char __RPC_FAR *pszMDName,
  97. /* [in] */ DWORD dwMDEnumObjectIndex) = 0;
  98. virtual HRESULT STDMETHODCALLTYPE ComMDEnumMetaObjectsW(
  99. /* [in] */ METADATA_HANDLE hMDHandle,
  100. /* [string][in][unique] */ LPCWSTR pszMDPath,
  101. /* [size_is][out] */ LPWSTR pszMDName,
  102. /* [in] */ DWORD dwMDEnumObjectIndex) = 0;
  103. virtual HRESULT STDMETHODCALLTYPE ComMDCopyMetaObjectA(
  104. /* [in] */ METADATA_HANDLE hMDSourceHandle,
  105. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDSourcePath,
  106. /* [in] */ METADATA_HANDLE hMDDestHandle,
  107. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDDestPath,
  108. /* [in] */ BOOL bMDOverwriteFlag,
  109. /* [in] */ BOOL bMDCopyFlag) = 0;
  110. virtual HRESULT STDMETHODCALLTYPE ComMDCopyMetaObjectW(
  111. /* [in] */ METADATA_HANDLE hMDSourceHandle,
  112. /* [string][in][unique] */ LPCWSTR pszMDSourcePath,
  113. /* [in] */ METADATA_HANDLE hMDDestHandle,
  114. /* [string][in][unique] */ LPCWSTR pszMDDestPath,
  115. /* [in] */ BOOL bMDOverwriteFlag,
  116. /* [in] */ BOOL bMDCopyFlag) = 0;
  117. virtual HRESULT STDMETHODCALLTYPE ComMDRenameMetaObjectA(
  118. /* [in] */ METADATA_HANDLE hMDHandle,
  119. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  120. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDNewName) = 0;
  121. virtual HRESULT STDMETHODCALLTYPE ComMDRenameMetaObjectW(
  122. /* [in] */ METADATA_HANDLE hMDHandle,
  123. /* [string][in][unique] */ LPCWSTR pszMDPath,
  124. /* [string][in][unique] */ LPCWSTR pszMDNewName) = 0;
  125. virtual HRESULT STDMETHODCALLTYPE ComMDSetMetaDataA(
  126. /* [in] */ METADATA_HANDLE hMDHandle,
  127. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  128. /* [in] */ PMETADATA_RECORD pmdrMDData) = 0;
  129. virtual HRESULT STDMETHODCALLTYPE ComMDSetMetaDataW(
  130. /* [in] */ METADATA_HANDLE hMDHandle,
  131. /* [string][in][unique] */ LPCWSTR pszMDPath,
  132. /* [in] */ PMETADATA_RECORD pmdrMDData) = 0;
  133. virtual HRESULT STDMETHODCALLTYPE ComMDGetMetaDataA(
  134. /* [in] */ METADATA_HANDLE hMDHandle,
  135. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  136. /* [out][in] */ PMETADATA_RECORD pmdrMDData,
  137. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredDataLen) = 0;
  138. virtual HRESULT STDMETHODCALLTYPE ComMDGetMetaDataW(
  139. /* [in] */ METADATA_HANDLE hMDHandle,
  140. /* [string][in][unique] */ LPCWSTR pszMDPath,
  141. /* [out][in] */ PMETADATA_RECORD pmdrMDData,
  142. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredDataLen) = 0;
  143. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteMetaDataA(
  144. /* [in] */ METADATA_HANDLE hMDHandle,
  145. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  146. /* [in] */ DWORD dwMDIdentifier,
  147. /* [in] */ DWORD dwMDDataType) = 0;
  148. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteMetaDataW(
  149. /* [in] */ METADATA_HANDLE hMDHandle,
  150. /* [string][in][unique] */ LPCWSTR pszMDPath,
  151. /* [in] */ DWORD dwMDIdentifier,
  152. /* [in] */ DWORD dwMDDataType) = 0;
  153. virtual HRESULT STDMETHODCALLTYPE ComMDEnumMetaDataA(
  154. /* [in] */ METADATA_HANDLE hMDHandle,
  155. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  156. /* [out][in] */ PMETADATA_RECORD pmdrMDData,
  157. /* [in] */ DWORD dwMDEnumDataIndex,
  158. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredDataLen) = 0;
  159. virtual HRESULT STDMETHODCALLTYPE ComMDEnumMetaDataW(
  160. /* [in] */ METADATA_HANDLE hMDHandle,
  161. /* [string][in][unique] */ LPCWSTR pszMDPath,
  162. /* [out][in] */ PMETADATA_RECORD pmdrMDData,
  163. /* [in] */ DWORD dwMDEnumDataIndex,
  164. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredDataLen) = 0;
  165. virtual HRESULT STDMETHODCALLTYPE ComMDGetAllMetaDataA(
  166. /* [in] */ METADATA_HANDLE hMDHandle,
  167. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  168. /* [in] */ DWORD dwMDAttributes,
  169. /* [in] */ DWORD dwMDUserType,
  170. /* [in] */ DWORD dwMDDataType,
  171. /* [out] */ DWORD __RPC_FAR *pdwMDNumDataEntries,
  172. /* [out] */ DWORD __RPC_FAR *pdwMDDataSetNumber,
  173. /* [in] */ DWORD dwMDBufferSize,
  174. /* [size_is][out] */ unsigned char __RPC_FAR *pbBuffer,
  175. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredBufferSize) = 0;
  176. virtual HRESULT STDMETHODCALLTYPE ComMDGetAllMetaDataW(
  177. /* [in] */ METADATA_HANDLE hMDHandle,
  178. /* [string][in][unique] */ LPCWSTR pszMDPath,
  179. /* [in] */ DWORD dwMDAttributes,
  180. /* [in] */ DWORD dwMDUserType,
  181. /* [in] */ DWORD dwMDDataType,
  182. /* [out] */ DWORD __RPC_FAR *pdwMDNumDataEntries,
  183. /* [out] */ DWORD __RPC_FAR *pdwMDDataSetNumber,
  184. /* [in] */ DWORD dwMDBufferSize,
  185. /* [size_is][out] */ unsigned char __RPC_FAR *pbBuffer,
  186. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredBufferSize) = 0;
  187. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteAllMetaDataA(
  188. /* [in] */ METADATA_HANDLE hMDHandle,
  189. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  190. /* [in] */ DWORD dwMDUserType,
  191. /* [in] */ DWORD dwMDDataType) = 0;
  192. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteAllMetaDataW(
  193. /* [in] */ METADATA_HANDLE hMDHandle,
  194. /* [string][in][unique] */ LPCWSTR pszMDPath,
  195. /* [in] */ DWORD dwMDUserType,
  196. /* [in] */ DWORD dwMDDataType) = 0;
  197. virtual HRESULT STDMETHODCALLTYPE ComMDCopyMetaDataA(
  198. /* [in] */ METADATA_HANDLE hMDSourceHandle,
  199. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDSourcePath,
  200. /* [in] */ METADATA_HANDLE hMDDestHandle,
  201. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDDestPath,
  202. /* [in] */ DWORD dwMDAttributes,
  203. /* [in] */ DWORD dwMDUserType,
  204. /* [in] */ DWORD dwMDDataType,
  205. /* [in] */ BOOL bMDCopyFlag) = 0;
  206. virtual HRESULT STDMETHODCALLTYPE ComMDCopyMetaDataW(
  207. /* [in] */ METADATA_HANDLE hMDSourceHandle,
  208. /* [string][in][unique] */ LPCWSTR pszMDSourcePath,
  209. /* [in] */ METADATA_HANDLE hMDDestHandle,
  210. /* [string][in][unique] */ LPCWSTR pszMDDestPath,
  211. /* [in] */ DWORD dwMDAttributes,
  212. /* [in] */ DWORD dwMDUserType,
  213. /* [in] */ DWORD dwMDDataType,
  214. /* [in] */ BOOL bMDCopyFlag) = 0;
  215. virtual HRESULT STDMETHODCALLTYPE ComMDGetMetaDataPathsA(
  216. /* [in] */ METADATA_HANDLE hMDHandle,
  217. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  218. /* [in] */ DWORD dwMDIdentifier,
  219. /* [in] */ DWORD dwMDDataType,
  220. /* [in] */ DWORD dwMDBufferSize,
  221. /* [size_is][out] */ unsigned char __RPC_FAR *pszMDBuffer,
  222. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredBufferSize) = 0;
  223. virtual HRESULT STDMETHODCALLTYPE ComMDGetMetaDataPathsW(
  224. /* [in] */ METADATA_HANDLE hMDHandle,
  225. /* [string][in][unique] */ LPCWSTR pszMDPath,
  226. /* [in] */ DWORD dwMDIdentifier,
  227. /* [in] */ DWORD dwMDDataType,
  228. /* [in] */ DWORD dwMDBufferSize,
  229. /* [size_is][out] */ LPWSTR pszMDBuffer,
  230. /* [out] */ DWORD __RPC_FAR *pdwMDRequiredBufferSize) = 0;
  231. virtual HRESULT STDMETHODCALLTYPE ComMDOpenMetaObjectA(
  232. /* [in] */ METADATA_HANDLE hMDHandle,
  233. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  234. /* [in] */ DWORD dwMDAccessRequested,
  235. /* [in] */ DWORD dwMDTimeOut,
  236. /* [out] */ PMETADATA_HANDLE phMDNewHandle) = 0;
  237. virtual HRESULT STDMETHODCALLTYPE ComMDOpenMetaObjectW(
  238. /* [in] */ METADATA_HANDLE hMDHandle,
  239. /* [string][in][unique] */ LPCWSTR pszMDPath,
  240. /* [in] */ DWORD dwMDAccessRequested,
  241. /* [in] */ DWORD dwMDTimeOut,
  242. /* [out] */ PMETADATA_HANDLE phMDNewHandle) = 0;
  243. virtual HRESULT STDMETHODCALLTYPE ComMDCloseMetaObject(
  244. /* [in] */ METADATA_HANDLE hMDHandle) = 0;
  245. virtual HRESULT STDMETHODCALLTYPE ComMDChangePermissions(
  246. /* [in] */ METADATA_HANDLE hMDHandle,
  247. /* [in] */ DWORD dwMDTimeOut,
  248. /* [in] */ DWORD dwMDAccessRequested) = 0;
  249. virtual HRESULT STDMETHODCALLTYPE ComMDSaveData(METADATA_HANDLE hMDHandle = 0) = 0;
  250. virtual HRESULT STDMETHODCALLTYPE ComMDGetHandleInfo(
  251. /* [in] */ METADATA_HANDLE hMDHandle,
  252. /* [out] */ PMETADATA_HANDLE_INFO pmdhiInfo) = 0;
  253. virtual HRESULT STDMETHODCALLTYPE ComMDGetSystemChangeNumber(
  254. /* [out] */ DWORD __RPC_FAR *pdwSystemChangeNumber) = 0;
  255. virtual HRESULT STDMETHODCALLTYPE ComMDGetDataSetNumberA(
  256. /* [in] */ METADATA_HANDLE hMDHandle,
  257. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  258. /* [out] */ DWORD __RPC_FAR *pdwMDDataSetNumber) = 0;
  259. virtual HRESULT STDMETHODCALLTYPE ComMDGetDataSetNumberW(
  260. /* [in] */ METADATA_HANDLE hMDHandle,
  261. /* [string][in][unique] */ LPCWSTR pszMDPath,
  262. /* [out] */ DWORD __RPC_FAR *pdwMDDataSetNumber) = 0;
  263. virtual HRESULT STDMETHODCALLTYPE ComMDAddRefReferenceData(
  264. /* [in] */ DWORD dwMDDataTag) = 0;
  265. virtual HRESULT STDMETHODCALLTYPE ComMDReleaseReferenceData(
  266. /* [in] */ DWORD dwMDDataTag) = 0;
  267. virtual HRESULT STDMETHODCALLTYPE ComMDSetLastChangeTimeA(
  268. /* [in] */ METADATA_HANDLE hMDHandle,
  269. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  270. /* [in] */ PFILETIME pftMDLastChangeTime) = 0;
  271. virtual HRESULT STDMETHODCALLTYPE ComMDSetLastChangeTimeW(
  272. /* [in] */ METADATA_HANDLE hMDHandle,
  273. /* [string][in][unique] */ LPCWSTR pszMDPath,
  274. /* [in] */ PFILETIME pftMDLastChangeTime) = 0;
  275. virtual HRESULT STDMETHODCALLTYPE ComMDGetLastChangeTimeA(
  276. /* [in] */ METADATA_HANDLE hMDHandle,
  277. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDPath,
  278. /* [out] */ PFILETIME pftMDLastChangeTime) = 0;
  279. virtual HRESULT STDMETHODCALLTYPE ComMDGetLastChangeTimeW(
  280. /* [in] */ METADATA_HANDLE hMDHandle,
  281. /* [string][in][unique] */ LPCWSTR pszMDPath,
  282. /* [out] */ PFILETIME pftMDLastChangeTime) = 0;
  283. virtual HRESULT STDMETHODCALLTYPE ComMDBackupA(
  284. /* [in] */ METADATA_HANDLE hMDHandle,
  285. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDBackupLocation,
  286. /* [in] */ DWORD dwMDVersion,
  287. /* [in] */ DWORD dwMDFlags) = 0;
  288. virtual HRESULT STDMETHODCALLTYPE ComMDBackupW(
  289. /* [in] */ METADATA_HANDLE hMDHandle,
  290. /* [string][in][unique] */ LPCWSTR pszMDBackupLocation,
  291. /* [in] */ DWORD dwMDVersion,
  292. /* [in] */ DWORD dwMDFlags) = 0;
  293. virtual HRESULT STDMETHODCALLTYPE ComMDRestoreA(
  294. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDBackupLocation,
  295. /* [in] */ DWORD dwVersion,
  296. /* [in] */ DWORD dwMDFlags) = 0;
  297. virtual HRESULT STDMETHODCALLTYPE ComMDRestoreW(
  298. /* [string][in][unique] */ LPCWSTR pszMDBackupLocation,
  299. /* [in] */ DWORD dwVersion,
  300. /* [in] */ DWORD dwMDFlags) = 0;
  301. virtual HRESULT STDMETHODCALLTYPE ComMDEnumBackupsA(
  302. /* [size_is (MD_BACKUP_MAX_LEN)][in, out] */ unsigned char __RPC_FAR *pszMDBackupLocation,
  303. /* [out] */ DWORD *pdwVersion,
  304. /* [out] */ PFILETIME pftMDBackupTime,
  305. /* [in] */ DWORD dwMDEnumIndex) = 0;
  306. virtual HRESULT STDMETHODCALLTYPE ComMDEnumBackupsW(
  307. /* [size_is (MD_BACKUP_MAX_LEN)][in, out] */ LPWSTR pszMDBackupLocation,
  308. /* [out] */ DWORD *pdwVersion,
  309. /* [out] */ PFILETIME pftMDBackupTime,
  310. /* [in] */ DWORD dwMDEnumIndex) = 0;
  311. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteBackupA(
  312. /* [string][in][unique] */ unsigned char __RPC_FAR *pszMDBackupLocation,
  313. /* [in] */ DWORD dwVersion) = 0;
  314. virtual HRESULT STDMETHODCALLTYPE ComMDDeleteBackupW(
  315. /* [string][in][unique] */ LPCWSTR pszMDBackupLocation,
  316. /* [in] */ DWORD dwVersion) = 0;
  317. };
  318. #else /* C style interface */
  319. #endif
  320. #endif /* __IMDCOM_INTERFACE_DEFINED__ */
  321. #ifndef __IMDCOM2_INTERFACE_DEFINED__
  322. #define __IMDCOM2_INTERFACE_DEFINED__
  323. /****************************************
  324. * Generated header for interface: IMDCOM
  325. * at Tue Jun 24 13:13:57 1997
  326. * using MIDL 3.00.44
  327. ****************************************/
  328. /* [unique][uuid][object] */
  329. EXTERN_C const IID IID_IMDCOM2;
  330. #if defined(__cplusplus) && !defined(CINTERFACE)
  331. interface IMDCOM2 : public IMDCOM
  332. {
  333. public:
  334. virtual HRESULT STDMETHODCALLTYPE ComMDBackupWithPasswdW(
  335. /* [in] */ METADATA_HANDLE hMDHandle,
  336. /* [string][in][unique] */ LPCWSTR pszMDBackupLocation,
  337. /* [in] */ DWORD dwMDVersion,
  338. /* [in] */ DWORD dwMDFlags,
  339. /* [string][in][unique] */ LPCWSTR pszPasswd) = 0;
  340. virtual HRESULT STDMETHODCALLTYPE ComMDRestoreWithPasswdW(
  341. /* [string][in][unique] */ LPCWSTR pszMDBackupLocation,
  342. /* [in] */ DWORD dwVersion,
  343. /* [in] */ DWORD dwMDFlags,
  344. /* [string][in][unique] */ LPCWSTR pszPasswd) = 0;
  345. virtual HRESULT STDMETHODCALLTYPE ComMDExportW(
  346. /* [in] */ METADATA_HANDLE hMDHandle,
  347. /* [string][in][unique] */ LPCWSTR pszPasswd,
  348. /* [string][in][unique] */ LPCWSTR pszFileName,
  349. /* [string][in][unique] */ LPCWSTR pszAbsSourcePath,
  350. /* [in] */ DWORD dwMDFlags) = 0;
  351. virtual HRESULT STDMETHODCALLTYPE ComMDImportW(
  352. /* [in] */ METADATA_HANDLE hMDHandle,
  353. /* [string][in][unique] */ LPCWSTR pszDestPath,
  354. /* [string][in][unique] */ LPCWSTR pszKeyType,
  355. /* [string][in][unique] */ LPCWSTR pszPasswd,
  356. /* [string][in][unique] */ LPCWSTR pszFileName,
  357. /* [string][in][unique] */ LPCWSTR pszAbsSourcePath,
  358. /* [in] */ DWORD dwMDFlags) = 0;
  359. virtual HRESULT STDMETHODCALLTYPE ComMDRestoreHistoryW(
  360. /* [unique][in][string] */ LPCWSTR pszMDHistoryLocation,
  361. /* [in] */ DWORD dwMDMajorVersion,
  362. /* [in] */ DWORD dwMDMinorVersion,
  363. /* [in] */ DWORD dwMDFlags) = 0;
  364. virtual HRESULT STDMETHODCALLTYPE ComMDEnumHistoryW(
  365. /* [size_is (MD_BACKUP_MAX_LEN)][in, out] */ LPWSTR pszMDHistoryLocation,
  366. /* [out] */ DWORD *pdwMDMajorVersion,
  367. /* [out] */ DWORD *pdwMDMinorVersion,
  368. /* [out] */ PFILETIME pftMDHistoryTime,
  369. /* [in] */ DWORD dwMDEnumIndex) = 0;
  370. };
  371. #else /* C style interface */
  372. #endif
  373. #endif /* __IMDCOM2_INTERFACE_DEFINED__ */
  374. #ifndef __IMDCOM3_INTERFACE_DEFINED__
  375. #define __IMDCOM3_INTERFACE_DEFINED__
  376. /****************************************
  377. * Generated header for interface: IMDCOM
  378. * at Tue Jun 24 13:13:57 1997
  379. * using MIDL 3.00.44
  380. ****************************************/
  381. /* [unique][uuid][object] */
  382. EXTERN_C const IID IID_IMDCOM3;
  383. #if defined(__cplusplus) && !defined(CINTERFACE)
  384. interface IMDCOM3 : public IMDCOM2
  385. {
  386. public:
  387. virtual HRESULT STDMETHODCALLTYPE ComMDGetChildPathsW(
  388. /* [in] */ METADATA_HANDLE hMDHandle,
  389. /* [unique, in, string] */ LPCWSTR pszMDPath,
  390. /* [in] */ DWORD dwMDBufferSize,
  391. /* [out, size_is(dwMDBufferSize)] */ WCHAR *pszBuffer,
  392. /* [out] */ DWORD *pdwMDRequiredBufferSize) = 0;
  393. virtual HRESULT STDMETHODCALLTYPE ComMDStopEWR(VOID) = 0;
  394. virtual HRESULT STDMETHODCALLTYPE ComMDSendShutdownNotifications(VOID) = 0;
  395. };
  396. #else /* C style interface */
  397. #endif
  398. #endif /* __IMDCOM3_INTERFACE_DEFINED__ */
  399. /****************************************
  400. * Generated header for interface: __MIDL__intf_0145
  401. * at Tue Jun 24 13:13:57 1997
  402. * using MIDL 3.00.44
  403. ****************************************/
  404. /* [local] */
  405. /*
  406. The Callback Interface - Clients that need to receive callbacks need to provide
  407. an implementation of this interface and Advise the metadata server.
  408. */
  409. #define IMDCOMSINK IMDCOMSINKA
  410. extern RPC_IF_HANDLE __MIDL__intf_0145_v0_0_c_ifspec;
  411. extern RPC_IF_HANDLE __MIDL__intf_0145_v0_0_s_ifspec;
  412. #ifndef __IMDCOMSINKA_INTERFACE_DEFINED__
  413. #define __IMDCOMSINKA_INTERFACE_DEFINED__
  414. /****************************************
  415. * Generated header for interface: IMDCOMSINKA
  416. * at Tue Jun 24 13:13:57 1997
  417. * using MIDL 3.00.44
  418. ****************************************/
  419. /* [unique][uuid][object] */
  420. EXTERN_C const IID IID_IMDCOMSINKA;
  421. #if defined(__cplusplus) && !defined(CINTERFACE)
  422. interface IMDCOMSINKA : public IUnknown
  423. {
  424. public:
  425. virtual HRESULT STDMETHODCALLTYPE ComMDSinkNotify(
  426. /* [in] */ METADATA_HANDLE hMDHandle,
  427. /* [in] */ DWORD dwMDNumElements,
  428. /* [size_is][in] */ MD_CHANGE_OBJECT_A __RPC_FAR pcoChangeList[ ]) = 0;
  429. virtual HRESULT STDMETHODCALLTYPE ComMDShutdownNotify() = 0;
  430. };
  431. #else /* C style interface */
  432. #endif /* C style interface */
  433. #endif /* __IMDCOMSINKA_INTERFACE_DEFINED__ */
  434. #ifndef __IMDCOMSINKW_INTERFACE_DEFINED__
  435. #define __IMDCOMSINKW_INTERFACE_DEFINED__
  436. /****************************************
  437. * Generated header for interface: IMDCOMSINKW
  438. * at Tue Jun 24 13:13:57 1997
  439. * using MIDL 3.00.44
  440. ****************************************/
  441. /* [unique][uuid][object] */
  442. EXTERN_C const IID IID_IMDCOMSINKW;
  443. #if defined(__cplusplus) && !defined(CINTERFACE)
  444. interface IMDCOMSINKW : public IUnknown
  445. {
  446. public:
  447. virtual HRESULT STDMETHODCALLTYPE ComMDSinkNotify(
  448. /* [in] */ METADATA_HANDLE hMDHandle,
  449. /* [in] */ DWORD dwMDNumElements,
  450. /* [size_is][in] */ MD_CHANGE_OBJECT_W __RPC_FAR pcoChangeList[ ]) = 0;
  451. virtual HRESULT STDMETHODCALLTYPE ComMDShutdownNotify() = 0;
  452. virtual HRESULT STDMETHODCALLTYPE ComMDEventNotify(
  453. /* [in] */ DWORD dwMDEvent) = 0;
  454. };
  455. #else /* C style interface */
  456. #endif /* C style interface */
  457. #endif /* __IMDCOMSINKW_INTERFACE_DEFINED__ */
  458. /****************************************
  459. * Generated header for interface: __MIDL__intf_0147
  460. * at Tue Jun 24 13:13:57 1997
  461. * using MIDL 3.00.44
  462. ****************************************/
  463. /* [local] */
  464. #ifdef UNICODE
  465. #define ComMDAddMetaObject ComMDAddMetaObjectW
  466. #define ComMDDeleteMetaObject ComMDDeleteMetaObjectW
  467. #define ComMDDeleteChildMetaObjects ComMDDeleteChildMetaObjectsW
  468. #define ComMDEnumMetaObjects ComMDEnumMetaObjectsW
  469. #define ComMDCopyMetaObject ComMDCopyMetaObjectW
  470. #define ComMDRenameMetaObject ComMDRenameMetaObjectW
  471. #define ComMDSetMetaData ComMDSetMetaDataW
  472. #define ComMDGetMetaData ComMDGetMetaDataW
  473. #define ComMDDeleteMetaData ComMDDeleteMetaDataW
  474. #define ComMDEnumMetaData ComMDEnumMetaDataW
  475. #define ComMDGetAllMetaData ComMDGetAllMetaDataW
  476. #define ComMDDeleteAllMetaData ComMDDeleteAllMetaDataW
  477. #define ComMDCopyMetaData ComMDCopyMetaDataW
  478. #define ComMDGetMetaDataPaths ComMDGetMetaDataPathsW
  479. #define ComMDOpenMetaObject ComMDOpenMetaObjectW
  480. #define ComMDGetDataSetNumber ComMDGetDataSetNumberW
  481. #define ComMDSetLastChangeTime ComMDSetLastChangeTimeW
  482. #define ComMDGetLastChangeTime ComMDGetLastChangeTimeW
  483. #define ComMDBackup ComMDBackupW
  484. #define ComMDRestore ComMDRestoreW
  485. #define ComMDEnumBackups ComMDEnumBackupsW
  486. #define ComMDDeleteBackup ComMDDeleteBackupW
  487. #define ComMDBackupWithPasswd ComMDBackupWithPasswdW
  488. #define ComMDRestoreWithPasswd ComMDRestoreWithPasswdW
  489. #define ComMDExport ComMDExportW
  490. #define ComMDImport ComMDImportW
  491. #define ComMDRestoreHistory ComMDRestoreHistoryW
  492. #define ComMDEnumHistory ComMDEnumHistoryW
  493. #else // Not UNICODE
  494. #define ComMDAddMetaObject ComMDAddMetaObjectA
  495. #define ComMDDeleteMetaObject ComMDDeleteMetaObjectA
  496. #define ComMDDeleteChildMetaObjects ComMDDeleteChildMetaObjectsA
  497. #define ComMDEnumMetaObjects ComMDEnumMetaObjectsA
  498. #define ComMDCopyMetaObject ComMDCopyMetaObjectA
  499. #define ComMDRenameMetaObject ComMDRenameMetaObjectA
  500. #define ComMDSetMetaData ComMDSetMetaDataA
  501. #define ComMDGetMetaData ComMDGetMetaDataA
  502. #define ComMDDeleteMetaData ComMDDeleteMetaDataA
  503. #define ComMDEnumMetaData ComMDEnumMetaDataA
  504. #define ComMDGetAllMetaData ComMDGetAllMetaDataA
  505. #define ComMDDeleteAllMetaData ComMDDeleteAllMetaDataA
  506. #define ComMDCopyMetaData ComMDCopyMetaDataA
  507. #define ComMDGetMetaDataPaths ComMDGetMetaDataPathsA
  508. #define ComMDOpenMetaObject ComMDOpenMetaObjectA
  509. #define ComMDGetDataSetNumber ComMDGetDataSetNumberA
  510. #define ComMDSetLastChangeTime ComMDSetLastChangeTimeA
  511. #define ComMDGetLastChangeTime ComMDGetLastChangeTimeA
  512. #define ComMDBackup ComMDBackupA
  513. #define ComMDRestore ComMDRestoreA
  514. #define ComMDEnumBackups ComMDEnumBackupsA
  515. #define ComMDDeleteBackup ComMDDeleteBackupA
  516. #define ComMDBackupWithPasswd ComMDBackupWithPasswdA
  517. #define ComMDRestoreWithPasswd ComMDRestoreWithPasswdA
  518. #define ComMDExport ComMDExportA
  519. #define ComMDImport ComMDImportA
  520. #define ComMDRestoreHistory ComMDRestoreHistoryA
  521. #define ComMDEnumHistory ComMDEnumHistoryA
  522. #endif //UNICODE
  523. #endif
  524. /* Additional Prototypes for ALL interfaces */
  525. /* end of Additional Prototypes */
  526. #ifdef __cplusplus
  527. }
  528. #endif
  529. #endif