1 /* $NetBSD: BINDInstallDlg.h,v 1.4 2014/12/10 04:37:55 christos Exp $ */
4 * Portions Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
5 * Portions Copyright (C) 2001 Internet Software Consortium.
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
20 /* Id: BINDInstallDlg.h,v 1.11 2009/09/01 06:51:47 marka Exp */
23 * Copyright (c) 1999-2000 by Nortel Networks Corporation
25 * Permission to use, copy, modify, and distribute this software for any
26 * purpose with or without fee is hereby granted, provided that the above
27 * copyright notice and this permission notice appear in all copies.
29 * THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS
30 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
31 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS
32 * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
33 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
34 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
35 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
39 #ifndef BINDINSTALLDLG_H
40 #define BINDINSTALLDLG_H
42 class CBINDInstallDlg
: public CDialog
45 CBINDInstallDlg(CWnd
* pParent
= NULL
); // standard constructor
47 //{{AFX_DATA(CBINDInstallDlg)
48 enum { IDD
= IDD_BINDINSTALL_DIALOG
};
55 BOOL m_startOnInstall
;
58 // ClassWizard generated virtual function overrides
59 //{{AFX_VIRTUAL(CBINDInstallDlg)
61 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
65 void StartBINDService();
66 void StopBINDService();
72 void RemoveDirs(BOOL uninstall
);
75 void DeleteFiles(BOOL uninstall
);
77 void RegisterService();
78 void UpdateService(CString StartName
);
79 void UnregisterService(BOOL uninstall
);
81 void RegisterMessages();
82 void UnregisterMessages(BOOL uninstall
);
85 void SetItemStatus(UINT nID
, BOOL bSuccess
= TRUE
);
87 void GetCurrentServiceAccountName();
88 BOOL
ValidateServiceAccount();
90 CString
DestDir(int destination
);
91 int MsgBox(int id
, ...);
92 int MsgBox(int id
, UINT type
, ...);
93 CString
GetErrMessage(DWORD err
= -1);
94 BOOL
CheckBINDService();
95 void SetCurrent(int id
, ...);
96 void ProgramGroup(BOOL create
= TRUE
);
104 CString m_currentDir
;
105 BOOL m_accountExists
;
107 CString m_currentAccount
;
108 CString m_accountName
;
109 CString m_accountPasswordConfirm
;
110 CString m_accountPassword
;
111 BOOL m_serviceExists
;
113 // Generated message map functions
114 //{{AFX_MSG(CBINDInstallDlg)
115 virtual BOOL
OnInitDialog();
116 afx_msg
void OnPaint();
117 afx_msg HCURSOR
OnQueryDragIcon();
118 afx_msg
void OnBrowse();
119 afx_msg
void OnChangeTargetdir();
120 afx_msg
void OnInstall();
121 afx_msg
void OnExit();
122 afx_msg
void OnUninstall();
123 afx_msg
void OnAutoStart();
124 afx_msg
void OnKeepFiles();
125 afx_msg
void OnStartOnInstall();
127 DECLARE_MESSAGE_MAP()