Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can i minimize windows explorer or msn messenger? 1

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi all,

Could be some way where i can minimize or close internet explorer or msn messenger or other windows from VFP?

thanks in advace!!
 
Gert

Not unless these processes where instanciated from VFP. Although most likely you can retrieve the current processes with :
Code:
DECLARE INTEGER Process32First IN kernel32;
		INTEGER hSnapshot, STRING @ lppe  

DECLARE INTEGER Process32Next IN kernel32;
		INTEGER hSnapshot, STRING @ lppe
But in order the cancel them, may prove more difficult.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
could this work for winxpp?
and how do i call the application i want to minimize?
 
Gert

As I suggested, if these applications are not instanciated within FoxPro, minimizing them might be difficult, but I was more suggesting to close the application from FoxPro. In other words get a list of current processes ( in the task manager, discover the ones that need to be removed and remove them. But I would suggest that VFP applications should not be used to "police" what is going on on a user's computer, I would find another way to "control" a user's actions.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top