User:Podbrushkin/PowerShell

Advanced Display Settings
This method should be called somehow:
 * https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-setdevicegammaramp
 * https://www.autoitscript.com/forum/topic/127668-tinybrightnesscontroler-v-1002/
 * https://superuser.com/a/383481
 * https://github.com/jonls/redshift/blob/master/src/gamma-w32gdi.c
 * https://justgetflux.com/
 * http://jonls.dk/2010/09/windows-gamma-adjustments/
 * https://microtools4u-monitor-plus.en.softonic.com/

Windows API
There are several ways you can access Windows API through PowerShell. Some of them are explained here: Another one - is through C#:
 * https://devblogs.microsoft.com/scripting/use-powershell-to-interact-with-the-windows-api-part-2/
 * https://devblogs.microsoft.com/scripting/use-powershell-to-interact-with-the-windows-api-part-1/
 * https://eddiejackson.net/lab/2022/07/15/powershell-detect-autoscaling/

1. Create :
 * This function will help you to find a Windows API method you need.

2. Get WinAPI method and invoke it:
 * line 2: Replace  with   of wanted method you found with Find-WinAPIFunction;
 * line 3: Replace  with name of the method you want to invoke.
 * line 4: Pass your own arguments.