Esempio n. 1
0
void CVulEngine::IgnoreVuls( CSimpleArray<int> &arr, bool bIgnore )
{
	if(m_pVulScan==NULL)
	{
		m_pVulScan = CreateVulFix();
	}
	for(int i=0; i<arr.GetSize(); ++i)
	{
		m_pVulScan->Ignore(arr[i], bIgnore);
	}
	m_pVulScan->PersistIgnored();
}
Esempio n. 2
0
void CVulEngine::_ScanIgnored( HWND hWnd )
{
	if(!m_pVulScanIgnored)
		m_pVulScanIgnored = CreateVulFix();
	
	CWindowVulfixObserver observer(m_MainDlg, hWnd);
	m_pVulScanIgnored->SetObserver(&observer);
	_RelayMessage(hWnd, WMH_SCAN_FIXED_BEGIN, 0, 0 );
	m_pVulScanIgnored->Scan();
	_RelayMessage(hWnd, WMH_SCAN_FIXED_DONE, m_bVulIgnoredCanceled, 0 );
	m_pVulScanIgnored->SetObserver(NULL);
}
Esempio n. 3
0
int CVulEngine::ExpressScan()
{
	if(m_pVulExpressScan==NULL)
	{
		m_pVulExpressScan = CreateVulFix();
	}
	if(m_pVulExpressScan)
	{
		return m_pVulExpressScan->ExpressScanSystem();
	}
	return 0;
}
Esempio n. 4
0
void CVulEngine::IgnoreVuls( int nKB, bool bIgnore )
{
	if(m_pVulScan==NULL)
	{
		m_pVulScan = CreateVulFix();
	}
	if(m_pVulScan)
	{
		m_pVulScan->Ignore(nKB, bIgnore);
		m_pVulScan->PersistIgnored();
	}
}
Esempio n. 5
0
void CVulEngine::_ScanIgnored( HWND hWnd )
{
	DWORD dwFlags = _GetScanFlags();
	if(!m_pVulScanIgnored)
		m_pVulScanIgnored = CreateVulFix();

	HRESULT hr = E_POINTER;
	if(m_pVulScanIgnored)
	{
		CWindowVulfixObserver observer(hWnd);
		m_pVulScanIgnored->SetObserver(&observer);
		_RelayMessage(hWnd, WMH_SCAN_FIXED_BEGIN, 0, 0 );
		hr = m_pVulScanIgnored->Scan( dwFlags );
		m_pVulScanIgnored->SetObserver(NULL);
	}	
	_RelayMessage(hWnd, WMH_SCAN_FIXED_DONE, m_bVulIgnoredCanceled, hr );
}
Esempio n. 6
0
void CVulEngine::_ScanVul(HWND hWnd)
{
	DWORD dwFlags = _GetScanFlags();
	CWindowVulfixObserver observer( hWnd);
	if(!m_pVulScan)
		m_pVulScan = CreateVulFix();
	
	HRESULT hr = E_POINTER;
	if(m_pVulScan)
	{
		m_pVulScan->SetObserver(&observer);
		
		hr = m_pVulScan->Scan(dwFlags);
		DEBUG_TRACE(_T("CVulEngine::_ScanVul ScanVul %x(%x) \n"), hr, dwFlags);
		m_pVulScan->SetObserver(NULL);
	}
	_RelayMessage(hWnd, WMH_SCAN_DONE, m_bVulScanCanceled, hr);
}
Esempio n. 7
0
void CVulEngine::_ScanVul(HWND hWnd)
{
	CWindowVulfixObserver observer(m_MainDlg, hWnd);
	
	if(m_pVulScan==NULL)
	{
		m_pVulScan = CreateVulFix();
	}
	m_pVulScan->SetObserver(&observer);
	m_pVulScan->Scan();

	if(m_pSoftVulScan==NULL)
	{
		m_pSoftVulScan = CreateSoftVulFix();
	}
	
	m_pVulScan->SetObserver(&observer);
	m_pSoftVulScan->Scan();
	_RelayMessage(hWnd, WMH_SCAN_DONE, 0, 0);
	
	m_pVulScan->SetObserver(NULL);
	m_pSoftVulScan->SetObserver(NULL);
}