This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
# Unlock-PowerCfg - v22.05.11 | |
# Disable "Connected Standby" | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force | |
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide | |
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$' | |
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdint.h> | |
uint8_t* findPattern(const char* data, size_t size) | |
{ | |
SYSTEM_INFO systemInfo; | |
GetNativeSystemInfo(&systemInfo); | |
for (uint8_t* p = (uint8_t*)systemInfo.lpMinimumApplicationAddress; p < (uint8_t*)systemInfo.lpMaximumApplicationAddress; p++) { | |
__try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Release/Debug: | |
General -> Whole Program Optimization -> No Whole Program Optimization | |
Linker -> Input -> Ignore All Default Libraries = Yes | |
Linker -> Manifest File -> Generate Manifest = Disabled | |
Linker -> Advanced -> Entry Point = (set EntryPointName) | |
C/C++ -> Code Generation -> Security Check = Disable Security Check | |
C/C++ -> Optimization -> Optimization = Disabled | |
C/C++ -> General -> SDL checks = (remove value) | |
C/C++ -> Advanced -> Compile As = Compile as C Code (if need C90) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..\configure -opensource -confirm-license -static -static-runtime -release -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -make libs -no-icu -no-compile-examples -nomake examples^ | |
-openssl-linked OPENSSL_LIBS="-lssleay32 -llibeay32 -lgdi32 -lUser32" -L G:\OpenSSL\OpenSSL-win32\lib -I G:\OpenSSL\OpenSSL-win32\include^ | |
-prefix G:\QTSrc\Qt5.7.1-x32-static-ssl |