ircify/ircify.cpp
void mCmd(const char * cmd)
{
	if (!TryEnterCriticalSection(&CriticalSection)) return;
	sprintf_s(sMircData, 1024, "%s", cmd);
	SendMessage(MircHwnd, WM_USER + 200, 1, 0);
	LeaveCriticalSection(&CriticalSection);
}
// mIrc communication.. Every command is inside criticalsections to make sure
// other threads is not able to modify the data while its being processed.
// $dllcall(..) in mirc is multithreaded and does not freeze mirc while processing!
mIrc communication.. Every command is inside criticalsections to make sure
other threads is not able to modify the data while its being processed.
$dllcall(..) in mirc is multithreaded and does not freeze mirc while processing!
mIrc communication .. Every command is inside criticalsections to make sure other threads is not able to modify the data while its being processed . $dllcall ( .. ) in mirc is multithreaded and does not freeze mirc while processing!
void mCmd(const char * cmd)
{
	if (!TryEnterCriticalSection(&CriticalSection)) return;
	sprintf_s(sMircData, 1024, "%s", cmd);
	SendMessage(MircHwnd, WM_USER + 200, 1, 0);
	LeaveCriticalSection(&CriticalSection);
}
void mCmd ( const char * cmd ) { if ( ! TryEnterCriticalSection ( & CriticalSection ) ) return ; sprintf_s ( sMircData , 1024 , " " , cmd ) ; SendMessage ( MircHwnd , WM_USER + 200 , 1 , 0 ) ; LeaveCriticalSection ( & CriticalSection ) ; }
mIrc communication.. Every command is inside criticalsections to make sure
other threads is not able to modify the data while its being processed.
mIrc communication .. Every command is inside criticalsections to make sure other threads is not able to modify the data while its being processed .