Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Guid("D139A1E0-1B3F-480c-A712-C0066F029D63")]
- [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
- [ComVisible(true)]
- public interface IDBEvents
- {
- void GetEvents([MarshalAs(UnmanagedType.LPArray)]out EventsResp[] respdata);
- }
- [ClassInterface(ClassInterfaceType.None)]
- [Guid("A6B5E08B-8E05-47ed-998E-26C10F8A45B1")]
- [ProgId("DBEventWrapper.CDBEventsWrapper")]
- [ComVisible(true)]
- public class CDBEventsWrapper:IDBEvents
- {
- // Implemented the getevents method here;
- }
- [ComVisible(true)]
- [Guid("1C89CA17-75AB-4931-A41E-3D3DE47B7FBC")]
- public struct EventsResp
- {
- public long veMask;
- public long eventstate;
- public DateTime time;
- [MarshalAs(UnmanagedType.LPWStr)]
- public string message;
- [MarshalAs(UnmanagedType.LPWStr)]
- public string srce;
- public ulong tType;
- public ulong cat;
- public ulong sevr;
- }
- Wrapper::EventsResp *events;
- Wrapper::IEventsPtr m_Rtdbevents;
- m_dbevents..CreateInstance (DBEventWrapper::CLSID_CDBEventsWrapper);
- m_dbevents->GetEvents(&events);
Add Comment
Please, Sign In to add comment