Ejemplo n.º 1
0
int LoadLib()
{
	TCHAR *tcLib = NULL;
	tcLib = (32 == GetSystemBits()) ? TEXT("WinIo32.dll") : TEXT("WinIo64.dll");
	hinstLib = LoadLibrary(tcLib); 
	wprintf(TEXT("Load %s %s\n"), tcLib, hinstLib ? TEXT("OK") : TEXT("Fail"));
	return (hinstLib ? 0 : 1);
}
Ejemplo n.º 2
0
void CSystem::RecoveryRedir()
{
    if (ifRedirFrobid == true && GetSystemBits() == 64)
    {
        Wow64RevertWow64FsRedirection(oldValue);
        ifRedirFrobid = false;
    }
}
Ejemplo n.º 3
0
void CSystem::ForbidRedir()
{
    if (ifRedirFrobid == false && GetSystemBits() == 64)
    {
        Wow64DisableWow64FsRedirection(&oldValue);
        ifRedirFrobid = true;
    }
}
Ejemplo n.º 4
0
CConsumer::CConsumer() : m_beginTimeStamp(0), m_endTimeStamp(0), m_totalSampleCount(0), m_processSampleCount(0), m_processId(0), m_processHandle(NULL), m_stackMatchCount(0),m_isContinueTrace(TRUE)
{
	m_totalReadTime = 0;
	m_totalReadBytes = 0;
	m_timeStamp = 0;
	m_startTimeUsed.QuadPart = 0;
	m_processStartSamp.QuadPart = 0;
	m_preStackWalkStamp = 0;
	if(GetSystemBits() == 32 )
	{
		MOF_POINTERSIZE = 4;
	}
}