summaryrefslogtreecommitdiff
path: root/shared/privilege.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
commit9cc790869ed3905c78c7eeeb0bb44f800b3f2af4 (patch)
tree1c085bbf2302be294866c4fc6e0d225f8abbc346 /shared/privilege.cpp
parent3.14 (diff)
downloadFreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.gz
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.bz2
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.zip
3.15
Diffstat (limited to 'shared/privilege.cpp')
-rw-r--r--shared/privilege.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/shared/privilege.cpp b/shared/privilege.cpp
index 00eb2855..5cb664e1 100644
--- a/shared/privilege.cpp
+++ b/shared/privilege.cpp
@@ -1,7 +1,6 @@
#include "privilege.h"
-#include <wx/intl.h>
#include "system_func.h"
-//#include <boost/shared_ptr.hpp>
+#include "i18n.h"
#include "loki/ScopeGuard.h"
using namespace ffs3;
@@ -14,7 +13,7 @@ Privileges& Privileges::getInstance()
}
-bool Privileges::privilegeIsActive(LPCTSTR privilege) //throw FileError()
+bool Privileges::privilegeIsActive(LPCTSTR privilege) //throw (FileError)
{
HANDLE hToken = NULL;
if (!::OpenProcessToken(::GetCurrentProcess(), //__in HANDLE ProcessHandle,
@@ -58,7 +57,7 @@ bool Privileges::privilegeIsActive(LPCTSTR privilege) //throw FileError()
}
-void Privileges::setPrivilege(LPCTSTR privilege, bool enable) //throw FileError()
+void Privileges::setPrivilege(LPCTSTR privilege, bool enable) //throw (FileError)
{
HANDLE hToken = NULL;
if (!::OpenProcessToken(::GetCurrentProcess(), //__in HANDLE ProcessHandle,
bgstack15