File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 * - struct for internal cpu operations => line 742
3232 * - struct for internal memoization => line 1213
3333 * - struct for internal utility functions => line 1337
34- * - struct for internal core components => line 10065
35- * - start of VM detection technique list => line 2361
36- * - start of public VM detection functions => line 10729
37- * - start of externally defined variables => line 11675
34+ * - struct for internal core components => line 10067
35+ * - start of VM detection technique list => line 2363
36+ * - start of public VM detection functions => line 10731
37+ * - start of externally defined variables => line 11677
3838 *
3939 *
4040 * ============================== EXAMPLE ===================================
@@ -1875,6 +1875,7 @@ struct VM {
18751875 // Returns a list of running process names
18761876 [[nodiscard]] static std::unordered_set<std::string> get_running_process_names () {
18771877 std::unordered_set<std::string> processNames;
1878+ #if (WINDOWS)
18781879 DWORD processes[1024 ], bytesReturned;
18791880
18801881 if (!K32EnumProcesses (processes, sizeof (processes), &bytesReturned)) {
@@ -1893,6 +1894,7 @@ struct VM {
18931894 CloseHandle (hProcess);
18941895 }
18951896 }
1897+ #endif
18961898 return processNames;
18971899 }
18981900
Original file line number Diff line number Diff line change 5353 * - struct for internal cpu operations => line 762
5454 * - struct for internal memoization => line 1233
5555 * - struct for internal utility functions => line 1357
56- * - struct for internal core components => line 9855
57- * - start of VM detection technique list => line 2382
58- * - start of public VM detection functions => line 10519
59- * - start of externally defined variables => line 11460
56+ * - struct for internal core components => line 9857
57+ * - start of VM detection technique list => line 2384
58+ * - start of public VM detection functions => line 10521
59+ * - start of externally defined variables => line 11462
6060 *
6161 *
6262 * ============================== EXAMPLE ===================================
@@ -1895,6 +1895,7 @@ struct VM {
18951895 // Returns a list of running process names
18961896 [[nodiscard]] static std::unordered_set<std::string> get_running_process_names () {
18971897 std::unordered_set<std::string> processNames;
1898+ #if (WINDOWS)
18981899 DWORD processes[1024 ], bytesReturned;
18991900
19001901 if (!K32EnumProcesses (processes, sizeof (processes), &bytesReturned)) {
@@ -1913,6 +1914,7 @@ struct VM {
19131914 CloseHandle (hProcess);
19141915 }
19151916 }
1917+ #endif
19161918 return processNames;
19171919 }
19181920
You can’t perform that action at this time.
0 commit comments