Skip to content

Instantly share code, notes, and snippets.

View 0x7c13's full-sized avatar

Jiaqi Liu 0x7c13

  • Microsoft
  • Bellevue
View GitHub Profile
@rounk-ctrl
rounk-ctrl / Dark.md
Last active March 7, 2026 17:32
Win32 Dark Mode

Dark Mode

How to use the newly added dark mode system added in recent Windows 11 builds. They added a dark mode variant of almost every control.

API Signatures.

ShouldAppsUseDarkMode

Whether apps should use dark mode or not.

typedef bool (WINAPI* ShouldAppsUseDarkMode_t)(); // ordinal 132
@dknoodle
dknoodle / Windows Defender Exclusions VS 2017.ps1
Last active February 27, 2025 07:27
Adds Windows Defender exclusions for Visual Studio 2017
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null