Description: Allow to run only one instance of the simple and practical method, first of all, in the InitInstance () function to create a synchronization object, if (GetLastError () return ERROR_ALREADY_EXISTS to indicate the presence
To Search:
File list (Check if you may need any files):
只运行一个实例
..............\Example.aps
..............\Example.clw
..............\Example.cpp
..............\Example.dsp
..............\Example.dsw
..............\Example.h
..............\Example.ncb
..............\Example.opt
..............\Example.plg
..............\Example.rc
..............\ExampleDlg.cpp
..............\ExampleDlg.h
..............\ReadMe.txt
..............\res
..............\...\Example.rc2
..............\Resource.h
..............\StdAfx.cpp
..............\StdAfx.h