Solved

How to Detect IBGuard?

Posted on 2002-04-05
3
153 Views
Last Modified: 2010-04-04
How to make sure IbGuard is running on my Windows98 and XP?

When my app starts I want to be able to detect IBGuard running to ensure the database access can be done.
I tried this code, to detect IbGuard when its minimized on the tray:
     
var
 hwind:HWND;

hwind := 0;
hwind:=windows.FindWindow('#32770', 'IbGuard');
if (hwind=0) then
 MessageBox(0, 'Ibserver NOT Detected'
           ,'Atention!', mb_iconInformation)
else
 MessageBox(0, 'IbGuard Detected'
           ,'Atention!', mb_iconInformation);

This does not work.
But when I double click the IbGuard and the window comes up, I can detect it by using:

hwind := 0;
hwind:=windows.FindWindow('#32770', 'Propriedades de InteBase Guardian');
if (hwind=0) then
 MessageBox(0, 'Ibserver NOT Detected'
           ,'Atention!', mb_iconInformation)
else
 MessageBox(0, 'IbGuard Detected'
           ,'Atention!', mb_iconInformation);

Thanks!
Samples are welcome!

MVM_BR
www.enge.cjb.net
0
Comment
Question by:MVM_BR
3 Comments
 
LVL 4

Accepted Solution

by:
nestorua earned 100 total points
ID: 6921621
HI,
Use Process32First, Process32Next and  CreateToolhelp32Snapshot for your purpose.
Sincerely,
Nestorua.
0
 
LVL 3

Expert Comment

by:VSF
ID: 6923811
nestorua:
Any samples on how to do that?!
I'm also trying to do so with no success

VSF
www.victory.hpg.com.br
www.boatoda.hpg.com.br
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9002899
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from nestorua

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now