home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / dcom / comperf / psperf.h < prev    next >
C/C++ Source or Header  |  1998-03-30  |  5KB  |  195 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0110 */
  5. /* at Mon Mar 30 02:34:57 1998
  6.  */
  7. /* Compiler settings for psperf.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13.  
  14. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  15. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  16. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  17. #endif
  18.  
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21.  
  22. #ifndef __RPCNDR_H_VERSION__
  23. #error this stub requires an updated version of <rpcndr.h>
  24. #endif // __RPCNDR_H_VERSION__
  25.  
  26. #ifndef COM_NO_WINDOWS_H
  27. #include "windows.h"
  28. #include "ole2.h"
  29. #endif /*COM_NO_WINDOWS_H*/
  30.  
  31. #ifndef __psperf_h__
  32. #define __psperf_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __ICOMPerformance_FWD_DEFINED__
  41. #define __ICOMPerformance_FWD_DEFINED__
  42. typedef interface ICOMPerformance ICOMPerformance;
  43. #endif     /* __ICOMPerformance_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __TestCOMPerformance_FWD_DEFINED__
  47. #define __TestCOMPerformance_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class TestCOMPerformance TestCOMPerformance;
  51. #else
  52. typedef struct TestCOMPerformance TestCOMPerformance;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __TestCOMPerformance_FWD_DEFINED__ */
  56.  
  57.  
  58. /* header files for imported files */
  59. #include "oaidl.h"
  60.  
  61. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  62. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  63.  
  64. #ifndef __ICOMPerformance_INTERFACE_DEFINED__
  65. #define __ICOMPerformance_INTERFACE_DEFINED__
  66.  
  67. /****************************************
  68.  * Generated header for interface: ICOMPerformance
  69.  * at Mon Mar 30 02:34:57 1998
  70.  * using MIDL 3.03.0110
  71.  ****************************************/
  72. /* [object][oleautomation][dual][uuid] */ 
  73.  
  74.  
  75.  
  76. EXTERN_C const IID IID_ICOMPerformance;
  77.  
  78. #if defined(__cplusplus) && !defined(CINTERFACE)
  79.     
  80.     MIDL_INTERFACE("DDC68871-E08E-11cf-A535-00AA00615B03")
  81.     ICOMPerformance : public IUnknown
  82.     {
  83.     public:
  84.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Test1( 
  85.             /* [in] */ int l) = 0;
  86.         
  87.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Test23( 
  88.             /* [in] */ BSTR szDesc) = 0;
  89.         
  90.     };
  91.     
  92. #else     /* C style interface */
  93.  
  94.     typedef struct ICOMPerformanceVtbl
  95.     {
  96.         BEGIN_INTERFACE
  97.         
  98.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  99.             ICOMPerformance __RPC_FAR * This,
  100.             /* [in] */ REFIID riid,
  101.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  102.         
  103.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  104.             ICOMPerformance __RPC_FAR * This);
  105.         
  106.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  107.             ICOMPerformance __RPC_FAR * This);
  108.         
  109.         /* [id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Test1 )( 
  110.             ICOMPerformance __RPC_FAR * This,
  111.             /* [in] */ int l);
  112.         
  113.         /* [id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Test23 )( 
  114.             ICOMPerformance __RPC_FAR * This,
  115.             /* [in] */ BSTR szDesc);
  116.         
  117.         END_INTERFACE
  118.     } ICOMPerformanceVtbl;
  119.  
  120.     interface ICOMPerformance
  121.     {
  122.         CONST_VTBL struct ICOMPerformanceVtbl __RPC_FAR *lpVtbl;
  123.     };
  124.  
  125.     
  126.  
  127. #ifdef COBJMACROS
  128.  
  129.  
  130. #define ICOMPerformance_QueryInterface(This,riid,ppvObject)    \
  131.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  132.  
  133. #define ICOMPerformance_AddRef(This)    \
  134.     (This)->lpVtbl -> AddRef(This)
  135.  
  136. #define ICOMPerformance_Release(This)    \
  137.     (This)->lpVtbl -> Release(This)
  138.  
  139.  
  140. #define ICOMPerformance_Test1(This,l)    \
  141.     (This)->lpVtbl -> Test1(This,l)
  142.  
  143. #define ICOMPerformance_Test23(This,szDesc)    \
  144.     (This)->lpVtbl -> Test23(This,szDesc)
  145.  
  146. #endif /* COBJMACROS */
  147.  
  148.  
  149. #endif     /* C style interface */
  150.  
  151.  
  152.  
  153. /* [id] */ HRESULT STDMETHODCALLTYPE ICOMPerformance_Test1_Proxy( 
  154.     ICOMPerformance __RPC_FAR * This,
  155.     /* [in] */ int l);
  156.  
  157.  
  158. void __RPC_STUB ICOMPerformance_Test1_Stub(
  159.     IRpcStubBuffer *This,
  160.     IRpcChannelBuffer *_pRpcChannelBuffer,
  161.     PRPC_MESSAGE _pRpcMessage,
  162.     DWORD *_pdwStubPhase);
  163.  
  164.  
  165. /* [id] */ HRESULT STDMETHODCALLTYPE ICOMPerformance_Test23_Proxy( 
  166.     ICOMPerformance __RPC_FAR * This,
  167.     /* [in] */ BSTR szDesc);
  168.  
  169.  
  170. void __RPC_STUB ICOMPerformance_Test23_Stub(
  171.     IRpcStubBuffer *This,
  172.     IRpcChannelBuffer *_pRpcChannelBuffer,
  173.     PRPC_MESSAGE _pRpcMessage,
  174.     DWORD *_pdwStubPhase);
  175.  
  176.  
  177.  
  178. #endif     /* __ICOMPerformance_INTERFACE_DEFINED__ */
  179.  
  180.  
  181. /* Additional Prototypes for ALL interfaces */
  182.  
  183. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  184. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  185. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  186. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  187.  
  188. /* end of Additional Prototypes */
  189.  
  190. #ifdef __cplusplus
  191. }
  192. #endif
  193.  
  194. #endif
  195.