DELTAPLC.h
上传用户:hailongwei
上传日期:2020-11-29
资源大小:5839k
文件大小:15k
源码类别:

单片机开发

开发平台:

Visual C++

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  /* File created by MIDL compiler version 6.00.0361 */
  3. /* at Tue Mar 16 15:51:51 2010
  4.  */
  5. /* Compiler settings for .DELTAPLC.idl:
  6.     Oicf, W1, Zp8, env=Win32 (32b run)
  7.     protocol : dce , ms_ext, c_ext, robust
  8.     error checks: allocation ref bounds_check enum stub_data 
  9.     VC __declspec() decoration level: 
  10.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  11.          DECLSPEC_UUID(), MIDL_INTERFACE()
  12. */
  13. //@@MIDL_FILE_HEADING(  )
  14. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  15. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  16. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  17. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  18. #endif
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21. #ifndef __RPCNDR_H_VERSION__
  22. #error this stub requires an updated version of <rpcndr.h>
  23. #endif // __RPCNDR_H_VERSION__
  24. #ifndef COM_NO_WINDOWS_H
  25. #include "windows.h"
  26. #include "ole2.h"
  27. #endif /*COM_NO_WINDOWS_H*/
  28. #ifndef __DELTAPLC_h__
  29. #define __DELTAPLC_h__
  30. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  31. #pragma once
  32. #endif
  33. /* Forward Declarations */ 
  34. #ifndef __IMSegment_FWD_DEFINED__
  35. #define __IMSegment_FWD_DEFINED__
  36. typedef interface IMSegment IMSegment;
  37. #endif  /* __IMSegment_FWD_DEFINED__ */
  38. #ifndef ___IMSegmentEvents_FWD_DEFINED__
  39. #define ___IMSegmentEvents_FWD_DEFINED__
  40. typedef interface _IMSegmentEvents _IMSegmentEvents;
  41. #endif  /* ___IMSegmentEvents_FWD_DEFINED__ */
  42. #ifndef __MSegment_FWD_DEFINED__
  43. #define __MSegment_FWD_DEFINED__
  44. #ifdef __cplusplus
  45. typedef class MSegment MSegment;
  46. #else
  47. typedef struct MSegment MSegment;
  48. #endif /* __cplusplus */
  49. #endif  /* __MSegment_FWD_DEFINED__ */
  50. /* header files for imported files */
  51. #include "oaidl.h"
  52. #include "ocidl.h"
  53. #ifdef __cplusplus
  54. extern "C"{
  55. #endif 
  56. void * __RPC_USER MIDL_user_allocate(size_t);
  57. void __RPC_USER MIDL_user_free( void * ); 
  58. #ifndef __IMSegment_INTERFACE_DEFINED__
  59. #define __IMSegment_INTERFACE_DEFINED__
  60. /* interface IMSegment */
  61. /* [unique][helpstring][nonextensible][dual][uuid][object] */ 
  62. EXTERN_C const IID IID_IMSegment;
  63. #if defined(__cplusplus) && !defined(CINTERFACE)
  64.     
  65.     MIDL_INTERFACE("2B38B597-89F5-4E43-A625-74BFD7956D7C")
  66.     IMSegment : public IDispatch
  67.     {
  68.     public:
  69.         virtual /* [id][requestedit][bindable][propget] */ HRESULT STDMETHODCALLTYPE get_HWND( 
  70.             /* [retval][out] */ LONG_PTR *pHWND) = 0;
  71.         
  72.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OpenLink( 
  73.             /* [in] */ LONG Comport,
  74.             /* [in] */ BSTR CommString) = 0;
  75.         
  76.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CloseLink( void) = 0;
  77.         
  78.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLink( 
  79.             /* [retval][out] */ VARIANT_BOOL *pVal) = 0;
  80.         
  81.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetBit( 
  82.             /* [in] */ LONG Addr,
  83.             /* [retval][out] */ VARIANT_BOOL *pVal) = 0;
  84.         
  85.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PutBit( 
  86.             /* [in] */ LONG Addr,
  87.             /* [in] */ VARIANT_BOOL OnOff) = 0;
  88.         
  89.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delay( 
  90.             /* [in] */ LONG TimeSpan) = 0;
  91.         
  92.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetNotify( 
  93.             /* [in] */ LONG Addr,
  94.             /* [in] */ VARIANT_BOOL AllowNotify) = 0;
  95.         
  96.     };
  97.     
  98. #else  /* C style interface */
  99.     typedef struct IMSegmentVtbl
  100.     {
  101.         BEGIN_INTERFACE
  102.         
  103.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  104.             IMSegment * This,
  105.             /* [in] */ REFIID riid,
  106.             /* [iid_is][out] */ void **ppvObject);
  107.         
  108.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  109.             IMSegment * This);
  110.         
  111.         ULONG ( STDMETHODCALLTYPE *Release )( 
  112.             IMSegment * This);
  113.         
  114.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  115.             IMSegment * This,
  116.             /* [out] */ UINT *pctinfo);
  117.         
  118.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  119.             IMSegment * This,
  120.             /* [in] */ UINT iTInfo,
  121.             /* [in] */ LCID lcid,
  122.             /* [out] */ ITypeInfo **ppTInfo);
  123.         
  124.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  125.             IMSegment * This,
  126.             /* [in] */ REFIID riid,
  127.             /* [size_is][in] */ LPOLESTR *rgszNames,
  128.             /* [in] */ UINT cNames,
  129.             /* [in] */ LCID lcid,
  130.             /* [size_is][out] */ DISPID *rgDispId);
  131.         
  132.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  133.             IMSegment * This,
  134.             /* [in] */ DISPID dispIdMember,
  135.             /* [in] */ REFIID riid,
  136.             /* [in] */ LCID lcid,
  137.             /* [in] */ WORD wFlags,
  138.             /* [out][in] */ DISPPARAMS *pDispParams,
  139.             /* [out] */ VARIANT *pVarResult,
  140.             /* [out] */ EXCEPINFO *pExcepInfo,
  141.             /* [out] */ UINT *puArgErr);
  142.         
  143.         /* [id][requestedit][bindable][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HWND )( 
  144.             IMSegment * This,
  145.             /* [retval][out] */ LONG_PTR *pHWND);
  146.         
  147.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OpenLink )( 
  148.             IMSegment * This,
  149.             /* [in] */ LONG Comport,
  150.             /* [in] */ BSTR CommString);
  151.         
  152.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CloseLink )( 
  153.             IMSegment * This);
  154.         
  155.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLink )( 
  156.             IMSegment * This,
  157.             /* [retval][out] */ VARIANT_BOOL *pVal);
  158.         
  159.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBit )( 
  160.             IMSegment * This,
  161.             /* [in] */ LONG Addr,
  162.             /* [retval][out] */ VARIANT_BOOL *pVal);
  163.         
  164.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PutBit )( 
  165.             IMSegment * This,
  166.             /* [in] */ LONG Addr,
  167.             /* [in] */ VARIANT_BOOL OnOff);
  168.         
  169.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delay )( 
  170.             IMSegment * This,
  171.             /* [in] */ LONG TimeSpan);
  172.         
  173.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetNotify )( 
  174.             IMSegment * This,
  175.             /* [in] */ LONG Addr,
  176.             /* [in] */ VARIANT_BOOL AllowNotify);
  177.         
  178.         END_INTERFACE
  179.     } IMSegmentVtbl;
  180.     interface IMSegment
  181.     {
  182.         CONST_VTBL struct IMSegmentVtbl *lpVtbl;
  183.     };
  184.     
  185. #ifdef COBJMACROS
  186. #define IMSegment_QueryInterface(This,riid,ppvObject)
  187.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  188. #define IMSegment_AddRef(This)
  189.     (This)->lpVtbl -> AddRef(This)
  190. #define IMSegment_Release(This)
  191.     (This)->lpVtbl -> Release(This)
  192. #define IMSegment_GetTypeInfoCount(This,pctinfo)
  193.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  194. #define IMSegment_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  195.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  196. #define IMSegment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  197.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  198. #define IMSegment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  199.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  200. #define IMSegment_get_HWND(This,pHWND)
  201.     (This)->lpVtbl -> get_HWND(This,pHWND)
  202. #define IMSegment_OpenLink(This,Comport,CommString)
  203.     (This)->lpVtbl -> OpenLink(This,Comport,CommString)
  204. #define IMSegment_CloseLink(This)
  205.     (This)->lpVtbl -> CloseLink(This)
  206. #define IMSegment_GetLink(This,pVal)
  207.     (This)->lpVtbl -> GetLink(This,pVal)
  208. #define IMSegment_GetBit(This,Addr,pVal)
  209.     (This)->lpVtbl -> GetBit(This,Addr,pVal)
  210. #define IMSegment_PutBit(This,Addr,OnOff)
  211.     (This)->lpVtbl -> PutBit(This,Addr,OnOff)
  212. #define IMSegment_Delay(This,TimeSpan)
  213.     (This)->lpVtbl -> Delay(This,TimeSpan)
  214. #define IMSegment_SetNotify(This,Addr,AllowNotify)
  215.     (This)->lpVtbl -> SetNotify(This,Addr,AllowNotify)
  216. #endif /* COBJMACROS */
  217. #endif  /* C style interface */
  218. /* [id][requestedit][bindable][propget] */ HRESULT STDMETHODCALLTYPE IMSegment_get_HWND_Proxy( 
  219.     IMSegment * This,
  220.     /* [retval][out] */ LONG_PTR *pHWND);
  221. void __RPC_STUB IMSegment_get_HWND_Stub(
  222.     IRpcStubBuffer *This,
  223.     IRpcChannelBuffer *_pRpcChannelBuffer,
  224.     PRPC_MESSAGE _pRpcMessage,
  225.     DWORD *_pdwStubPhase);
  226. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_OpenLink_Proxy( 
  227.     IMSegment * This,
  228.     /* [in] */ LONG Comport,
  229.     /* [in] */ BSTR CommString);
  230. void __RPC_STUB IMSegment_OpenLink_Stub(
  231.     IRpcStubBuffer *This,
  232.     IRpcChannelBuffer *_pRpcChannelBuffer,
  233.     PRPC_MESSAGE _pRpcMessage,
  234.     DWORD *_pdwStubPhase);
  235. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_CloseLink_Proxy( 
  236.     IMSegment * This);
  237. void __RPC_STUB IMSegment_CloseLink_Stub(
  238.     IRpcStubBuffer *This,
  239.     IRpcChannelBuffer *_pRpcChannelBuffer,
  240.     PRPC_MESSAGE _pRpcMessage,
  241.     DWORD *_pdwStubPhase);
  242. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_GetLink_Proxy( 
  243.     IMSegment * This,
  244.     /* [retval][out] */ VARIANT_BOOL *pVal);
  245. void __RPC_STUB IMSegment_GetLink_Stub(
  246.     IRpcStubBuffer *This,
  247.     IRpcChannelBuffer *_pRpcChannelBuffer,
  248.     PRPC_MESSAGE _pRpcMessage,
  249.     DWORD *_pdwStubPhase);
  250. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_GetBit_Proxy( 
  251.     IMSegment * This,
  252.     /* [in] */ LONG Addr,
  253.     /* [retval][out] */ VARIANT_BOOL *pVal);
  254. void __RPC_STUB IMSegment_GetBit_Stub(
  255.     IRpcStubBuffer *This,
  256.     IRpcChannelBuffer *_pRpcChannelBuffer,
  257.     PRPC_MESSAGE _pRpcMessage,
  258.     DWORD *_pdwStubPhase);
  259. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_PutBit_Proxy( 
  260.     IMSegment * This,
  261.     /* [in] */ LONG Addr,
  262.     /* [in] */ VARIANT_BOOL OnOff);
  263. void __RPC_STUB IMSegment_PutBit_Stub(
  264.     IRpcStubBuffer *This,
  265.     IRpcChannelBuffer *_pRpcChannelBuffer,
  266.     PRPC_MESSAGE _pRpcMessage,
  267.     DWORD *_pdwStubPhase);
  268. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_Delay_Proxy( 
  269.     IMSegment * This,
  270.     /* [in] */ LONG TimeSpan);
  271. void __RPC_STUB IMSegment_Delay_Stub(
  272.     IRpcStubBuffer *This,
  273.     IRpcChannelBuffer *_pRpcChannelBuffer,
  274.     PRPC_MESSAGE _pRpcMessage,
  275.     DWORD *_pdwStubPhase);
  276. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IMSegment_SetNotify_Proxy( 
  277.     IMSegment * This,
  278.     /* [in] */ LONG Addr,
  279.     /* [in] */ VARIANT_BOOL AllowNotify);
  280. void __RPC_STUB IMSegment_SetNotify_Stub(
  281.     IRpcStubBuffer *This,
  282.     IRpcChannelBuffer *_pRpcChannelBuffer,
  283.     PRPC_MESSAGE _pRpcMessage,
  284.     DWORD *_pdwStubPhase);
  285. #endif  /* __IMSegment_INTERFACE_DEFINED__ */
  286. #ifndef __DELTAPLCLib_LIBRARY_DEFINED__
  287. #define __DELTAPLCLib_LIBRARY_DEFINED__
  288. /* library DELTAPLCLib */
  289. /* [helpstring][version][uuid] */ 
  290. EXTERN_C const IID LIBID_DELTAPLCLib;
  291. #ifndef ___IMSegmentEvents_DISPINTERFACE_DEFINED__
  292. #define ___IMSegmentEvents_DISPINTERFACE_DEFINED__
  293. /* dispinterface _IMSegmentEvents */
  294. /* [helpstring][uuid] */ 
  295. EXTERN_C const IID DIID__IMSegmentEvents;
  296. #if defined(__cplusplus) && !defined(CINTERFACE)
  297.     MIDL_INTERFACE("2D03C052-A6EF-4F2B-A24C-7BB542C6D365")
  298.     _IMSegmentEvents : public IDispatch
  299.     {
  300.     };
  301.     
  302. #else  /* C style interface */
  303.     typedef struct _IMSegmentEventsVtbl
  304.     {
  305.         BEGIN_INTERFACE
  306.         
  307.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  308.             _IMSegmentEvents * This,
  309.             /* [in] */ REFIID riid,
  310.             /* [iid_is][out] */ void **ppvObject);
  311.         
  312.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  313.             _IMSegmentEvents * This);
  314.         
  315.         ULONG ( STDMETHODCALLTYPE *Release )( 
  316.             _IMSegmentEvents * This);
  317.         
  318.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  319.             _IMSegmentEvents * This,
  320.             /* [out] */ UINT *pctinfo);
  321.         
  322.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  323.             _IMSegmentEvents * This,
  324.             /* [in] */ UINT iTInfo,
  325.             /* [in] */ LCID lcid,
  326.             /* [out] */ ITypeInfo **ppTInfo);
  327.         
  328.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  329.             _IMSegmentEvents * This,
  330.             /* [in] */ REFIID riid,
  331.             /* [size_is][in] */ LPOLESTR *rgszNames,
  332.             /* [in] */ UINT cNames,
  333.             /* [in] */ LCID lcid,
  334.             /* [size_is][out] */ DISPID *rgDispId);
  335.         
  336.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  337.             _IMSegmentEvents * This,
  338.             /* [in] */ DISPID dispIdMember,
  339.             /* [in] */ REFIID riid,
  340.             /* [in] */ LCID lcid,
  341.             /* [in] */ WORD wFlags,
  342.             /* [out][in] */ DISPPARAMS *pDispParams,
  343.             /* [out] */ VARIANT *pVarResult,
  344.             /* [out] */ EXCEPINFO *pExcepInfo,
  345.             /* [out] */ UINT *puArgErr);
  346.         
  347.         END_INTERFACE
  348.     } _IMSegmentEventsVtbl;
  349.     interface _IMSegmentEvents
  350.     {
  351.         CONST_VTBL struct _IMSegmentEventsVtbl *lpVtbl;
  352.     };
  353.     
  354. #ifdef COBJMACROS
  355. #define _IMSegmentEvents_QueryInterface(This,riid,ppvObject)
  356.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  357. #define _IMSegmentEvents_AddRef(This)
  358.     (This)->lpVtbl -> AddRef(This)
  359. #define _IMSegmentEvents_Release(This)
  360.     (This)->lpVtbl -> Release(This)
  361. #define _IMSegmentEvents_GetTypeInfoCount(This,pctinfo)
  362.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  363. #define _IMSegmentEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  364.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  365. #define _IMSegmentEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  366.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  367. #define _IMSegmentEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  368.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  369. #endif /* COBJMACROS */
  370. #endif  /* C style interface */
  371. #endif  /* ___IMSegmentEvents_DISPINTERFACE_DEFINED__ */
  372. EXTERN_C const CLSID CLSID_MSegment;
  373. #ifdef __cplusplus
  374. class DECLSPEC_UUID("7F89CA20-5EF8-4614-8702-E58F473FBDD7")
  375. MSegment;
  376. #endif
  377. #endif /* __DELTAPLCLib_LIBRARY_DEFINED__ */
  378. /* Additional Prototypes for ALL interfaces */
  379. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
  380. unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
  381. unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
  382. void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
  383. /* end of Additional Prototypes */
  384. #ifdef __cplusplus
  385. }
  386. #endif
  387. #endif