Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Function to detect and close a program?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00068236
Message ID:
00068312
Vues:
35
>>>My thoughts along this line were to post a WM_QUIT message, which requires an application specific exit code. I must admit I'd be a bit wary of WM_DESTROY, however, if it works without any noticable side effects, terrific.
>>>
>>>hth,
>>>
>>>George
>>
>>Actually, I had to go with WM_DESTROY because the WM_QUIT message caused Groupwise to throw an "Invalid Page Fault" error. I have no idea why, but it did. Maybe it didn't like the fact that it was getting the quit message externally.
>>
>>- Eric Rolfe
>>erolfe@networkbta.com
>
>Perhaps WM_CLOSE (16) would work for you. Then if there was any user interaction that might be required, it would be processed by the app prior to the shutdown. I've found that not all apps will respond (wordpad for one) to WM_DESTROY.
>
>hth,
>
>George

I have been following this thread with interest. WM_CLOSE does indeed work great, even for GroupWise Notify feature.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform