summaryrefslogtreecommitdiff
path: root/bin/win32/BINDInstall
diff options
context:
space:
mode:
authorInternet Software Consortium, Inc <@isc.org>2007-09-07 14:13:55 -0600
committerLaMont Jones <lamont@debian.org>2007-09-07 14:13:55 -0600
commitdc4714745a0f681fe0b41145770f1da6aef87e28 (patch)
tree76fd4dae38971b50120b694112a4a0015058c8e3 /bin/win32/BINDInstall
parent24d2b28ba91873aac6966fae8a528234108289ee (diff)
downloadbind9-dc4714745a0f681fe0b41145770f1da6aef87e28.tar.gz
9.2.0rc10
Diffstat (limited to 'bin/win32/BINDInstall')
-rw-r--r--bin/win32/BINDInstall/BINDInstallDlg.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/bin/win32/BINDInstall/BINDInstallDlg.cpp b/bin/win32/BINDInstall/BINDInstallDlg.cpp
index 3f86cf99..b8c2c8ce 100644
--- a/bin/win32/BINDInstall/BINDInstallDlg.cpp
+++ b/bin/win32/BINDInstall/BINDInstallDlg.cpp
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: BINDInstallDlg.cpp,v 1.6 2001/07/31 00:03:13 gson Exp $ */
+/* $Id: BINDInstallDlg.cpp,v 1.6.2.1 2001/08/30 20:27:55 gson Exp $ */
/*
* Copyright (c) 1999-2000 by Nortel Networks Corporation
@@ -191,29 +191,6 @@ BOOL CBINDInstallDlg::OnInitDialog()
{
CDialog::OnInitDialog();
- HANDLE hToken;
- TOKEN_PRIVILEGES tkp;
- BOOL adjustedPrivileges = FALSE;
-
- if(OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))
- {
- LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid);
- tkp.PrivilegeCount = 1;
- tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
-
- AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, (PTOKEN_PRIVILEGES)NULL, 0);
-
- if(GetLastError() == ERROR_SUCCESS)
- {
- adjustedPrivileges = TRUE;
- }
- }
-
- if(!adjustedPrivileges)
- {
- MsgBox(IDS_BAD_PRIVILEGES, MB_OK);
- EndDialog(1);
- }
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon