Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How close all windows explorer


2 replies to this topic

Divyak

Divyak
  • Members
  • 2 posts

Posted 24 February 2005 - 21:25

Hello,

I figured out a way to close windows explorer window.Below is the code.

nHwnd = FindWindow ("ExploreWClass","");
if (nHwnd = NULL) then
MessageBox ("Unable to find the Explorer window.", SEVERE);
else
SendMessage(nHwnd, WM_SYSCOMMAND,WM_CLOSE, 0);
PostMessage(nHwnd,WM_CLOSE,0,0);
endif;

The above code closes one window.I need to close all the open windows explorers while installation.

Please help.

Thanks.


Divyak

Divyak
  • Members
  • 2 posts

Posted 24 February 2005 - 22:03

never mind got it....

nobledeveloper

nobledeveloper
  • Full Members
  • 5 posts

Posted 23 July 2009 - 18:28

Divya,
If you don't mind, can you please post the solution?