Skip to content

Instantly share code, notes, and snippets.

View rounk-ctrl's full-sized avatar
🗣️

Rounak rounk-ctrl

🗣️
View GitHub Profile
@echo off
:: https://privacy.sexy — v0.11.4 — Sun, 15 Jan 2023 10:23:12 GMT
:: Ensure admin privileges
fltmc >nul 2>&1 || (
echo Administrator privileges are required.
PowerShell Start -Verb RunAs '%0' 2> nul || (
echo Right-click on the script and select "Run as administrator".
pause & exit 1
)
exit 0
@rounk-ctrl
rounk-ctrl / dishery.cs
Last active July 8, 2023 19:14
dishery
using System.IO;
using System.Media;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
using (var stream = new MemoryStream())
@rounk-ctrl
rounk-ctrl / Dark.md
Last active April 7, 2024 16:00
Win32 Dark Mode

Dark Mode APIs.

API Signatures.

ShouldAppsUseDarkMode()

Checks whether system is using dark mode or not.
Signature:

using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132

AllowDarkModeForWindow(In HWND hWnd, In bool allow)