# Tiny P/Invoke shim so phase1_idle_baseline.ps1 can read GDI / USER handle counts. # Dot-source this before invoking the sampler. Add-Type -Namespace LeakHunt -Name User32 -MemberDefinition @' [System.Runtime.InteropServices.DllImport("User32.dll")] public static extern int GetGuiResources(System.IntPtr hProcess, int uiFlags); '@