1
0

ifc_setupjob.h 860 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef WINAMP_IFC_SETUP_JOB_HEADER
  2. #define WINAMP_IFC_SETUP_JOB_HEADER
  3. #include <bfc/dispatch.h>
  4. #include <windows.h>
  5. class NOVTABLE ifc_setupjob : public Dispatchable
  6. {
  7. protected:
  8. ifc_setupjob(void) {}
  9. virtual ~ifc_setupjob(void) {}
  10. public:
  11. HRESULT Execute(HWND hwndText);
  12. HRESULT Cancel(HWND hwndText);
  13. HRESULT IsCancelSupported(void);
  14. public:
  15. DISPATCH_CODES
  16. {
  17. API_SETUPJOB_EXECUTE = 10,
  18. API_SETUPJOB_CANCEL = 20,
  19. API_SETUPJOB_ISCANCELSUPPORTED = 30,
  20. };
  21. };
  22. inline HRESULT ifc_setupjob::Execute(HWND hwndText)
  23. {
  24. return _call(API_SETUPJOB_EXECUTE, E_NOTIMPL, hwndText);
  25. }
  26. inline HRESULT ifc_setupjob::Cancel(HWND hwndText)
  27. {
  28. return _call(API_SETUPJOB_CANCEL, E_NOTIMPL, hwndText);
  29. }
  30. inline HRESULT ifc_setupjob::IsCancelSupported(void)
  31. {
  32. return _call(API_SETUPJOB_ISCANCELSUPPORTED, E_NOTIMPL);
  33. }
  34. #endif //WINAMP_IFC_SETUP_JOB_HEADER