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.

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