uiUnitReady.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include "./main.h"
  3. #include "./uiUpdatingData.h"
  4. #include "../primo/obj_primo.h"
  5. #define UNITREADYUI_DRIVEREADY 0x000
  6. #define UNITREADYUI_NOTREADY 0x001
  7. #define UNITREADYUI_CANCELED 0x002
  8. #define UNITREADYUI_PRIMOSDKERROR 0x101
  9. #define UNITREADYUI_UNABLETOCREATEDIALOG 0x102
  10. #define UNITREADYUI_MESSAGEPUMPERROR 0x103
  11. #define UNITREADYUI_DRIVENOTSET 0x104
  12. #define UNITREADYUI_PRIMOSDKNOTSET 0x105
  13. class UnitReadyUI
  14. {
  15. public:
  16. BURNLIB_API UnitReadyUI(void);
  17. BURNLIB_API ~UnitReadyUI(void);
  18. public:
  19. BURNLIB_API DWORD Check(obj_primo *primoSDK, DWORD *drive, BOOL showRetry, HWND ownerWnd);
  20. BURNLIB_API DWORD GetPrimoError(void) { return errPrimo; }
  21. protected:
  22. DWORD Rescan(void);
  23. static LRESULT CALLBACK WndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  24. void OnInitDialog(HWND hwndDlg);
  25. void OnCancel(void);
  26. void OnDestroy(void);
  27. protected:
  28. HWND hwnd;
  29. DWORD *drive;
  30. obj_primo *primoSDK;
  31. DWORD errPrimo;
  32. DWORD errReady;
  33. UpdatingDataUI *updateDlg;
  34. DWORD statSense;
  35. DWORD statAsc;
  36. DWORD statAscQ;
  37. };