コード例 #1
0
void CTextService::_StartConfigure()
{
	HANDLE hMutex = OpenMutexW(SYNCHRONIZE, FALSE, cnfmutexname);
	if(hMutex != nullptr)
	{
		CloseHandle(hMutex);
		return;
	}

	AllowSetForegroundWindow(ASFW_ANY);

	_CommandDic(REQ_EXEC_CNF);
}
コード例 #2
0
void CTextService::_StartConfigure()
{
	HANDLE hMutex = OpenMutexW(SYNCHRONIZE, FALSE, cnfmutexname);
	if(hMutex != nullptr)
	{
		CloseHandle(hMutex);
		return;
	}

	hMutex = OpenMutexW(SYNCHRONIZE, FALSE, mgrmutexname);
	if(hMutex != nullptr)
	{
		CloseHandle(hMutex);

		AllowSetForegroundWindow(ASFW_ANY);

		_CommandDic(REQ_EXEC_CNF);
	}
	else
	{
		StartProcess(g_hInst, IMCRVCNFEXE);
	}
}
コード例 #3
0
void CTextService::_SaveUserDic()
{
	_CommandDic(REQ_USER_SAVE);
}