TCHAR szGetPosition[] = _T("GetPosition");
HANDLE hMutex = CreateMutex(NULL,FALSE, szGetPosition);
if( GetLastError()==ERROR_ALREADY_EXISTS )
{
MessageBox(0,_T("已经开始定位了"),_T(""),0);
return 0 ;
}
/*加入自己的代码*/
ReleaseMutex(hMutex);
CloseHandle(hMutex);