List running applications on Win32

Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default List running applications on Win32

    Dear All

    Can someone tell me how to get a list of running applications on
    Win32?
    I am essentially looking to get the same list as appears in the
    Applications tab of the Windows Task Manager. I can easily get the
    equivalent of the Processes tab in Windows Task Manager (using
    Win32::Setupsup or Win32::IProc) but I can't seem to find a way to
    retrieve only the running applications.

    Thanks

    Flibble
    Francis Guest

  2. Similar Questions and Discussions

    1. Running Java applications with CF applications
      Is anyone out there running both Java and CF apps on their CFMX 7 J2EE Enterprise Server? I was going to migrate the Java apps to CF7 to avoid a...
    2. Running Windows Applications Via World Wide Web
      Hello, I apologize for my lack of knowledge in this area, or if this is the incorrect group to make this post in. I am designing a website for...
    3. web applications versus. web portal applications
      I came across a new term "web portal applications." Anyone can tell me what's the differences between web portal applications versus traditional...
    4. Running 8 bit applications in 24 depth screen?
      Is it possible to run a 8 bit color application in X with depth set to 24 bit? Thanks in advance, --- Paladin --
    5. windowmaker not showing icons for running applications
      Hi When running most applications in wmaker, the application icons are not displayed - instead the default icon is being displayed. e.g mozilla,...
  3. #2

    Default Re: List running applications on Win32

    co.uk (Francis Libble) wrote in message news:<google.com>...

    Nevermind, after much gnashing of teeth:

    use Win32::Setupsup;

    Win32::Setupsup::EnumWindows(\@windowlist) or
    die "process list error: ".Win32::Setupsup::GetLastError( )."\n";

    foreach $whandle (@windowlist)
    {
    if (Win32::Setupsup::GetWindowProperties($whandle,[visible,text,pid],\%winprop))
    {
    if ($winprop{visible} == 1)
    {
    my $wintitle = $winprop{text};
    unless($wintitle eq "" || $wintitle eq "Program Manager")
    {
    print "$wintitle:$winprop{pid}\n";
    }
    }
    }
    else
    {
    warn "Can't get text for $whandle" .
    Win32::Setupsup::GetLastError( )."\n";
    }
    }
    Francis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139