StructDemo.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:9k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 5.01.0164 */
  3. /* at Fri Feb 26 15:14:52 2010
  4.  */
  5. /* Compiler settings for D:VCday11StructDemoStructDemo.idl:
  6.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  11. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  12. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  13. #endif
  14. #include "rpc.h"
  15. #include "rpcndr.h"
  16. #ifndef __RPCNDR_H_VERSION__
  17. #error this stub requires an updated version of <rpcndr.h>
  18. #endif // __RPCNDR_H_VERSION__
  19. #ifndef COM_NO_WINDOWS_H
  20. #include "windows.h"
  21. #include "ole2.h"
  22. #endif /*COM_NO_WINDOWS_H*/
  23. #ifndef __StructDemo_h__
  24. #define __StructDemo_h__
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif 
  28. /* Forward Declarations */ 
  29. #ifndef __IMyStruct_FWD_DEFINED__
  30. #define __IMyStruct_FWD_DEFINED__
  31. typedef interface IMyStruct IMyStruct;
  32. #endif  /* __IMyStruct_FWD_DEFINED__ */
  33. #ifndef __MyStruct_FWD_DEFINED__
  34. #define __MyStruct_FWD_DEFINED__
  35. #ifdef __cplusplus
  36. typedef class MyStruct MyStruct;
  37. #else
  38. typedef struct MyStruct MyStruct;
  39. #endif /* __cplusplus */
  40. #endif  /* __MyStruct_FWD_DEFINED__ */
  41. /* header files for imported files */
  42. #include "oaidl.h"
  43. #include "ocidl.h"
  44. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  45. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  46. /* interface __MIDL_itf_StructDemo_0000 */
  47. /* [local] */ 
  48. typedef struct  StPerson
  49.     {
  50.     BSTR name;
  51.     UINT age;
  52.     BSTR sex;
  53.     } StPerson;
  54. extern RPC_IF_HANDLE __MIDL_itf_StructDemo_0000_v0_0_c_ifspec;
  55. extern RPC_IF_HANDLE __MIDL_itf_StructDemo_0000_v0_0_s_ifspec;
  56. #ifndef __IMyStruct_INTERFACE_DEFINED__
  57. #define __IMyStruct_INTERFACE_DEFINED__
  58. /* interface IMyStruct */
  59. /* [unique][helpstring][dual][uuid][object] */ 
  60. EXTERN_C const IID IID_IMyStruct;
  61. #if defined(__cplusplus) && !defined(CINTERFACE)
  62.     
  63.     MIDL_INTERFACE("4FB1A9EF-DBC7-498F-824D-1FEACA15E5A9")
  64.     IMyStruct : public IDispatch
  65.     {
  66.     public:
  67.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPersonById( 
  68.             /* [in] */ UINT id,
  69.             /* [out] */ StPerson __RPC_FAR *__RPC_FAR *Result) = 0;
  70.         
  71.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetAllPerson( 
  72.             /* [out] */ UINT __RPC_FAR *number,
  73.             /* [out] */ StPerson __RPC_FAR *__RPC_FAR *Result) = 0;
  74.         
  75.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SavePerson( 
  76.             /* [in] */ UINT number,
  77.             /* [in] */ StPerson __RPC_FAR *Result,
  78.             /* [out] */ UINT __RPC_FAR *pResult) = 0;
  79.         
  80.     };
  81.     
  82. #else  /* C style interface */
  83.     typedef struct IMyStructVtbl
  84.     {
  85.         BEGIN_INTERFACE
  86.         
  87.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  88.             IMyStruct __RPC_FAR * This,
  89.             /* [in] */ REFIID riid,
  90.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  91.         
  92.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  93.             IMyStruct __RPC_FAR * This);
  94.         
  95.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  96.             IMyStruct __RPC_FAR * This);
  97.         
  98.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  99.             IMyStruct __RPC_FAR * This,
  100.             /* [out] */ UINT __RPC_FAR *pctinfo);
  101.         
  102.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  103.             IMyStruct __RPC_FAR * This,
  104.             /* [in] */ UINT iTInfo,
  105.             /* [in] */ LCID lcid,
  106.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  107.         
  108.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  109.             IMyStruct __RPC_FAR * This,
  110.             /* [in] */ REFIID riid,
  111.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  112.             /* [in] */ UINT cNames,
  113.             /* [in] */ LCID lcid,
  114.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  115.         
  116.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  117.             IMyStruct __RPC_FAR * This,
  118.             /* [in] */ DISPID dispIdMember,
  119.             /* [in] */ REFIID riid,
  120.             /* [in] */ LCID lcid,
  121.             /* [in] */ WORD wFlags,
  122.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  123.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  124.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  125.             /* [out] */ UINT __RPC_FAR *puArgErr);
  126.         
  127.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetPersonById )( 
  128.             IMyStruct __RPC_FAR * This,
  129.             /* [in] */ UINT id,
  130.             /* [out] */ StPerson __RPC_FAR *__RPC_FAR *Result);
  131.         
  132.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetAllPerson )( 
  133.             IMyStruct __RPC_FAR * This,
  134.             /* [out] */ UINT __RPC_FAR *number,
  135.             /* [out] */ StPerson __RPC_FAR *__RPC_FAR *Result);
  136.         
  137.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SavePerson )( 
  138.             IMyStruct __RPC_FAR * This,
  139.             /* [in] */ UINT number,
  140.             /* [in] */ StPerson __RPC_FAR *Result,
  141.             /* [out] */ UINT __RPC_FAR *pResult);
  142.         
  143.         END_INTERFACE
  144.     } IMyStructVtbl;
  145.     interface IMyStruct
  146.     {
  147.         CONST_VTBL struct IMyStructVtbl __RPC_FAR *lpVtbl;
  148.     };
  149.     
  150. #ifdef COBJMACROS
  151. #define IMyStruct_QueryInterface(This,riid,ppvObject)
  152.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  153. #define IMyStruct_AddRef(This)
  154.     (This)->lpVtbl -> AddRef(This)
  155. #define IMyStruct_Release(This)
  156.     (This)->lpVtbl -> Release(This)
  157. #define IMyStruct_GetTypeInfoCount(This,pctinfo)
  158.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  159. #define IMyStruct_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  160.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  161. #define IMyStruct_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  162.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  163. #define IMyStruct_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  164.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  165. #define IMyStruct_GetPersonById(This,id,Result)
  166.     (This)->lpVtbl -> GetPersonById(This,id,Result)
  167. #define IMyStruct_GetAllPerson(This,number,Result)
  168.     (This)->lpVtbl -> GetAllPerson(This,number,Result)
  169. #define IMyStruct_SavePerson(This,number,Result,pResult)
  170.     (This)->lpVtbl -> SavePerson(This,number,Result,pResult)
  171. #endif /* COBJMACROS */
  172. #endif  /* C style interface */
  173. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMyStruct_GetPersonById_Proxy( 
  174.     IMyStruct __RPC_FAR * This,
  175.     /* [in] */ UINT id,
  176.     /* [out] */ StPerson __RPC_FAR *__RPC_FAR *Result);
  177. void __RPC_STUB IMyStruct_GetPersonById_Stub(
  178.     IRpcStubBuffer *This,
  179.     IRpcChannelBuffer *_pRpcChannelBuffer,
  180.     PRPC_MESSAGE _pRpcMessage,
  181.     DWORD *_pdwStubPhase);
  182. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMyStruct_GetAllPerson_Proxy( 
  183.     IMyStruct __RPC_FAR * This,
  184.     /* [out] */ UINT __RPC_FAR *number,
  185.     /* [out] */ StPerson __RPC_FAR *__RPC_FAR *Result);
  186. void __RPC_STUB IMyStruct_GetAllPerson_Stub(
  187.     IRpcStubBuffer *This,
  188.     IRpcChannelBuffer *_pRpcChannelBuffer,
  189.     PRPC_MESSAGE _pRpcMessage,
  190.     DWORD *_pdwStubPhase);
  191. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMyStruct_SavePerson_Proxy( 
  192.     IMyStruct __RPC_FAR * This,
  193.     /* [in] */ UINT number,
  194.     /* [in] */ StPerson __RPC_FAR *Result,
  195.     /* [out] */ UINT __RPC_FAR *pResult);
  196. void __RPC_STUB IMyStruct_SavePerson_Stub(
  197.     IRpcStubBuffer *This,
  198.     IRpcChannelBuffer *_pRpcChannelBuffer,
  199.     PRPC_MESSAGE _pRpcMessage,
  200.     DWORD *_pdwStubPhase);
  201. #endif  /* __IMyStruct_INTERFACE_DEFINED__ */
  202. #ifndef __STRUCTDEMOLib_LIBRARY_DEFINED__
  203. #define __STRUCTDEMOLib_LIBRARY_DEFINED__
  204. /* library STRUCTDEMOLib */
  205. /* [helpstring][version][uuid] */ 
  206. EXTERN_C const IID LIBID_STRUCTDEMOLib;
  207. EXTERN_C const CLSID CLSID_MyStruct;
  208. #ifdef __cplusplus
  209. class DECLSPEC_UUID("0C704694-9121-496F-B635-FD4B3BAD4C53")
  210. MyStruct;
  211. #endif
  212. #endif /* __STRUCTDEMOLib_LIBRARY_DEFINED__ */
  213. /* Additional Prototypes for ALL interfaces */
  214. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  215. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  216. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  217. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  218. /* end of Additional Prototypes */
  219. #ifdef __cplusplus
  220. }
  221. #endif
  222. #endif