aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 04:09:26 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 04:09:26 +0300
commit41736c374eb4e6a9ac9b654a42295913a8e929b1 (patch)
treedf43b99107cbd15d82f1b838657c34f63a5adaf9
parentadd MinGW-w64 settings to CMakeLists.txt (diff)
downloadprivilege-check-41736c374eb4e6a9ac9b654a42295913a8e929b1.tar.gz
privilege-check-41736c374eb4e6a9ac9b654a42295913a8e929b1.zip
add README
Diffstat (limited to '')
-rw-r--r--README.md53
1 files changed, 53 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..4f3156e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,53 @@
+Privilege check
+===============
+
+Check your privilege. On Windows.
+
+Displays a window, showing
+
+* if the current user belongs to the BUILTIN\Administrators group,
+* whether the process is "run as Administrator",
+* if it has elevated privileges,
+* process's "integrity level".
+
+If it's not "run as Administrator", a button allows to actually re-run the
+executable as Administrator, utilizing Windows' User Account Control feature.
+
+Building
+--------
+
+Create the build files using CMake and build using your native build tools
+(Visual Studio/make/etc.).
+
+For example, using Visual Studio Community 2015 Update 3 (targetting x86-64):
+
+ > cd
+ D:\workspace\build\privilege-check\msvc
+
+ > cmake -G "Visual Studio 14 2015 Win64" D:\workspace\personal\privilege-check
+ ...
+
+ > cmake --build . --config release
+ ...
+
+Another example, using Cygwin + MinGW-w64 + `make` (again, targetting x86-64):
+
+ > pwd
+ /cygdrive/d/workspace/build/privilege-check/mingw/release
+
+ > cmake -G "Unix Makefiles" \
+ -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
+ -D CMAKE_BUILD_TYPE=Release \
+ /cygdrive/d/workspace/personal/privilege-test
+ ...
+
+ > cmake --build .
+ ...
+
+License
+-------
+
+Distributed under the MIT License.
+See [LICENSE.txt] for details.
+
+[LICENSE.txt]: LICENSE.txt