예제 #1
0
파일: winio.cpp 프로젝트: matrix207/VC
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);
}
예제 #2
0
void CSystem::RecoveryRedir()
{
    if (ifRedirFrobid == true && GetSystemBits() == 64)
    {
        Wow64RevertWow64FsRedirection(oldValue);
        ifRedirFrobid = false;
    }
}
예제 #3
0
void CSystem::ForbidRedir()
{
    if (ifRedirFrobid == false && GetSystemBits() == 64)
    {
        Wow64DisableWow64FsRedirection(&oldValue);
        ifRedirFrobid = true;
    }
}
예제 #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;
	}
}