Skip to content

Instantly share code, notes, and snippets.

View wiljdaws's full-sized avatar

Dawson J. Williams wiljdaws

View GitHub Profile
@wiljdaws
wiljdaws / krabby_patty.ps1
Created June 7, 2024 12:36
rick roll and shutdown
Add-Type -TypeDefinition @'
using System.Runtime.InteropServices;
[Guid("5CDF2C82-841E-4546-9722-0CF74078229A"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
interface IAudioEndpointVolume {
int f(); int g(); int h(); int i();
int SetMasterVolumeLevelScalar(float fLevel, System.Guid pguidEventContext);
int j();
int GetMasterVolumeLevelScalar(out float pfLevel);
}