Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
End process progmatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00171940
Message ID:
00172238
Vues:
26
>Thanks for the info, however, the application I need to destroy doesn't have a window associated with it (at least there is no window or titlebar visible) so I don't have anything to find using the findwindow command. All I know is the name of the executible. Presently users must go into the task manager and click on endprocess - I'm trying to keep the users out of the task manager area.

Hi David,

All Windows apps (even screen savers) have windows associated with them. The trick here will be running down this one's. I have two suggestions that may help. First, you need to determine whether or not it's title bar has any text associated with it. You might want to look at my Is_Run32 function. It's purpose is to retrieve a window handle based on the known portion of the title bar. The reason I suggest it is that it loops through the top level windows retrieving the contents of their title bar. You might want to use a similar technique to create a list of windows before the application is run, and then again afterward and compare the results. That might help you determine whether or not it has title text. If so, then you can get the window handle using that.

If not, you can use the results to determine what the window's class name is, and use that to get the window handle.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform