Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to check if Delphi is running Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
10-Jan-03
Category
Open Tools API / IDE
Language
Delphi 2.x
Views
174
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Lou Adler

How to check if Delphi is running

Answer:

1   function DelphiRunning: Boolean;
2   var
3     H1, H2, H3, H4: HWnd;
4   const
5     A1: array[0..12] of char = \ 'TApplication\'#0;
6     A2: array[0..15] of char = \ 'TAlignPalette\'#0;
7     A3: array[0..18] of char = \ 'TPropertyInspector\'#0;
8     A4: array[0..11] of char = \ 'TAppBuilder\'#0;
9     T1: array[0..6] of char = \ 'Delphi\'#0;
10  begin
11    H2 := FindWindow(A2, nil);
12    H3 := FindWindow(A3, nil);
13    H4 := FindWindow(A4, nil);
14    Result := (H2 <> 0) and (H3 <> 0) and (H4 <> 0);
15  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC