Exemplo n.º 1
0
/* Main loop */
void 
Watcher::run()
{
	printf("Watcher is running ...\n");
	
	//
	watcherRunning = true;

	DWORD refreshError = 0;
	

    printf("Watcher monitoring logDir %ls\n", logDirDOSPath.c_str());
	
	// MUST Sleep(REFRESH_DIR_INTERVAL) before refeshing the list of files under the logDir
	while(!watcherThread->shouldStop() && isWatcherRunning())
	{
		// Refresh the list of files under log Dir
		refreshError = RefreshDirectory(logDirDOSPath);
		
		// Sleep for some interval
		Sleep(REFRESH_DIR_INTERVAL);
	}

	/* Set handle of this thread */
	SetEvent(hStopRunning);

	printf("Watcher stopped running\n");
}
Exemplo n.º 2
0
// KModelEditorTagExport message handlers
BOOL KModelEditorTagExport::OnInitDialog()
{
	BOOL bReturn = CDialog::OnInitDialog();
	((CButton*)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);
	((CButton*)GetDlgItem(IDC_RADIO2))->SetCheck(FALSE);
	RefreshDirectory();
	return bReturn;
}
Exemplo n.º 3
0
void KModelEditorTagExport::OnBnClickedRadio2()
{
	// TODO: Add your control notification handler code here
	m_eTagState = TAG_NPC;
	RefreshDirectory();
}