aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-09-16 01:47:56 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-09-16 01:47:56 +0300
commitfbd6445c68745d484d5df8c75b0c12054185958f (patch)
treec8eb6da6b89d88f530647f408fd2c47669e1bb27
parent.hpp instead of .h for C++ headers (diff)
downloadprivilege-check-fbd6445c68745d484d5df8c75b0c12054185958f.tar.gz
privilege-check-fbd6445c68745d484d5df8c75b0c12054185958f.zip
move source files to src/
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt6
-rw-r--r--src/error.hpp (renamed from error.hpp)0
-rw-r--r--src/handle.hpp (renamed from handle.hpp)0
-rw-r--r--src/main.cpp (renamed from main.cpp)0
-rw-r--r--src/main.rc (renamed from main.rc)224
-rw-r--r--src/os.hpp (renamed from os.hpp)0
-rw-r--r--src/process.hpp (renamed from process.hpp)0
-rw-r--r--src/resource_ids.h (renamed from resource_ids.h)46
-rw-r--r--src/sid.hpp (renamed from sid.hpp)0
-rw-r--r--src/token.hpp (renamed from token.hpp)0
10 files changed, 138 insertions, 138 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d01997b..3b9aabf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,8 @@
project(privilege_test)
-file(GLOB ${PROJECT_NAME}_source_files "*.cpp")
-file(GLOB ${PROJECT_NAME}_header_files "*.h" "*.hpp")
-file(GLOB ${PROJECT_NAME}_resource_files "*.rc")
+file(GLOB ${PROJECT_NAME}_source_files "src/*.cpp")
+file(GLOB ${PROJECT_NAME}_header_files "src/*.h" "src/*.hpp")
+file(GLOB ${PROJECT_NAME}_resource_files "src/*.rc")
add_executable(${PROJECT_NAME} WIN32
${${PROJECT_NAME}_source_files}
${${PROJECT_NAME}_header_files}
diff --git a/error.hpp b/src/error.hpp
index 2ea7f85..2ea7f85 100644
--- a/error.hpp
+++ b/src/error.hpp
diff --git a/handle.hpp b/src/handle.hpp
index 5f83f24..5f83f24 100644
--- a/handle.hpp
+++ b/src/handle.hpp
diff --git a/main.cpp b/src/main.cpp
index 1777d79..1777d79 100644
--- a/main.cpp
+++ b/src/main.cpp
diff --git a/main.rc b/src/main.rc
index f98abe4..70c04e5 100644
--- a/main.rc
+++ b/src/main.rc
@@ -1,112 +1,112 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource_ids.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#define APSTUDIO_HIDDEN_SYMBOLS
-#include "windows.h"
-#undef APSTUDIO_HIDDEN_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (United States) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_MAINDIALOG DIALOGEX 0, 0, 120, 79
-STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Privilege test"
-FONT 8, "MS Shell Dlg", 0, 0, 0x1
-BEGIN
- LTEXT "Administrator?",IDC_STATIC,7,7,75,12
- RTEXT "",IDC_ADMINISTRATOR,85,7,28,12
- LTEXT "Run as administrator?",IDC_STATIC,7,19,75,12
- RTEXT "",IDC_RUN_AS_ADMINISTRATOR,85,19,28,12
- LTEXT "Elevated?",IDC_STATIC,7,31,75,12
- RTEXT "",IDC_ELEVATED,85,31,28,12
- LTEXT "Integrity level:",IDC_STATIC,7,43,75,12
- RTEXT "",IDC_INTEGRITY_LEVEL,85,43,28,15
- PUSHBUTTON "Elevate",IDC_BUTTON_ELEVATE,63,58,50,14
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO
-BEGIN
- IDD_MAINDIALOG, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 113
- VERTGUIDE, 82
- VERTGUIDE, 85
- TOPMARGIN, 7
- BOTTOMMARGIN, 72
- HORZGUIDE, 19
- HORZGUIDE, 31
- HORZGUIDE, 43
- HORZGUIDE, 58
- END
-END
-#endif // APSTUDIO_INVOKED
-
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "resource_ids.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
- "#include ""windows.h""\r\n"
- "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-#endif // English (United States) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource_ids.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#define APSTUDIO_HIDDEN_SYMBOLS
+#include "windows.h"
+#undef APSTUDIO_HIDDEN_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_MAINDIALOG DIALOGEX 0, 0, 120, 79
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Privilege test"
+FONT 8, "MS Shell Dlg", 0, 0, 0x1
+BEGIN
+ LTEXT "Administrator?",IDC_STATIC,7,7,75,12
+ RTEXT "",IDC_ADMINISTRATOR,85,7,28,12
+ LTEXT "Run as administrator?",IDC_STATIC,7,19,75,12
+ RTEXT "",IDC_RUN_AS_ADMINISTRATOR,85,19,28,12
+ LTEXT "Elevated?",IDC_STATIC,7,31,75,12
+ RTEXT "",IDC_ELEVATED,85,31,28,12
+ LTEXT "Integrity level:",IDC_STATIC,7,43,75,12
+ RTEXT "",IDC_INTEGRITY_LEVEL,85,43,28,15
+ PUSHBUTTON "Elevate",IDC_BUTTON_ELEVATE,63,58,50,14
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO
+BEGIN
+ IDD_MAINDIALOG, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 113
+ VERTGUIDE, 82
+ VERTGUIDE, 85
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 72
+ HORZGUIDE, 19
+ HORZGUIDE, 31
+ HORZGUIDE, 43
+ HORZGUIDE, 58
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource_ids.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "#include ""windows.h""\r\n"
+ "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+#endif // English (United States) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/os.hpp b/src/os.hpp
index 1a3c52d..1a3c52d 100644
--- a/os.hpp
+++ b/src/os.hpp
diff --git a/process.hpp b/src/process.hpp
index 864d452..864d452 100644
--- a/process.hpp
+++ b/src/process.hpp
diff --git a/resource_ids.h b/src/resource_ids.h
index 353dbd2..4c6d90f 100644
--- a/resource_ids.h
+++ b/src/resource_ids.h
@@ -1,23 +1,23 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by resource.rc
-//
-#define IDD_MAINDIALOG 100
-#define IDC_BUTTON_ELEVATE 1000
-#define IDC_ADMINISTRATOR 1001
-#define IDC_RUN_AS_ADMINISTRATOR 1002
-#define IDC_ELEVATED 1003
-#define IDC_INTEGRITY_LEVEL 1004
-#define IDC_STATIC -1
-
-// Next default values for new objects
-//
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NO_MFC 1
-#define _APS_NEXT_RESOURCE_VALUE 129
-#define _APS_NEXT_COMMAND_VALUE 32771
-#define _APS_NEXT_CONTROL_VALUE 1005
-#define _APS_NEXT_SYMED_VALUE 110
-#endif
-#endif
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by resource.rc
+//
+#define IDD_MAINDIALOG 100
+#define IDC_BUTTON_ELEVATE 1000
+#define IDC_ADMINISTRATOR 1001
+#define IDC_RUN_AS_ADMINISTRATOR 1002
+#define IDC_ELEVATED 1003
+#define IDC_INTEGRITY_LEVEL 1004
+#define IDC_STATIC -1
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NO_MFC 1
+#define _APS_NEXT_RESOURCE_VALUE 129
+#define _APS_NEXT_COMMAND_VALUE 32771
+#define _APS_NEXT_CONTROL_VALUE 1005
+#define _APS_NEXT_SYMED_VALUE 110
+#endif
+#endif
diff --git a/sid.hpp b/src/sid.hpp
index 15ce73b..15ce73b 100644
--- a/sid.hpp
+++ b/src/sid.hpp
diff --git a/token.hpp b/src/token.hpp
index 5669970..5669970 100644
--- a/token.hpp
+++ b/src/token.hpp