How to use CreateMutex to detect previous application instance (D2 D3 D4) |
|
領航天使
站長 ![]() ![]() ![]() ![]() ![]() ![]() 發表:12216 回覆:4186 積分:4084 註冊:2001-07-25 發送簡訊給我 |
名稱:How to use CreateMutex to detect previous application instance
原始程式:有(Source)
適用:(D2)(D3)(D4)
版權種類:免費軟體(Freeware)
作者:Pawel Michalowski 原創公司:Arkosoft Technologies
出處網址:http://www.arkosoftech.com
說明:
The code below demonstrates the use of the CreateMutex function which checks for a previous instance of your application in the memory. In this particular case if your application is already running and you try to run it again, you will get an error message saying 'Instance of this application is already running'. This code is esspecially usefull when creating a screen saver or any other type of application which is supposed to run in a single instance mode.
------
~~~Delphi K.Top討論區站長~~~ |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |