Source code of Windows XP (NT5)
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.

56 lines
1.3 KiB

  1. // leakydlg.h : header file
  2. //
  3. typedef struct _MEMORY_ALLOC_BLOCK {
  4. struct _MEMORY_ALLOC_BLOCK *pNext;
  5. } MEMORY_ALLOC_BLOCK, *PMEMORY_ALLOC_BLOCK;
  6. #define ALLOCATION_SIZE (4096*10)
  7. #define TIME_INTERVAL (100)
  8. #define LEAK_TIMER 13
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CLeakyappDlg dialog
  11. class CLeakyappDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CLeakyappDlg(CWnd* pParent = NULL); // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CLeakyappDlg)
  18. enum { IDD = IDD_LEAKYAPP_DIALOG };
  19. // NOTE: the ClassWizard will add data members here
  20. //}}AFX_DATA
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CLeakyappDlg)
  23. protected:
  24. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. protected:
  28. HICON m_hIcon;
  29. // Generated message map functions
  30. //{{AFX_MSG(CLeakyappDlg)
  31. virtual BOOL OnInitDialog();
  32. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  33. afx_msg void OnPaint();
  34. afx_msg HCURSOR OnQueryDragIcon();
  35. afx_msg void OnFreeMemory();
  36. afx_msg void OnStartStop();
  37. virtual void OnOK();
  38. afx_msg void OnDestroy();
  39. afx_msg void OnTimer(UINT nIDEvent);
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. void SetMemUsageBar ();
  43. // class member variables
  44. MEMORY_ALLOC_BLOCK m_mabListHead;
  45. BOOL m_bRunning;
  46. UINT_PTR m_TimerId;
  47. };