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.

600 lines
18 KiB

  1. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3. /* File created by MIDL compiler version 6.00.0334 */
  4. /* Compiler settings for wmicooker.idl:
  5. Oicf, W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext
  7. error checks: allocation ref bounds_check enum stub_data
  8. VC __declspec() decoration level:
  9. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10. DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING( )
  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__ 440
  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 __wmicooker_h__
  27. #define __wmicooker_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IWMIRefreshableCooker_FWD_DEFINED__
  33. #define __IWMIRefreshableCooker_FWD_DEFINED__
  34. typedef interface IWMIRefreshableCooker IWMIRefreshableCooker;
  35. #endif /* __IWMIRefreshableCooker_FWD_DEFINED__ */
  36. #ifndef __IWMISimpleObjectCooker_FWD_DEFINED__
  37. #define __IWMISimpleObjectCooker_FWD_DEFINED__
  38. typedef interface IWMISimpleObjectCooker IWMISimpleObjectCooker;
  39. #endif /* __IWMISimpleObjectCooker_FWD_DEFINED__ */
  40. #ifndef __IWMISimpleCooker_FWD_DEFINED__
  41. #define __IWMISimpleCooker_FWD_DEFINED__
  42. typedef interface IWMISimpleCooker IWMISimpleCooker;
  43. #endif /* __IWMISimpleCooker_FWD_DEFINED__ */
  44. /* header files for imported files */
  45. #include "unknwn.h"
  46. #include "wbemcli.h"
  47. #ifdef __cplusplus
  48. extern "C"{
  49. #endif
  50. void * __RPC_USER MIDL_user_allocate(size_t);
  51. void __RPC_USER MIDL_user_free( void * );
  52. #ifndef __IWMIRefreshableCooker_INTERFACE_DEFINED__
  53. #define __IWMIRefreshableCooker_INTERFACE_DEFINED__
  54. /* interface IWMIRefreshableCooker */
  55. /* [uuid][object][local][restricted] */
  56. EXTERN_C const IID IID_IWMIRefreshableCooker;
  57. #if defined(__cplusplus) && !defined(CINTERFACE)
  58. MIDL_INTERFACE("13ED7E55-8D63-41b0-9086-D0C5C17364C8")
  59. IWMIRefreshableCooker : public IUnknown
  60. {
  61. public:
  62. virtual HRESULT STDMETHODCALLTYPE AddInstance(
  63. /* [in] */ IWbemServices *pService,
  64. /* [in] */ IWbemObjectAccess *pCookingClass,
  65. /* [in] */ IWbemObjectAccess *pCookingInstance,
  66. /* [out] */ IWbemObjectAccess **ppRefreshableInstance,
  67. /* [out] */ long *plId) = 0;
  68. virtual HRESULT STDMETHODCALLTYPE AddEnum(
  69. /* [in] */ IWbemServices *pService,
  70. /* [string][in] */ LPCWSTR szCookingClass,
  71. /* [in] */ IWbemHiPerfEnum *pRefreshableEnum,
  72. /* [out] */ long *plId) = 0;
  73. virtual HRESULT STDMETHODCALLTYPE Remove(
  74. /* [in] */ long lId) = 0;
  75. virtual HRESULT STDMETHODCALLTYPE Refresh( void) = 0;
  76. };
  77. #else /* C style interface */
  78. typedef struct IWMIRefreshableCookerVtbl
  79. {
  80. BEGIN_INTERFACE
  81. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  82. IWMIRefreshableCooker * This,
  83. /* [in] */ REFIID riid,
  84. /* [iid_is][out] */ void **ppvObject);
  85. ULONG ( STDMETHODCALLTYPE *AddRef )(
  86. IWMIRefreshableCooker * This);
  87. ULONG ( STDMETHODCALLTYPE *Release )(
  88. IWMIRefreshableCooker * This);
  89. HRESULT ( STDMETHODCALLTYPE *AddInstance )(
  90. IWMIRefreshableCooker * This,
  91. /* [in] */ IWbemServices *pService,
  92. /* [in] */ IWbemObjectAccess *pCookingClass,
  93. /* [in] */ IWbemObjectAccess *pCookingInstance,
  94. /* [out] */ IWbemObjectAccess **ppRefreshableInstance,
  95. /* [out] */ long *plId);
  96. HRESULT ( STDMETHODCALLTYPE *AddEnum )(
  97. IWMIRefreshableCooker * This,
  98. /* [in] */ IWbemServices *pService,
  99. /* [string][in] */ LPCWSTR szCookingClass,
  100. /* [in] */ IWbemHiPerfEnum *pRefreshableEnum,
  101. /* [out] */ long *plId);
  102. HRESULT ( STDMETHODCALLTYPE *Remove )(
  103. IWMIRefreshableCooker * This,
  104. /* [in] */ long lId);
  105. HRESULT ( STDMETHODCALLTYPE *Refresh )(
  106. IWMIRefreshableCooker * This);
  107. END_INTERFACE
  108. } IWMIRefreshableCookerVtbl;
  109. interface IWMIRefreshableCooker
  110. {
  111. CONST_VTBL struct IWMIRefreshableCookerVtbl *lpVtbl;
  112. };
  113. #ifdef COBJMACROS
  114. #define IWMIRefreshableCooker_QueryInterface(This,riid,ppvObject) \
  115. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  116. #define IWMIRefreshableCooker_AddRef(This) \
  117. (This)->lpVtbl -> AddRef(This)
  118. #define IWMIRefreshableCooker_Release(This) \
  119. (This)->lpVtbl -> Release(This)
  120. #define IWMIRefreshableCooker_AddInstance(This,pService,pCookingClass,pCookingInstance,ppRefreshableInstance,plId) \
  121. (This)->lpVtbl -> AddInstance(This,pService,pCookingClass,pCookingInstance,ppRefreshableInstance,plId)
  122. #define IWMIRefreshableCooker_AddEnum(This,pService,szCookingClass,pRefreshableEnum,plId) \
  123. (This)->lpVtbl -> AddEnum(This,pService,szCookingClass,pRefreshableEnum,plId)
  124. #define IWMIRefreshableCooker_Remove(This,lId) \
  125. (This)->lpVtbl -> Remove(This,lId)
  126. #define IWMIRefreshableCooker_Refresh(This) \
  127. (This)->lpVtbl -> Refresh(This)
  128. #endif /* COBJMACROS */
  129. #endif /* C style interface */
  130. HRESULT STDMETHODCALLTYPE IWMIRefreshableCooker_AddInstance_Proxy(
  131. IWMIRefreshableCooker * This,
  132. /* [in] */ IWbemServices *pService,
  133. /* [in] */ IWbemObjectAccess *pCookingClass,
  134. /* [in] */ IWbemObjectAccess *pCookingInstance,
  135. /* [out] */ IWbemObjectAccess **ppRefreshableInstance,
  136. /* [out] */ long *plId);
  137. void __RPC_STUB IWMIRefreshableCooker_AddInstance_Stub(
  138. IRpcStubBuffer *This,
  139. IRpcChannelBuffer *_pRpcChannelBuffer,
  140. PRPC_MESSAGE _pRpcMessage,
  141. DWORD *_pdwStubPhase);
  142. HRESULT STDMETHODCALLTYPE IWMIRefreshableCooker_AddEnum_Proxy(
  143. IWMIRefreshableCooker * This,
  144. /* [in] */ IWbemServices *pService,
  145. /* [string][in] */ LPCWSTR szCookingClass,
  146. /* [in] */ IWbemHiPerfEnum *pRefreshableEnum,
  147. /* [out] */ long *plId);
  148. void __RPC_STUB IWMIRefreshableCooker_AddEnum_Stub(
  149. IRpcStubBuffer *This,
  150. IRpcChannelBuffer *_pRpcChannelBuffer,
  151. PRPC_MESSAGE _pRpcMessage,
  152. DWORD *_pdwStubPhase);
  153. HRESULT STDMETHODCALLTYPE IWMIRefreshableCooker_Remove_Proxy(
  154. IWMIRefreshableCooker * This,
  155. /* [in] */ long lId);
  156. void __RPC_STUB IWMIRefreshableCooker_Remove_Stub(
  157. IRpcStubBuffer *This,
  158. IRpcChannelBuffer *_pRpcChannelBuffer,
  159. PRPC_MESSAGE _pRpcMessage,
  160. DWORD *_pdwStubPhase);
  161. HRESULT STDMETHODCALLTYPE IWMIRefreshableCooker_Refresh_Proxy(
  162. IWMIRefreshableCooker * This);
  163. void __RPC_STUB IWMIRefreshableCooker_Refresh_Stub(
  164. IRpcStubBuffer *This,
  165. IRpcChannelBuffer *_pRpcChannelBuffer,
  166. PRPC_MESSAGE _pRpcMessage,
  167. DWORD *_pdwStubPhase);
  168. #endif /* __IWMIRefreshableCooker_INTERFACE_DEFINED__ */
  169. #ifndef __IWMISimpleObjectCooker_INTERFACE_DEFINED__
  170. #define __IWMISimpleObjectCooker_INTERFACE_DEFINED__
  171. /* interface IWMISimpleObjectCooker */
  172. /* [uuid][object][local][restricted] */
  173. EXTERN_C const IID IID_IWMISimpleObjectCooker;
  174. #if defined(__cplusplus) && !defined(CINTERFACE)
  175. MIDL_INTERFACE("A239BDF1-0AB1-45a0-8764-159115689589")
  176. IWMISimpleObjectCooker : public IUnknown
  177. {
  178. public:
  179. virtual HRESULT STDMETHODCALLTYPE SetClass(
  180. /* [in] */ WCHAR *wszCookingClassName,
  181. /* [in] */ IWbemObjectAccess *pCookingClass,
  182. /* [in] */ IWbemObjectAccess *pRawClass) = 0;
  183. virtual HRESULT STDMETHODCALLTYPE SetCookedInstance(
  184. /* [in] */ IWbemObjectAccess *pCookedInstance,
  185. /* [out] */ long *plId) = 0;
  186. virtual HRESULT STDMETHODCALLTYPE BeginCooking(
  187. /* [in] */ long lId,
  188. /* [in] */ IWbemObjectAccess *pSampleInstance,
  189. /* [in] */ unsigned long dwRefresherId) = 0;
  190. virtual HRESULT STDMETHODCALLTYPE StopCooking(
  191. /* [in] */ long lId) = 0;
  192. virtual HRESULT STDMETHODCALLTYPE Recalc(
  193. /* [in] */ unsigned long dwRefresherId) = 0;
  194. virtual HRESULT STDMETHODCALLTYPE Remove(
  195. /* [in] */ long lId) = 0;
  196. virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
  197. };
  198. #else /* C style interface */
  199. typedef struct IWMISimpleObjectCookerVtbl
  200. {
  201. BEGIN_INTERFACE
  202. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  203. IWMISimpleObjectCooker * This,
  204. /* [in] */ REFIID riid,
  205. /* [iid_is][out] */ void **ppvObject);
  206. ULONG ( STDMETHODCALLTYPE *AddRef )(
  207. IWMISimpleObjectCooker * This);
  208. ULONG ( STDMETHODCALLTYPE *Release )(
  209. IWMISimpleObjectCooker * This);
  210. HRESULT ( STDMETHODCALLTYPE *SetClass )(
  211. IWMISimpleObjectCooker * This,
  212. /* [in] */ WCHAR *wszCookingClassName,
  213. /* [in] */ IWbemObjectAccess *pCookingClass,
  214. /* [in] */ IWbemObjectAccess *pRawClass);
  215. HRESULT ( STDMETHODCALLTYPE *SetCookedInstance )(
  216. IWMISimpleObjectCooker * This,
  217. /* [in] */ IWbemObjectAccess *pCookedInstance,
  218. /* [out] */ long *plId);
  219. HRESULT ( STDMETHODCALLTYPE *BeginCooking )(
  220. IWMISimpleObjectCooker * This,
  221. /* [in] */ long lId,
  222. /* [in] */ IWbemObjectAccess *pSampleInstance,
  223. /* [in] */ unsigned long dwRefresherId);
  224. HRESULT ( STDMETHODCALLTYPE *StopCooking )(
  225. IWMISimpleObjectCooker * This,
  226. /* [in] */ long lId);
  227. HRESULT ( STDMETHODCALLTYPE *Recalc )(
  228. IWMISimpleObjectCooker * This,
  229. /* [in] */ unsigned long dwRefresherId);
  230. HRESULT ( STDMETHODCALLTYPE *Remove )(
  231. IWMISimpleObjectCooker * This,
  232. /* [in] */ long lId);
  233. HRESULT ( STDMETHODCALLTYPE *Reset )(
  234. IWMISimpleObjectCooker * This);
  235. END_INTERFACE
  236. } IWMISimpleObjectCookerVtbl;
  237. interface IWMISimpleObjectCooker
  238. {
  239. CONST_VTBL struct IWMISimpleObjectCookerVtbl *lpVtbl;
  240. };
  241. #ifdef COBJMACROS
  242. #define IWMISimpleObjectCooker_QueryInterface(This,riid,ppvObject) \
  243. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  244. #define IWMISimpleObjectCooker_AddRef(This) \
  245. (This)->lpVtbl -> AddRef(This)
  246. #define IWMISimpleObjectCooker_Release(This) \
  247. (This)->lpVtbl -> Release(This)
  248. #define IWMISimpleObjectCooker_SetClass(This,wszCookingClassName,pCookingClass,pRawClass) \
  249. (This)->lpVtbl -> SetClass(This,wszCookingClassName,pCookingClass,pRawClass)
  250. #define IWMISimpleObjectCooker_SetCookedInstance(This,pCookedInstance,plId) \
  251. (This)->lpVtbl -> SetCookedInstance(This,pCookedInstance,plId)
  252. #define IWMISimpleObjectCooker_BeginCooking(This,lId,pSampleInstance,dwRefresherId) \
  253. (This)->lpVtbl -> BeginCooking(This,lId,pSampleInstance,dwRefresherId)
  254. #define IWMISimpleObjectCooker_StopCooking(This,lId) \
  255. (This)->lpVtbl -> StopCooking(This,lId)
  256. #define IWMISimpleObjectCooker_Recalc(This,dwRefresherId) \
  257. (This)->lpVtbl -> Recalc(This,dwRefresherId)
  258. #define IWMISimpleObjectCooker_Remove(This,lId) \
  259. (This)->lpVtbl -> Remove(This,lId)
  260. #define IWMISimpleObjectCooker_Reset(This) \
  261. (This)->lpVtbl -> Reset(This)
  262. #endif /* COBJMACROS */
  263. #endif /* C style interface */
  264. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_SetClass_Proxy(
  265. IWMISimpleObjectCooker * This,
  266. /* [in] */ WCHAR *wszCookingClassName,
  267. /* [in] */ IWbemObjectAccess *pCookingClass,
  268. /* [in] */ IWbemObjectAccess *pRawClass);
  269. void __RPC_STUB IWMISimpleObjectCooker_SetClass_Stub(
  270. IRpcStubBuffer *This,
  271. IRpcChannelBuffer *_pRpcChannelBuffer,
  272. PRPC_MESSAGE _pRpcMessage,
  273. DWORD *_pdwStubPhase);
  274. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_SetCookedInstance_Proxy(
  275. IWMISimpleObjectCooker * This,
  276. /* [in] */ IWbemObjectAccess *pCookedInstance,
  277. /* [out] */ long *plId);
  278. void __RPC_STUB IWMISimpleObjectCooker_SetCookedInstance_Stub(
  279. IRpcStubBuffer *This,
  280. IRpcChannelBuffer *_pRpcChannelBuffer,
  281. PRPC_MESSAGE _pRpcMessage,
  282. DWORD *_pdwStubPhase);
  283. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_BeginCooking_Proxy(
  284. IWMISimpleObjectCooker * This,
  285. /* [in] */ long lId,
  286. /* [in] */ IWbemObjectAccess *pSampleInstance,
  287. /* [in] */ unsigned long dwRefresherId);
  288. void __RPC_STUB IWMISimpleObjectCooker_BeginCooking_Stub(
  289. IRpcStubBuffer *This,
  290. IRpcChannelBuffer *_pRpcChannelBuffer,
  291. PRPC_MESSAGE _pRpcMessage,
  292. DWORD *_pdwStubPhase);
  293. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_StopCooking_Proxy(
  294. IWMISimpleObjectCooker * This,
  295. /* [in] */ long lId);
  296. void __RPC_STUB IWMISimpleObjectCooker_StopCooking_Stub(
  297. IRpcStubBuffer *This,
  298. IRpcChannelBuffer *_pRpcChannelBuffer,
  299. PRPC_MESSAGE _pRpcMessage,
  300. DWORD *_pdwStubPhase);
  301. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_Recalc_Proxy(
  302. IWMISimpleObjectCooker * This,
  303. /* [in] */ unsigned long dwRefresherId);
  304. void __RPC_STUB IWMISimpleObjectCooker_Recalc_Stub(
  305. IRpcStubBuffer *This,
  306. IRpcChannelBuffer *_pRpcChannelBuffer,
  307. PRPC_MESSAGE _pRpcMessage,
  308. DWORD *_pdwStubPhase);
  309. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_Remove_Proxy(
  310. IWMISimpleObjectCooker * This,
  311. /* [in] */ long lId);
  312. void __RPC_STUB IWMISimpleObjectCooker_Remove_Stub(
  313. IRpcStubBuffer *This,
  314. IRpcChannelBuffer *_pRpcChannelBuffer,
  315. PRPC_MESSAGE _pRpcMessage,
  316. DWORD *_pdwStubPhase);
  317. HRESULT STDMETHODCALLTYPE IWMISimpleObjectCooker_Reset_Proxy(
  318. IWMISimpleObjectCooker * This);
  319. void __RPC_STUB IWMISimpleObjectCooker_Reset_Stub(
  320. IRpcStubBuffer *This,
  321. IRpcChannelBuffer *_pRpcChannelBuffer,
  322. PRPC_MESSAGE _pRpcMessage,
  323. DWORD *_pdwStubPhase);
  324. #endif /* __IWMISimpleObjectCooker_INTERFACE_DEFINED__ */
  325. #ifndef __IWMISimpleCooker_INTERFACE_DEFINED__
  326. #define __IWMISimpleCooker_INTERFACE_DEFINED__
  327. /* interface IWMISimpleCooker */
  328. /* [uuid][object][local][restricted] */
  329. EXTERN_C const IID IID_IWMISimpleCooker;
  330. #if defined(__cplusplus) && !defined(CINTERFACE)
  331. MIDL_INTERFACE("510ADF6E-D481-4a64-B74A-CC712E11AA34")
  332. IWMISimpleCooker : public IUnknown
  333. {
  334. public:
  335. virtual HRESULT STDMETHODCALLTYPE CookRawValues(
  336. /* [in] */ DWORD dwCookingType,
  337. /* [in] */ DWORD dwNumSamples,
  338. /* [size_is][in] */ __int64 *anTimeStamp,
  339. /* [size_is][in] */ __int64 *anRawValue,
  340. /* [size_is][in] */ __int64 *anBase,
  341. /* [in] */ __int64 nTimeFrequency,
  342. /* [out] */ __int64 *pnResult) = 0;
  343. };
  344. #else /* C style interface */
  345. typedef struct IWMISimpleCookerVtbl
  346. {
  347. BEGIN_INTERFACE
  348. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  349. IWMISimpleCooker * This,
  350. /* [in] */ REFIID riid,
  351. /* [iid_is][out] */ void **ppvObject);
  352. ULONG ( STDMETHODCALLTYPE *AddRef )(
  353. IWMISimpleCooker * This);
  354. ULONG ( STDMETHODCALLTYPE *Release )(
  355. IWMISimpleCooker * This);
  356. HRESULT ( STDMETHODCALLTYPE *CookRawValues )(
  357. IWMISimpleCooker * This,
  358. /* [in] */ DWORD dwCookingType,
  359. /* [in] */ DWORD dwNumSamples,
  360. /* [size_is][in] */ __int64 *anTimeStamp,
  361. /* [size_is][in] */ __int64 *anRawValue,
  362. /* [size_is][in] */ __int64 *anBase,
  363. /* [in] */ __int64 nTimeFrequency,
  364. /* [out] */ __int64 *pnResult);
  365. END_INTERFACE
  366. } IWMISimpleCookerVtbl;
  367. interface IWMISimpleCooker
  368. {
  369. CONST_VTBL struct IWMISimpleCookerVtbl *lpVtbl;
  370. };
  371. #ifdef COBJMACROS
  372. #define IWMISimpleCooker_QueryInterface(This,riid,ppvObject) \
  373. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  374. #define IWMISimpleCooker_AddRef(This) \
  375. (This)->lpVtbl -> AddRef(This)
  376. #define IWMISimpleCooker_Release(This) \
  377. (This)->lpVtbl -> Release(This)
  378. #define IWMISimpleCooker_CookRawValues(This,dwCookingType,dwNumSamples,anTimeStamp,anRawValue,anBase,nTimeFrequency,pnResult) \
  379. (This)->lpVtbl -> CookRawValues(This,dwCookingType,dwNumSamples,anTimeStamp,anRawValue,anBase,nTimeFrequency,pnResult)
  380. #endif /* COBJMACROS */
  381. #endif /* C style interface */
  382. HRESULT STDMETHODCALLTYPE IWMISimpleCooker_CookRawValues_Proxy(
  383. IWMISimpleCooker * This,
  384. /* [in] */ DWORD dwCookingType,
  385. /* [in] */ DWORD dwNumSamples,
  386. /* [size_is][in] */ __int64 *anTimeStamp,
  387. /* [size_is][in] */ __int64 *anRawValue,
  388. /* [size_is][in] */ __int64 *anBase,
  389. /* [in] */ __int64 nTimeFrequency,
  390. /* [out] */ __int64 *pnResult);
  391. void __RPC_STUB IWMISimpleCooker_CookRawValues_Stub(
  392. IRpcStubBuffer *This,
  393. IRpcChannelBuffer *_pRpcChannelBuffer,
  394. PRPC_MESSAGE _pRpcMessage,
  395. DWORD *_pdwStubPhase);
  396. #endif /* __IWMISimpleCooker_INTERFACE_DEFINED__ */
  397. /* Additional Prototypes for ALL interfaces */
  398. /* end of Additional Prototypes */
  399. #ifdef __cplusplus
  400. }
  401. #endif
  402. #endif