mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-23 07:47:24 -05:00

Condition is comparing $proc.Id with [System.IntPtr]::Zero. The Id property is an integer, representing the process ID, and it's not directly related to window handles. Instead, you should compare the MainWindowHandle property against [System.IntPtr]::Zero