<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
HANDLE hMutex=::CreateMutex(NULL,TRUE,"FirstName");//FirstName可以随便取一个唯一的名字 if (hMutex!=NULL) { if (GetLastError()==ERROR_ALREADY_EXISTS) { AfxMessageBox("已经有一个程序运行."); return FALSE; } }