Files
2022-10-26 12:25:11 +08:00

59 lines
1.2 KiB
C++

// MemStatConfigDlg.h : 헤더 파일
//
#pragma once
#include <Winsvc.h>
#include <io.h>
#include "ServiceScriptInfo.h"
#include "afxwin.h"
// CServiceInstallerDlg 대화 상자
class CServiceInstallerDlg : public CDialog
{
// 생성
public:
CServiceInstallerDlg(CWnd* pParent = NULL); // 표준 생성자
// 대화 상자 데이터
enum { IDD = IDD_MEMSTATCONFIG_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원
// 구현
protected:
HICON m_hIcon;
// 메시지 맵 함수를 생성했습니다.
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedBtnInstall();
afx_msg void OnBnClickedBtnUninstall();
afx_msg void OnBnClickedOk();
void DispCurStatus();
CString m_strEditExplaination;
CString m_strNowStatus;
CServiceScriptInfo m_info;
int m_nComboIdx;
CString m_strServiceName;
CComboBox m_comboService;
CComboBox m_comboServiceType;
afx_msg void OnCbnSelchangeComboService();
void InitServiceCombo(void);
BOOL InstallService( int nAppNum, int nServiceType = 0 );
BOOL UnInstallService( int nAppNum );
afx_msg void OnCbnSelchangeComboServiceType();
int m_nServiceType;
};