-
Notifications
You must be signed in to change notification settings - Fork 0
/
DriverLoaderDlg.h
59 lines (51 loc) · 1.22 KB
/
DriverLoaderDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Driver LoaderDlg.h: 头文件
//
#pragma once
#include <winsvc.h>
// CDriverLoaderDlg 对话框
class CDriverLoaderDlg : public CDialogEx
{
// 构造
public:
CDriverLoaderDlg(CWnd* pParent = nullptr); // 标准构造函数
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DRIVER_LOADER_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButton3();
CEdit m_ctl_path;
CButton m_ctl_browse;
CButton m_ctl_install;
CButton m_ctl_start;
CButton m_ctl_stop;
CButton m_ctl_uninstall;
CStatic m_ctl_tip;
afx_msg void OnBnClickedButton2();
afx_msg void OnDropFiles(HDROP hDropInfo);
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton6();
public:
SC_HANDLE m_sc_manager;
SC_HANDLE m_sc_service;
wchar_t m_sys_path[MAX_PATH];
wchar_t m_sys_name[MAX_PATH];
void allowInstall();
void alreadyInstalled();
void alreadyStart();
void alreadyStop();
void alreadyUninstall();
afx_msg void OnClose();
};