PC Review


Reply
Thread Tools Rate Thread

activate a running process - how??????

 
 
Christian Rattat
Guest
Posts: n/a
 
      27th Sep 2004
Hi,

I got the following problem:

Like the pocket pc memory management application I want to activate a
program from my application. I wrote some kind of task manager app
which works fine so far. I get all running processes, their handles,
pids and the main window handles as well.

Theoretically that's all I need to activate a process. I tried

- BringWindowToTop(hwnd);
- SetForegroundWindow(hwnd);
- ShowWindow(hwnd, SW_SHOW); (and SW_SHOWNORMAL aso)
- SetActiveWindow(hwnd);


Sometimes it works, e.g. if my app is running and I start e.g. the
media player, then switch back to my app, select media player task and
activate, evth. works. If I press the X button of media player then
the same procedure does not work.

Am I missing something here? Anybody knows how to activate a process?

Thanks,
Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activate a running process? =?Utf-8?B?TWFyaw==?= Microsoft Dot NET Compact Framework 5 27th Oct 2005 07:59 AM
System.Diagnostics.Process.Start problem when the process is already running Bob Trabucco Microsoft Dot NET Framework 3 25th May 2005 02:38 PM
How to count process running time ( process not finished) =?Utf-8?B?bWlhbyBqaWU=?= Microsoft Excel Programming 0 13th Jan 2005 09:23 AM
How to count process running time ( process not finished) =?Utf-8?B?bWlhbyBqaWU=?= Microsoft Excel Programming 2 12th Jan 2005 06:01 AM
Activate other process Bsiang Tan Microsoft C# .NET 1 29th Oct 2003 05:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 PM.