mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 11:43:23 +08:00
34 lines
629 B
C++
34 lines
629 B
C++
#include "stdafx.h"
|
|
|
|
#include <engextcpp.hpp>
|
|
#include <exception>
|
|
|
|
#include "dbgsystem.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
bool
|
|
is64bitSystem()
|
|
{
|
|
HRESULT hres;
|
|
|
|
try {
|
|
hres = g_Ext->m_Control->IsPointer64Bit();
|
|
|
|
return hres == S_OK;
|
|
|
|
}
|
|
catch( std::exception &e )
|
|
{
|
|
g_Ext->Out( "pykd error: %s\n", e.what() );
|
|
}
|
|
catch(...)
|
|
{
|
|
g_Ext->Out( "pykd unexpected error\n" );
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|