1 2 3 4 5 6 7 |
$Win32API = Add-Type -Name Funcs3 -Namespace Win32 -PassThru -MemberDefinition @' [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr FindWindow(IntPtr lpClassName, string lpWindowName); '@ $Win32API::FindWindow([IntPtr]::Zero, 'Mi formulario') |