RNSO.h
上传用户:lianquan
上传日期:2007-01-02
资源大小:197k
文件大小:16k
源码类别:

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 Wed Nov 04 21:05:38 1998
  4.  */
  5. /* Compiler settings for RNSO.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 __RNSO_h__
  24. #define __RNSO_h__
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif 
  28. /* Forward Declarations */ 
  29. #ifndef __IGenericObserver_FWD_DEFINED__
  30. #define __IGenericObserver_FWD_DEFINED__
  31. typedef interface IGenericObserver IGenericObserver;
  32. #endif  /* __IGenericObserver_FWD_DEFINED__ */
  33. #ifndef __IGenericObserverNotification_FWD_DEFINED__
  34. #define __IGenericObserverNotification_FWD_DEFINED__
  35. typedef interface IGenericObserverNotification IGenericObserverNotification;
  36. #endif  /* __IGenericObserverNotification_FWD_DEFINED__ */
  37. #ifndef __GenericObserver_FWD_DEFINED__
  38. #define __GenericObserver_FWD_DEFINED__
  39. #ifdef __cplusplus
  40. typedef class GenericObserver GenericObserver;
  41. #else
  42. typedef struct GenericObserver GenericObserver;
  43. #endif /* __cplusplus */
  44. #endif  /* __GenericObserver_FWD_DEFINED__ */
  45. /* header files for imported files */
  46. #include "oaidl.h"
  47. #include "ocidl.h"
  48. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  49. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  50. #ifndef __IGenericObserver_INTERFACE_DEFINED__
  51. #define __IGenericObserver_INTERFACE_DEFINED__
  52. /* interface IGenericObserver */
  53. /* [object][unique][helpstring][uuid] */ 
  54. EXTERN_C const IID IID_IGenericObserver;
  55. #if defined(__cplusplus) && !defined(CINTERFACE)
  56.     
  57.     MIDL_INTERFACE("9398D870-4F98-11D2-A93D-BE57B2000000")
  58.     IGenericObserver : public IUnknown
  59.     {
  60.     public:
  61.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Subscribe( 
  62.             /* [in] */ DWORD dwSubjectID) = 0;
  63.         
  64.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Unsubscribe( 
  65.             /* [in] */ DWORD dwSubjectID,
  66.             /* [in] */ BOOL bAllSubjects) = 0;
  67.         
  68.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE IsSubscribed( 
  69.             DWORD dwSubjectID) = 0;
  70.         
  71.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCountSubscriptions( 
  72.             /* [out] */ long __RPC_FAR *lCount) = 0;
  73.         
  74.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCountSubscribers( 
  75.             /* [out] */ long __RPC_FAR *lCount) = 0;
  76.         
  77.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Notify( 
  78.             /* [in] */ long nSizeNotification,
  79.             /* [full][size_is][in] */ byte __RPC_FAR *pNotification) = 0;
  80.         
  81.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE FindObjectID( 
  82.             /* [in] */ BSTR strname,
  83.             /* [out] */ DWORD __RPC_FAR *dwObjectID) = 0;
  84.         
  85.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetObjectID( 
  86.             /* [out] */ DWORD __RPC_FAR *dwID) = 0;
  87.         
  88.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetName( 
  89.             /* [retval][out] */ BSTR __RPC_FAR *strName) = 0;
  90.         
  91.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetName( 
  92.             /* [string][in] */ BSTR strName) = 0;
  93.         
  94.     };
  95.     
  96. #else  /* C style interface */
  97.     typedef struct IGenericObserverVtbl
  98.     {
  99.         BEGIN_INTERFACE
  100.         
  101.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  102.             IGenericObserver __RPC_FAR * This,
  103.             /* [in] */ REFIID riid,
  104.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  105.         
  106.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  107.             IGenericObserver __RPC_FAR * This);
  108.         
  109.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  110.             IGenericObserver __RPC_FAR * This);
  111.         
  112.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Subscribe )( 
  113.             IGenericObserver __RPC_FAR * This,
  114.             /* [in] */ DWORD dwSubjectID);
  115.         
  116.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Unsubscribe )( 
  117.             IGenericObserver __RPC_FAR * This,
  118.             /* [in] */ DWORD dwSubjectID,
  119.             /* [in] */ BOOL bAllSubjects);
  120.         
  121.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *IsSubscribed )( 
  122.             IGenericObserver __RPC_FAR * This,
  123.             DWORD dwSubjectID);
  124.         
  125.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetCountSubscriptions )( 
  126.             IGenericObserver __RPC_FAR * This,
  127.             /* [out] */ long __RPC_FAR *lCount);
  128.         
  129.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetCountSubscribers )( 
  130.             IGenericObserver __RPC_FAR * This,
  131.             /* [out] */ long __RPC_FAR *lCount);
  132.         
  133.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Notify )( 
  134.             IGenericObserver __RPC_FAR * This,
  135.             /* [in] */ long nSizeNotification,
  136.             /* [full][size_is][in] */ byte __RPC_FAR *pNotification);
  137.         
  138.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *FindObjectID )( 
  139.             IGenericObserver __RPC_FAR * This,
  140.             /* [in] */ BSTR strname,
  141.             /* [out] */ DWORD __RPC_FAR *dwObjectID);
  142.         
  143.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetObjectID )( 
  144.             IGenericObserver __RPC_FAR * This,
  145.             /* [out] */ DWORD __RPC_FAR *dwID);
  146.         
  147.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetName )( 
  148.             IGenericObserver __RPC_FAR * This,
  149.             /* [retval][out] */ BSTR __RPC_FAR *strName);
  150.         
  151.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetName )( 
  152.             IGenericObserver __RPC_FAR * This,
  153.             /* [string][in] */ BSTR strName);
  154.         
  155.         END_INTERFACE
  156.     } IGenericObserverVtbl;
  157.     interface IGenericObserver
  158.     {
  159.         CONST_VTBL struct IGenericObserverVtbl __RPC_FAR *lpVtbl;
  160.     };
  161.     
  162. #ifdef COBJMACROS
  163. #define IGenericObserver_QueryInterface(This,riid,ppvObject)
  164.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  165. #define IGenericObserver_AddRef(This)
  166.     (This)->lpVtbl -> AddRef(This)
  167. #define IGenericObserver_Release(This)
  168.     (This)->lpVtbl -> Release(This)
  169. #define IGenericObserver_Subscribe(This,dwSubjectID)
  170.     (This)->lpVtbl -> Subscribe(This,dwSubjectID)
  171. #define IGenericObserver_Unsubscribe(This,dwSubjectID,bAllSubjects)
  172.     (This)->lpVtbl -> Unsubscribe(This,dwSubjectID,bAllSubjects)
  173. #define IGenericObserver_IsSubscribed(This,dwSubjectID)
  174.     (This)->lpVtbl -> IsSubscribed(This,dwSubjectID)
  175. #define IGenericObserver_GetCountSubscriptions(This,lCount)
  176.     (This)->lpVtbl -> GetCountSubscriptions(This,lCount)
  177. #define IGenericObserver_GetCountSubscribers(This,lCount)
  178.     (This)->lpVtbl -> GetCountSubscribers(This,lCount)
  179. #define IGenericObserver_Notify(This,nSizeNotification,pNotification)
  180.     (This)->lpVtbl -> Notify(This,nSizeNotification,pNotification)
  181. #define IGenericObserver_FindObjectID(This,strname,dwObjectID)
  182.     (This)->lpVtbl -> FindObjectID(This,strname,dwObjectID)
  183. #define IGenericObserver_GetObjectID(This,dwID)
  184.     (This)->lpVtbl -> GetObjectID(This,dwID)
  185. #define IGenericObserver_GetName(This,strName)
  186.     (This)->lpVtbl -> GetName(This,strName)
  187. #define IGenericObserver_SetName(This,strName)
  188.     (This)->lpVtbl -> SetName(This,strName)
  189. #endif /* COBJMACROS */
  190. #endif  /* C style interface */
  191. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_Subscribe_Proxy( 
  192.     IGenericObserver __RPC_FAR * This,
  193.     /* [in] */ DWORD dwSubjectID);
  194. void __RPC_STUB IGenericObserver_Subscribe_Stub(
  195.     IRpcStubBuffer *This,
  196.     IRpcChannelBuffer *_pRpcChannelBuffer,
  197.     PRPC_MESSAGE _pRpcMessage,
  198.     DWORD *_pdwStubPhase);
  199. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_Unsubscribe_Proxy( 
  200.     IGenericObserver __RPC_FAR * This,
  201.     /* [in] */ DWORD dwSubjectID,
  202.     /* [in] */ BOOL bAllSubjects);
  203. void __RPC_STUB IGenericObserver_Unsubscribe_Stub(
  204.     IRpcStubBuffer *This,
  205.     IRpcChannelBuffer *_pRpcChannelBuffer,
  206.     PRPC_MESSAGE _pRpcMessage,
  207.     DWORD *_pdwStubPhase);
  208. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_IsSubscribed_Proxy( 
  209.     IGenericObserver __RPC_FAR * This,
  210.     DWORD dwSubjectID);
  211. void __RPC_STUB IGenericObserver_IsSubscribed_Stub(
  212.     IRpcStubBuffer *This,
  213.     IRpcChannelBuffer *_pRpcChannelBuffer,
  214.     PRPC_MESSAGE _pRpcMessage,
  215.     DWORD *_pdwStubPhase);
  216. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_GetCountSubscriptions_Proxy( 
  217.     IGenericObserver __RPC_FAR * This,
  218.     /* [out] */ long __RPC_FAR *lCount);
  219. void __RPC_STUB IGenericObserver_GetCountSubscriptions_Stub(
  220.     IRpcStubBuffer *This,
  221.     IRpcChannelBuffer *_pRpcChannelBuffer,
  222.     PRPC_MESSAGE _pRpcMessage,
  223.     DWORD *_pdwStubPhase);
  224. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_GetCountSubscribers_Proxy( 
  225.     IGenericObserver __RPC_FAR * This,
  226.     /* [out] */ long __RPC_FAR *lCount);
  227. void __RPC_STUB IGenericObserver_GetCountSubscribers_Stub(
  228.     IRpcStubBuffer *This,
  229.     IRpcChannelBuffer *_pRpcChannelBuffer,
  230.     PRPC_MESSAGE _pRpcMessage,
  231.     DWORD *_pdwStubPhase);
  232. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_Notify_Proxy( 
  233.     IGenericObserver __RPC_FAR * This,
  234.     /* [in] */ long nSizeNotification,
  235.     /* [full][size_is][in] */ byte __RPC_FAR *pNotification);
  236. void __RPC_STUB IGenericObserver_Notify_Stub(
  237.     IRpcStubBuffer *This,
  238.     IRpcChannelBuffer *_pRpcChannelBuffer,
  239.     PRPC_MESSAGE _pRpcMessage,
  240.     DWORD *_pdwStubPhase);
  241. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_FindObjectID_Proxy( 
  242.     IGenericObserver __RPC_FAR * This,
  243.     /* [in] */ BSTR strname,
  244.     /* [out] */ DWORD __RPC_FAR *dwObjectID);
  245. void __RPC_STUB IGenericObserver_FindObjectID_Stub(
  246.     IRpcStubBuffer *This,
  247.     IRpcChannelBuffer *_pRpcChannelBuffer,
  248.     PRPC_MESSAGE _pRpcMessage,
  249.     DWORD *_pdwStubPhase);
  250. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_GetObjectID_Proxy( 
  251.     IGenericObserver __RPC_FAR * This,
  252.     /* [out] */ DWORD __RPC_FAR *dwID);
  253. void __RPC_STUB IGenericObserver_GetObjectID_Stub(
  254.     IRpcStubBuffer *This,
  255.     IRpcChannelBuffer *_pRpcChannelBuffer,
  256.     PRPC_MESSAGE _pRpcMessage,
  257.     DWORD *_pdwStubPhase);
  258. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_GetName_Proxy( 
  259.     IGenericObserver __RPC_FAR * This,
  260.     /* [retval][out] */ BSTR __RPC_FAR *strName);
  261. void __RPC_STUB IGenericObserver_GetName_Stub(
  262.     IRpcStubBuffer *This,
  263.     IRpcChannelBuffer *_pRpcChannelBuffer,
  264.     PRPC_MESSAGE _pRpcMessage,
  265.     DWORD *_pdwStubPhase);
  266. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserver_SetName_Proxy( 
  267.     IGenericObserver __RPC_FAR * This,
  268.     /* [string][in] */ BSTR strName);
  269. void __RPC_STUB IGenericObserver_SetName_Stub(
  270.     IRpcStubBuffer *This,
  271.     IRpcChannelBuffer *_pRpcChannelBuffer,
  272.     PRPC_MESSAGE _pRpcMessage,
  273.     DWORD *_pdwStubPhase);
  274. #endif  /* __IGenericObserver_INTERFACE_DEFINED__ */
  275. #ifndef __IGenericObserverNotification_INTERFACE_DEFINED__
  276. #define __IGenericObserverNotification_INTERFACE_DEFINED__
  277. /* interface IGenericObserverNotification */
  278. /* [object][unique][helpstring][uuid] */ 
  279. EXTERN_C const IID IID_IGenericObserverNotification;
  280. #if defined(__cplusplus) && !defined(CINTERFACE)
  281.     
  282.     MIDL_INTERFACE("E47357D4-5074-11D2-A93F-900842000000")
  283.     IGenericObserverNotification : public IUnknown
  284.     {
  285.     public:
  286.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnNotify( 
  287.             /* [in] */ DWORD dwSubjectSender,
  288.             /* [in] */ long nSizeNotification,
  289.             /* [full][size_is][in] */ byte __RPC_FAR *pNotification) = 0;
  290.         
  291.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnNotifySubjectBroken( 
  292.             /* [in] */ DWORD dwSubjectID) = 0;
  293.         
  294.     };
  295.     
  296. #else  /* C style interface */
  297.     typedef struct IGenericObserverNotificationVtbl
  298.     {
  299.         BEGIN_INTERFACE
  300.         
  301.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  302.             IGenericObserverNotification __RPC_FAR * This,
  303.             /* [in] */ REFIID riid,
  304.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  305.         
  306.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  307.             IGenericObserverNotification __RPC_FAR * This);
  308.         
  309.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  310.             IGenericObserverNotification __RPC_FAR * This);
  311.         
  312.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *OnNotify )( 
  313.             IGenericObserverNotification __RPC_FAR * This,
  314.             /* [in] */ DWORD dwSubjectSender,
  315.             /* [in] */ long nSizeNotification,
  316.             /* [full][size_is][in] */ byte __RPC_FAR *pNotification);
  317.         
  318.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *OnNotifySubjectBroken )( 
  319.             IGenericObserverNotification __RPC_FAR * This,
  320.             /* [in] */ DWORD dwSubjectID);
  321.         
  322.         END_INTERFACE
  323.     } IGenericObserverNotificationVtbl;
  324.     interface IGenericObserverNotification
  325.     {
  326.         CONST_VTBL struct IGenericObserverNotificationVtbl __RPC_FAR *lpVtbl;
  327.     };
  328.     
  329. #ifdef COBJMACROS
  330. #define IGenericObserverNotification_QueryInterface(This,riid,ppvObject)
  331.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  332. #define IGenericObserverNotification_AddRef(This)
  333.     (This)->lpVtbl -> AddRef(This)
  334. #define IGenericObserverNotification_Release(This)
  335.     (This)->lpVtbl -> Release(This)
  336. #define IGenericObserverNotification_OnNotify(This,dwSubjectSender,nSizeNotification,pNotification)
  337.     (This)->lpVtbl -> OnNotify(This,dwSubjectSender,nSizeNotification,pNotification)
  338. #define IGenericObserverNotification_OnNotifySubjectBroken(This,dwSubjectID)
  339.     (This)->lpVtbl -> OnNotifySubjectBroken(This,dwSubjectID)
  340. #endif /* COBJMACROS */
  341. #endif  /* C style interface */
  342. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserverNotification_OnNotify_Proxy( 
  343.     IGenericObserverNotification __RPC_FAR * This,
  344.     /* [in] */ DWORD dwSubjectSender,
  345.     /* [in] */ long nSizeNotification,
  346.     /* [full][size_is][in] */ byte __RPC_FAR *pNotification);
  347. void __RPC_STUB IGenericObserverNotification_OnNotify_Stub(
  348.     IRpcStubBuffer *This,
  349.     IRpcChannelBuffer *_pRpcChannelBuffer,
  350.     PRPC_MESSAGE _pRpcMessage,
  351.     DWORD *_pdwStubPhase);
  352. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IGenericObserverNotification_OnNotifySubjectBroken_Proxy( 
  353.     IGenericObserverNotification __RPC_FAR * This,
  354.     /* [in] */ DWORD dwSubjectID);
  355. void __RPC_STUB IGenericObserverNotification_OnNotifySubjectBroken_Stub(
  356.     IRpcStubBuffer *This,
  357.     IRpcChannelBuffer *_pRpcChannelBuffer,
  358.     PRPC_MESSAGE _pRpcMessage,
  359.     DWORD *_pdwStubPhase);
  360. #endif  /* __IGenericObserverNotification_INTERFACE_DEFINED__ */
  361. #ifndef __RNSOLib_LIBRARY_DEFINED__
  362. #define __RNSOLib_LIBRARY_DEFINED__
  363. /* library RNSOLib */
  364. /* [helpstring][version][uuid] */ 
  365. EXTERN_C const IID LIBID_RNSOLib;
  366. EXTERN_C const CLSID CLSID_GenericObserver;
  367. #ifdef __cplusplus
  368. class DECLSPEC_UUID("9398D871-4F98-11D2-A93D-BE57B2000000")
  369. GenericObserver;
  370. #endif
  371. #endif /* __RNSOLib_LIBRARY_DEFINED__ */
  372. /* Additional Prototypes for ALL interfaces */
  373. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  374. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  375. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  376. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  377. /* end of Additional Prototypes */
  378. #ifdef __cplusplus
  379. }
  380. #endif
  381. #endif