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.

46 lines
1.6 KiB

  1. // AssertDlg.h : Declaration of the CCAssertDlg
  2. #if !defined(AUTOUTIL__AssertDlg_h__INCLUDED)
  3. #define AUTOUTIL__AssertDlg_h__INCLUDED
  4. #include "resource.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CCAssertDlg
  7. class CAssertDlg
  8. {
  9. // Construction
  10. public:
  11. CAssertDlg();
  12. ~CAssertDlg();
  13. // Operations
  14. public:
  15. INT_PTR ShowDialog(LPCSTR pszType, LPCSTR pszExpression, LPCSTR pszFileName,
  16. UINT idxLineNum, HANDLE hStackData, UINT cCSEntries, UINT cSkipLevels = 0);
  17. // Implementation
  18. protected:
  19. static INT_PTR CALLBACK DlgProc(HWND hwnd, UINT nMsg, WPARAM wParam, LPARAM lParam);
  20. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  21. LRESULT OnClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  22. LRESULT OnCopy(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  23. LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  24. // Data
  25. protected:
  26. HWND m_hwnd;
  27. LPCSTR m_pszTitle; // Dialog title
  28. LPCSTR m_pszExpression; // Expression / comment
  29. LPCSTR m_pszFileName; // FileName
  30. char m_szLineNum[10]; // Line number
  31. HANDLE m_hStackData; // Stack data
  32. UINT m_cCSEntries; // Number of levels on stack
  33. UINT m_cSkipLevels; // Number of levels of stack to skip
  34. BOOL m_fProperShutdown; // Had proper shutdown of dialog
  35. static BOOL s_fInit;
  36. };
  37. #endif // AUTOUTIL__AssertDlg_h__INCLUDED