📄 processkillerdlg.h
字号:
// ProcessKillerDlg.h : header file
//
#if !defined(AFX_PROCESSKILLERDLG_H__12C6D7AD_5C20_4A22_B6A6_C20B7B905A19__INCLUDED_)
#define AFX_PROCESSKILLERDLG_H__12C6D7AD_5C20_4A22_B6A6_C20B7B905A19__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CProcessKillerDlg dialog
//自定义托盘图标的回调消息
#define MYWM_NOTIFYICON (WM_USER+100)
typedef struct PKParmListTag
{
HANDLE hEventStart;
HANDLE hEventFinish;
char szName[255];
UINT nInverval;
} PKParamList,*PPKParmList;
class CProcessKillerDlg : public CDialog
{
// Construction
public:
CProcessKillerDlg(CWnd* pParent = NULL); // standard constructor
static DWORD GetProcessIdFromName(LPCTSTR name);
HANDLE m_Thread;
PKParamList *m_pkParamList;
static unsigned __stdcall ProcessKillerThread(LPVOID lparam);
// Dialog Data
//{{AFX_DATA(CProcessKillerDlg)
enum { IDD = IDD_PROCESSKILLER_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CProcessKillerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
private:
BOOL m_bRunning;
BOOL AddNotifyIcon(UINT Icon,LPCTSTR sztip, UINT ID=120);
BOOL DeleteNotifyIcon(UINT Icon,LPCTSTR sztip, UINT ID=120);
BOOL ModifyNotifyIcon(UINT Icon,LPCTSTR sztip, UINT ID=120);
void StopThread();
BOOL StartThread();
protected:
// Generated message map functions
//{{AFX_MSG(CProcessKillerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDestroy();
afx_msg void OnQuit();
afx_msg void OnAbout();
afx_msg void OnSetting();
afx_msg void OnStart();
afx_msg void OnStop();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PROCESSKILLERDLG_H__12C6D7AD_5C20_4A22_B6A6_C20B7B905A19__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -