コード例 #1
0
bool CVulEngine::CancelScanVul()
{
	if(!m_hThreadVulScan)
		return false;
	_SafeTerminateThread( m_hThreadVulScan );
	return true;
}
コード例 #2
0
bool CVulEngine::CancelScanIgnored()
{
	if(!m_hThreadVulIgnored)
		return false;
	m_bVulIgnoredCanceled = TRUE;
	m_pVulScanIgnored->Cancel();
	_SafeTerminateThread( m_hThreadVulIgnored, FALSE );
	return true;
}
コード例 #3
0
bool CVulEngine::ScanIgnored( HWND hWnd )
{
	if(m_hThreadVulIgnored)
		_SafeTerminateThread( m_hThreadVulIgnored, FALSE );
	
	m_bVulIgnoredCanceled = FALSE;
	m_hThreadVulIgnored = (HANDLE) CreateThread(NULL, 0, ThreadFunc_ScanIngored, (void*)hWnd, 0, NULL);
	return m_hThreadVulIgnored!=NULL;
}
コード例 #4
0
bool CVulEngine::ScanSuperseded(HWND hWnd)
{
	if(m_hThreadSuperseded)
		_SafeTerminateThread( m_hThreadSuperseded, FALSE );

	m_bVulScanSuperseded = FALSE;
	m_hThreadSuperseded = CreateThread(NULL, 0, ThreadFunc_ScanSuperseded, (void*)hWnd, 0, NULL);
	return m_hThreadSuperseded!=NULL;
}
コード例 #5
0
bool CVulEngine::ScanVul(HWND hWnd)
{
	if(m_hThreadVulScan)
		_SafeTerminateThread( m_hThreadVulScan, FALSE );

	m_bVulScanCanceled = FALSE;
	m_hThreadVulScan = CreateThread(NULL, 0, ThreadFunc_Scan, (void*)hWnd, 0, NULL);
	return m_hThreadVulScan!=NULL;
}
コード例 #6
0
bool CVulEngine::ScanFixed(HWND hWnd)
{
	m_bVulFixedCanceled = FALSE;
	if(m_hThreadVulFixed!=NULL)
	{
		_SafeTerminateThread( m_hThreadVulFixed );
	}
	m_hThreadVulFixed = (HANDLE) CreateThread(NULL, 0, ThreadFunc_ScanFixed, (void*)hWnd, 0, NULL);
	return m_hThreadVulFixed!=NULL;
}
コード例 #7
0
bool CVulEngine::ScanVul(HWND hWnd)
{
	if(m_hThreadVulScan!=NULL)
	{
		_SafeTerminateThread( m_hThreadVulScan );
	}
	//m_hThreadVulScan = (HANDLE) _beginthreadex(NULL, 0, ThreadFunc_Scan, (void*)hWnd, 0, NULL);
	m_hThreadVulScan = CreateThread(NULL, 0, ThreadFunc_Scan, (void*)hWnd, 0, NULL);
	return m_hThreadVulScan!=NULL;
}
コード例 #8
0
void CVulEngine::CancelScanFixed()
{
	if(!m_hThreadVulFixed)
		return;

	m_bVulFixedCanceled = TRUE;
	m_pIVulFixedSoft->Cancel();
	m_pIVulFixed->Cancel();
	_SafeTerminateThread( m_hThreadVulFixed, FALSE );
}
コード例 #9
0
bool CVulEngine::CancelScanVul()
{
	if(!m_hThreadVulScan)
		return false;
	
	m_bVulScanCanceled = TRUE;
	m_pVulScan->Cancel();
	_SafeTerminateThread( m_hThreadVulScan, FALSE );
	return true;
}
コード例 #10
0
bool CVulEngine::CancelRepair()
{
	if(!m_hThreadVulRepair)
		return false;
	
	m_bRepairCanceled = TRUE;
	m_pRepairVul->StopRepair();
	_SafeTerminateThread( m_hThreadVulRepair );
	//_RelayMessage( NULL, WMH_REPAIR_DONE, 1, 0);
	return true;
}
コード例 #11
0
bool CVulEngine::RepairAll( HWND hWnd, const CSimpleArray<int> &arrVulIds, const CSimpleArray<int> &arrSoftVulIds )
{
	m_bRepairCanceled = FALSE;
	if(m_hThreadVulRepair!=NULL)
		_SafeTerminateThread( m_hThreadVulRepair );
	
	if(arrVulIds.GetSize()==0 && arrSoftVulIds.GetSize()==0)
	{
		return false;
	}
	
	m_arrRepairVulIds.RemoveAll();
	m_arrRepairVulSoftIds.RemoveAll();
	CopySimpleArray(arrVulIds, m_arrRepairVulIds);
	CopySimpleArray(arrSoftVulIds, m_arrRepairVulSoftIds);
	m_hThreadVulRepair = (HANDLE) CreateThread(NULL, 0, ThreadFunc_Repair, (void*)hWnd, 0, NULL);
	return true;
}
コード例 #12
0
void CVulEngine::WaitScanDone()
{
	if(!m_hThreadVulScan)
		return;
	_SafeTerminateThread( m_hThreadVulScan );
}