init
This commit is contained in:
@@ -3,10 +3,27 @@
|
||||
#include "client_comm_shared.h"
|
||||
#include "active_check.h"
|
||||
#include "client_pipe.h"
|
||||
#include "check_vmware.h"
|
||||
|
||||
MYAPI_API BOOL set_server_process_path(const char* Path)
|
||||
string g_Version = "1.0.0.0";
|
||||
|
||||
MYAPI_API VOID Init(std::string& Version, bool& IsOsAvailable)
|
||||
{
|
||||
return client_shared_mapping::StartServerProcess(Path);
|
||||
Version = g_Version;
|
||||
|
||||
OSVERSIONINFOW os{ 0 };
|
||||
RtlGetVersion(&os);
|
||||
|
||||
if (os.dwBuildNumber == 7601 || os.dwBuildNumber == 7600)
|
||||
IsOsAvailable = true;
|
||||
else if(os.dwBuildNumber >= 14393)
|
||||
IsOsAvailable = true;
|
||||
else IsOsAvailable = false;
|
||||
}
|
||||
|
||||
MYAPI_API BOOL set_server_process_path(CONST char* Path, PDWORD status)
|
||||
{
|
||||
return client_shared_mapping::StartServerProcess(Path, status);
|
||||
}
|
||||
|
||||
MYAPI_API BOOL check_server_process()
|
||||
@@ -14,9 +31,9 @@ MYAPI_API BOOL check_server_process()
|
||||
return QueryServerAlreadyOpen();
|
||||
}
|
||||
|
||||
MYAPI_API BOOL driver_install_load()
|
||||
MYAPI_API BOOL driver_install_load(PDWORD status)
|
||||
{
|
||||
return client_driver::fn_get_instance()->driver_map_load();
|
||||
return client_driver::fn_get_instance()->driver_map_load(status);
|
||||
}
|
||||
|
||||
MYAPI_API BOOL check_install_status()
|
||||
@@ -63,3 +80,35 @@ MYAPI_API BOOL check_remote_app_process()
|
||||
{
|
||||
return active_check::check_remote_app_process();
|
||||
}
|
||||
|
||||
MYAPI_API BOOL check_virtual_system()
|
||||
{
|
||||
uint64_t req;
|
||||
|
||||
return HBClientCall(
|
||||
static_cast<uint32_t>(CommandId::CheckVMware),
|
||||
&req,
|
||||
sizeof(req),
|
||||
nullptr,
|
||||
0,
|
||||
nullptr);
|
||||
|
||||
}
|
||||
|
||||
MYAPI_API BOOL check_vmx_setting()
|
||||
{
|
||||
uint64_t req;
|
||||
|
||||
return HBClientCall(
|
||||
static_cast<uint32_t>(CommandId::CheckVmx),
|
||||
&req,
|
||||
sizeof(req),
|
||||
nullptr,
|
||||
0,
|
||||
nullptr);
|
||||
}
|
||||
|
||||
MYAPI_API BOOL check_scan_process(DWORD Pid, void* Results)
|
||||
{
|
||||
return active_check::ScanProcessHandles(Pid, (PROCESS_HANDLE_RESULTS*)Results);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user