|
27 | 27 | * |
28 | 28 | * |
29 | 29 | * ============================== SECTIONS ================================== |
30 | | - * - enums for publicly accessible techniques => line 555 |
31 | | - * - struct for internal cpu operations => line 739 |
32 | | - * - struct for internal memoization => line 1210 |
33 | | - * - struct for internal utility functions => line 1334 |
34 | | - * - struct for internal core components => line 9950 |
35 | | - * - start of VM detection technique list => line 2361 |
36 | | - * - start of public VM detection functions => line 10614 |
37 | | - * - start of externally defined variables => line 11553 |
| 30 | + * - enums for publicly accessible techniques => line 551 |
| 31 | + * - struct for internal cpu operations => line 734 |
| 32 | + * - struct for internal memoization => line 1206 |
| 33 | + * - struct for internal utility functions => line 1330 |
| 34 | + * - struct for internal core components => line 9946 |
| 35 | + * - start of VM detection technique list => line 2357 |
| 36 | + * - start of public VM detection functions => line 10610 |
| 37 | + * - start of externally defined variables => line 11549 |
38 | 38 | * |
39 | 39 | * |
40 | 40 | * ============================== EXAMPLE =================================== |
|
368 | 368 | #include <mmsystem.h> |
369 | 369 | #include <dxgi.h> |
370 | 370 | #include <d3d9.h> |
371 | | -#include <d3d11.h> |
372 | | -#include <d3d12.h> |
373 | 371 |
|
374 | 372 | #pragma comment(lib, "winmm.lib") |
375 | 373 | #pragma comment(lib, "setupapi.lib") |
|
383 | 381 | #pragma comment(lib, "uuid.lib") |
384 | 382 | #pragma comment(lib, "ntdll.lib") |
385 | 383 | #pragma comment(lib, "powrprof.lib") |
386 | | -#pragma comment(lib, "d3d9.lib") |
387 | | -#pragma comment(lib, "d3d11.lib") |
388 | | -#pragma comment(lib, "d3d12.lib") |
389 | 384 | #pragma comment(lib, "dxgi.lib") |
| 385 | +#pragma comment(lib, "d3d9.lib") |
390 | 386 |
|
391 | 387 | #elif (LINUX) |
392 | 388 | #if (x86) |
@@ -7704,9 +7700,9 @@ struct VM { |
7704 | 7700 |
|
7705 | 7701 | #if (WINDOWS) |
7706 | 7702 | constexpr u16 qpcRatioThreshold = 70; // QPC ratio threshold |
| 7703 | +#endif |
7707 | 7704 | constexpr u8 tscIterations = 10; // Number of iterations for the TSC synchronization check |
7708 | 7705 | constexpr u16 tscSyncDiffThreshold = 5000; // TSC difference threshold |
7709 | | -#endif |
7710 | 7706 |
|
7711 | 7707 | // to minimize context switching/scheduling |
7712 | 7708 | #if (WINDOWS) |
|
0 commit comments