Not sure about the API but you might be able to use automation to accomplish 
something like this.

<untested code alert>
m.loAccess=GETOBJECT(,[access.application])
IF VARTYPE(m.loAccess)=[O]
 m.loAccess.Quit
ENDIF
m.loAccess=NULL
</untested code alert>

Of course, this does not take into account open files in a changed state that 
need to be saved or reverted, etc.

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Philip Borkholder
Sent: Friday, August 14, 2009 2:30 PM
To: [email protected]
Subject: using FindWindowEx and close another Win 32 app

Hi All,
I'm using the win 32 api FindWindowEx
to get the handle of an open application (MS.ACCESS)
once I get that handle,
is there another win 32 api to then close it via VFP?




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd04406588a4...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to