1
0

ApplicationCOM.h 776 B

1234567891011121314151617181920212223
  1. #ifndef NULLSOFT_APPLICATIONCOM_H
  2. #define NULLSOFT_APPLICATIONCOM_H
  3. #include <ocidl.h>
  4. class ApplicationCOM : public IDispatch
  5. {
  6. public:
  7. STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
  8. STDMETHOD_(ULONG, AddRef)(void);
  9. STDMETHOD_(ULONG, Release)(void);
  10. // *** IDispatch Methods ***
  11. STDMETHOD (GetIDsOfNames)(REFIID riid, OLECHAR FAR* FAR* rgszNames, unsigned int cNames, LCID lcid, DISPID FAR* rgdispid);
  12. STDMETHOD (GetTypeInfo)(unsigned int itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo);
  13. STDMETHOD (GetTypeInfoCount)(unsigned int FAR * pctinfo);
  14. STDMETHOD (Invoke)(DISPID dispid, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, EXCEPINFO FAR * pexecinfo, unsigned int FAR *puArgErr);
  15. void Idle();
  16. };
  17. #endif