"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/bin/win32/BINDInstall/BINDInstallDlg.h" (7 Sep 2020, 3482 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "BINDInstallDlg.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Portions Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 
   13 /*
   14  * Copyright (c) 1999-2000 by Nortel Networks Corporation
   15  *
   16  * Permission to use, copy, modify, and distribute this software for any
   17  * purpose with or without fee is hereby granted, provided that the above
   18  * copyright notice and this permission notice appear in all copies.
   19  *
   20  * THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS
   21  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
   22  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS
   23  * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
   24  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
   25  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
   26  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
   27  * SOFTWARE.
   28  */
   29 
   30 #ifndef BINDINSTALLDLG_H
   31 #define BINDINSTALLDLG_H
   32 
   33 class CBINDInstallDlg : public CDialog
   34 {
   35 public:
   36     CBINDInstallDlg(CWnd* pParent = NULL);  // standard constructor
   37 
   38     //{{AFX_DATA(CBINDInstallDlg)
   39     enum { IDD = IDD_BINDINSTALL_DIALOG };
   40     CString m_targetDir;
   41     CString m_version;
   42     BOOL    m_autoStart;
   43     BOOL    m_keepFiles;
   44     BOOL    m_toolsOnly;
   45     CString m_current;
   46     BOOL    m_startOnInstall;
   47     //}}AFX_DATA
   48 
   49     // ClassWizard generated virtual function overrides
   50     //{{AFX_VIRTUAL(CBINDInstallDlg)
   51     protected:
   52     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
   53     //}}AFX_VIRTUAL
   54 
   55 protected:
   56     void StartBINDService();
   57     void StopBINDService();
   58 
   59     void InstallTags();
   60     void UninstallTags();
   61 
   62     void CreateDirs();
   63     void RemoveDirs(BOOL uninstall);
   64 
   65     void ReadInstallFlags();
   66     void ReadInstallFileList();
   67 
   68     void CopyFiles();
   69     void DeleteFiles(BOOL uninstall);
   70 
   71     void RegisterService();
   72     void UpdateService(CString StartName);
   73     void UnregisterService(BOOL uninstall);
   74 
   75     void RegisterMessages();
   76     void UnregisterMessages(BOOL uninstall);
   77 
   78     void FailedInstall();
   79     void SetItemStatus(UINT nID, BOOL bSuccess = TRUE);
   80 
   81     void GetCurrentServiceAccountName();
   82     BOOL ValidateServiceAccount();
   83 protected:
   84     CString DestDir(int destination);
   85     int MsgBox(int id,  ...);
   86     int MsgBox(int id, UINT type, ...);
   87     CString GetErrMessage(DWORD err = -1);
   88     BOOL CheckBINDService();
   89     void SetCurrent(int id, ...);
   90     void ProgramGroup(BOOL create = TRUE);
   91     void ProgramGroupCreate(TCHAR *commonPath);
   92     void ProgramGroupRemove(TCHAR *commonPath);
   93 
   94     HICON m_hIcon;
   95     CString m_defaultDir;
   96     CString m_etcDir;
   97     CString m_binDir;
   98     CString m_winSysDir;
   99     BOOL m_installed;
  100     CString m_currentDir;
  101     BOOL    m_accountExists;
  102     BOOL    m_accountUsed;
  103     CString m_currentAccount;
  104     CString m_accountName;
  105     CString m_accountPasswordConfirm;
  106     CString m_accountPassword;
  107     BOOL    m_serviceExists;
  108 
  109     // Generated message map functions
  110     //{{AFX_MSG(CBINDInstallDlg)
  111     virtual BOOL OnInitDialog();
  112     afx_msg void OnPaint();
  113     afx_msg HCURSOR OnQueryDragIcon();
  114     afx_msg void OnBrowse();
  115     afx_msg void OnChangeTargetdir();
  116     afx_msg void OnInstall();
  117     afx_msg void OnExit();
  118     afx_msg void OnUninstall();
  119     afx_msg void OnAutoStart();
  120     afx_msg void OnKeepFiles();
  121     afx_msg void OnStartOnInstall();
  122     //}}AFX_MSG
  123     DECLARE_MESSAGE_MAP()
  124 };
  125 
  126 #endif