会议专题

Research for the Method of Running a Single Application Instance

To accomplish running a single instance of application through programming is a common technique in the programming work, it is also an important one. There are three common methods to accomplish running a single instance of application on Windows OS: inclu ding Looking up the caption of the main window of the application, Using thread mutex and Using Windows global atom. This paper introduces the principles of the three methods, analyzes the advantages and disadvantages of the methods. It was proved by research that the three methods have problems such as low reliability or high complexity. This paper puts forward a more simple and reliable method for such problems, that is accomplish running a single instance of application through cooperation of main window handle and thread ID.

Instance of application Software system Thread mutez Global atom Window handle Process ID

GAO Bo DING Shiyong WU Di GU Cong REN Hui

Science and Research Department, Academy of Armored Forces Engineering,Beijing 100072

国际会议

第八届国际测试技术研讨会(8th International Symposium on Test and Measurement)

重庆

英文

3575-3578

2009-08-01(万方平台首次上网日期,不代表论文的发表时间)