Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

  1. // PromptUserDlg.h: interface for the CPromptUserDlg class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_PROMPTUSERDLG_H__BFA609BD_8021_4CE2_AEF8_1D0D96F87402__INCLUDED_)
  5. #define AFX_PROMPTUSERDLG_H__BFA609BD_8021_4CE2_AEF8_1D0D96F87402__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define AU_IDTIMEOUT 1000
  10. class CPromptUserDlg
  11. {
  12. public:
  13. CPromptUserDlg(WORD wDlgResourceId, BOOL fEnableYes= TRUE, BOOL fEnableNo = TRUE, BOOL fManualReboot = FALSE, DWORD dwElapsedTime = 0);
  14. virtual int DoModal(HWND hWndParent);
  15. virtual ~CPromptUserDlg();
  16. //Message Handlers
  17. BOOL _OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam);
  18. BOOL _OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  19. void _OnTimer(HWND hwnd, UINT id);
  20. void _OnDestroy(HWND hwnd);
  21. void _OnEndSession(HWND hwnd, BOOL fEnding);
  22. static void SetInstanceHandle(HINSTANCE hInstance);
  23. static INT_PTR CALLBACK _DlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  24. //Helper function
  25. void UpdateStatus(HWND hwnd);
  26. private:
  27. static HINSTANCE m_hInstance;
  28. private:
  29. WORD m_wDlgResourceId;
  30. HWND m_ProgressBar;
  31. UINT_PTR m_nIDTimer;
  32. UINT m_ElapsedTime;
  33. BOOL m_fEnableYes;
  34. BOOL m_fEnableNo;
  35. BOOL m_fManualReboot;
  36. };
  37. #endif // !defined(AFX_PROMPTUSERDLG_H__BFA609BD_8021_4CE2_AEF8_1D0D96F87402__INCLUDED_)