RNSO.idl
资源名称:rnso.zip [点击查看]
上传用户:lianquan
上传日期:2007-01-02
资源大小:197k
文件大小:2k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // RNSO.idl : IDL source for RNSO.dll
- //
- // This file will be processed by the MIDL tool to
- // produce the type library (RNSO.tlb) and marshalling code.
- import "oaidl.idl";
- import "ocidl.idl";
- [
- uuid(9398D870-4F98-11D2-A93D-BE57B2000000),
- helpstring("IGenericObserver Interface"),
- pointer_default(unique)
- ]
- interface IGenericObserver : IUnknown
- {
- [helpstring("method Subscribe")] HRESULT Subscribe([in] DWORD dwSubjectID);
- [helpstring("method Unsubscribe")] HRESULT Unsubscribe([in]DWORD dwSubjectID,[in]BOOL bAllSubjects);
- [helpstring("method IsSubscribed")] HRESULT IsSubscribed(DWORD dwSubjectID);
- [helpstring("method GetCountSubscriptions")] HRESULT GetCountSubscriptions([out] long * lCount);
- [helpstring("method GetCountSubscribers")] HRESULT GetCountSubscribers([out] long * lCount);
- [helpstring("method Notify")] HRESULT Notify([in] long nSizeNotification,[in,size_is(nSizeNotification)] [ptr] byte* pNotification);
- [helpstring("method FindObjectID")] HRESULT FindObjectID([in] BSTR strname,[out]DWORD * dwObjectID);
- [helpstring("method GetObjectID")] HRESULT GetObjectID([out]DWORD * dwID);
- [helpstring("method GetName")] HRESULT GetName([out,retval]BSTR *strName);
- [helpstring("method SetName")] HRESULT SetName([in,string] BSTR strName);
- };
- [
- uuid(E47357D4-5074-11D2-A93F-900842000000),
- helpstring("IGenericObserverNotification Interface"),
- pointer_default(unique)
- ]
- interface IGenericObserverNotification: IUnknown
- {
- [helpstring("method OnNotify")] HRESULT OnNotify([in] DWORD dwSubjectSender,[in] long nSizeNotification,[in,size_is(nSizeNotification)] [ptr] byte* pNotification);
- [helpstring("method OnNotifySubjectBroken")] HRESULT OnNotifySubjectBroken([in] DWORD dwSubjectID);
- };
- [
- uuid(556C55A0-4F26-11D2-A93C-EE91CF000000),
- version(1.0),
- helpstring("RNSO 1.0 Type Library")
- ]
- library RNSOLib
- {
- importlib("stdole32.tlb");
- importlib("stdole2.tlb");
- [
- uuid(9398D871-4F98-11D2-A93D-BE57B2000000),
- helpstring("GenericObserver Class")
- ]
- coclass GenericObserver
- {
- [default] interface IGenericObserver;
- [default,source] interface IGenericObserverNotification;
- };
- };