Please,

someone knows if ther'is a Windows API to know if an Handle exists?
I mean that : i want to check i fan application is already running on system.
I had idea to save in Local Database [i need to use a Database for other 
reasons]
the Application.Handle. So when a copy of application starts, it checks in 
Database and read the last Handle written. Then i thought it could check by 
some (which one?) if that Handle is currently used.
Really i have already an other mechanism to check it : the applicatio writes 
every TOT seconds in Database a TDateTime field by currently value returned by 
Now().
Then i used a field named 'Actived' to reset whenthe Application ends.
Well, i'd like to have a stronger control by using even the Handler for cases 
which in the application faults and become not capable to reset the 'Actived' 
flag.
I think it's possibile an Handler (with same value of expired Application) can 
be used by other applications, but at least i can be really sure [when even 
Handler-checking works] that the old Application was faulted.

I hope someone can help me.

Thanks.

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to