This file contains 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 <Unknwn.h> | |
#include <Windows.h> | |
#include <wrl\implements.h> | |
#include <comutil.h> | |
#include <dcomp.h> | |
#include <dwmapi.h> | |
#include <dxgi1_3.h> | |
#include <d3d11_2.h> | |
#include <d2d1_2.h> | |
#include <d2d1_2helper.h> |
This file contains 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 <winrt/Windows.System.h> | |
winrt::Windows::System::DispatcherQueue CreateDispatcherQueue() | |
{ | |
auto coreMsgLib = LoadLibrary(L"CoreMessaging.dll"); | |
typedef HRESULT(WINAPI* CreateDispatcherQueueForCurrentThread)( | |
_Deref_out_ ABI::Windows::System::IDispatcherQueue** dispatcherQueueController); | |
auto pCreateDispatcherQueueForCurrentThread = |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SecurityManager] | |
"InternalDevUnlock"=dword:00000001 |
This file contains 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
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <mutex> | |
//INSTALL DETOURS FROM NUGET! (or build from source yourself) | |
#include <detours.h> | |
//Definitions | |
typedef BOOL(WINAPI* SetWindowBand)(IN HWND hWnd, IN HWND hwndInsertAfter, IN DWORD dwBand); | |
typedef BOOL(WINAPI* NtUserEnableIAMAccess)(IN ULONG64 key, IN BOOL enable); |
This file contains 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 <Unknwn.h> | |
#include <Windows.h> | |
#include <ntstatus.h> | |
#include <winternl.h> | |
#include <wrl\implements.h> | |
#include <comutil.h> | |
#include <dcomp.h> | |
#include <dwmapi.h> | |
#include <dxgi1_3.h> | |
#include <d3d11_2.h> |
This file contains 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
//!!!!!!!!!!!!!! | |
//Thanks to @thebookisclosed for the code. I just rearranged in a way so you can access without having to use the registry | |
//HINT about compatibility: they CANNOT change feature keys otherwise existing apps would break | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
using Windows.ApplicationModel; |
This file contains 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
using System; | |
using System.Runtime.InteropServices; | |
using Microsoft.Win32; | |
class Program | |
{ | |
[DllImport("user32.dll", SetLastError = true)] | |
static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam); | |
static void Main(string[] args) |
This file contains 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
using System; | |
using System.Runtime.InteropServices; | |
namespace ShutUpEdgeUI | |
{ | |
class Program | |
{ | |
[DllImport("user32.dll")] | |
public static extern bool GetClientRect(IntPtr hwnd, ref Rect rectangle); |
This file contains 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
using System; | |
using System.Runtime.InteropServices; | |
class Program | |
{ | |
[DllImport("user32.dll")] | |
static extern bool SystemParametersInfo(uint uiAction, uint uiParam, IntPtr pvParam, uint val); | |
static void Main() => SystemParametersInfo(0x009F, 0, IntPtr.Zero, 1); | |
} |
This file contains 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 "pch.h" | |
#pragma comment(lib, "gdi32.lib") | |
enum ZBID | |
{ | |
ZBID_DEFAULT = 0, | |
ZBID_DESKTOP = 1, | |
ZBID_UIACCESS = 2, | |
ZBID_IMMERSIVE_IHM = 3, | |
ZBID_IMMERSIVE_NOTIFICATION = 4, |
NewerOlder