my $GetDesktopWindow = Win32::API->new( "user32", "GetDesktopWindow", "", "N" ); my $GetWindow = Win32::API->new( "user32", "GetWindow", "NN", "N" ); my $IsWindowVisible = Win32::API->new( "user32", "IsWindowVisible", "N", "L" );