Subject | Re: [ib-support] Mutsx |
---|---|
Author | Claudio Valderrama C. |
Post date | 2002-02-06T04:53:52Z |
""Robert F. Tulloch"" <tultalk@...> wrote in message
news:3C600122.575213FD@......
protecting. In the best case, you could try to detect the mutex on isc4.gdb,
but the mutexes take the full path, so it's going to be a nightmarish task
(for example, the expanded filename could be a short file name only).
Better use WMI or query the NT Services API directly to see if the due
service is installed/running or look in the list of active processes if
there's an ibserver. The second technique hopefully works across any Windows
version.
C.
--
Claudio Valderrama C. - http://www.cvalde.com - http://www.firebirdSql.org
Independent developer
Owner of the Interbase® WebRing
news:3C600122.575213FD@......
>No. The mutexes (if they get a name) have the name of the file they are
> Sort of understand now. So if I am not using guardian and server is
> running and I try to install IB again, is there a mutex to detect the
> server only?
protecting. In the best case, you could try to detect the mutex on isc4.gdb,
but the mutexes take the full path, so it's going to be a nightmarish task
(for example, the expanded filename could be a short file name only).
Better use WMI or query the NT Services API directly to see if the due
service is installed/running or look in the list of active processes if
there's an ibserver. The second technique hopefully works across any Windows
version.
C.
--
Claudio Valderrama C. - http://www.cvalde.com - http://www.firebirdSql.org
Independent developer
Owner of the Interbase® WebRing