Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to list out all running process Windows Caption?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00269739
Message ID:
00270305
Vues:
32
>>I want to make a process handler!!
>>
>>To kill the unwanted process by:
>>
>>- List out process caption, Show in a listbox
>>- FindWindow API function to get the process "hwnd"
>>- CloseWindow/DestroyWindow to close the process!!
>>
>>the last two tasks can be found in knowledge base, but how about the first task!?
>>
>Hi Justok,
>
>Look at my Is_Run32 for a reliable way of retrieving the window handle based on the known portion of a dynamic title bar. It'll also give you an idea as to how to loop through the existing windows to and retrieve their title bars. I'd also suggest that you use the IsWindowVisible() function to determine whether or not to display the window in the list. Some windows (such as the one named Program Manager) aren't visible. In this case terminating it, would (I believe) terminate Windows as well.



In others newsgrp, somebody suggest me to use: EnumWindows
but I don't know how it work on getting ALL Top-Level Window Caption!!

Thanks a lot! I am an idol on WinAPI
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform