115 lines
2.4 KiB
C++
115 lines
2.4 KiB
C++
#include "exprots_api_func.h"
|
|
#include "client_driver.h"
|
|
#include "client_comm_shared.h"
|
|
#include "active_check.h"
|
|
#include "client_pipe.h"
|
|
#include "check_vmware.h"
|
|
|
|
string g_Version = "1.0.0.0";
|
|
|
|
MYAPI_API VOID Init(std::string& Version, bool& IsOsAvailable)
|
|
{
|
|
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()
|
|
{
|
|
return QueryServerAlreadyOpen();
|
|
}
|
|
|
|
MYAPI_API BOOL driver_install_load(PDWORD status)
|
|
{
|
|
return client_driver::fn_get_instance()->driver_map_load(status);
|
|
}
|
|
|
|
MYAPI_API BOOL check_install_status()
|
|
{
|
|
return client_driver::fn_get_instance()->check_load_driver();
|
|
}
|
|
|
|
MYAPI_API BOOL add_process_protect(DWORD Pid)
|
|
{
|
|
return client_driver::fn_get_instance()->add_process_protect(Pid);
|
|
}
|
|
|
|
MYAPI_API BOOL sub_process_protect(DWORD Pid)
|
|
{
|
|
return client_driver::fn_get_instance()->delete_process_protect(Pid);
|
|
}
|
|
|
|
MYAPI_API BOOL enjoin_remote_thread(BOOL val)
|
|
{
|
|
return client_driver::fn_get_instance()->enjoin_remote_thread(val);
|
|
}
|
|
|
|
MYAPI_API BOOL enable_reg_mouse_key()
|
|
{
|
|
return client_driver::fn_get_instance()->install_mouse_keyboard();
|
|
}
|
|
|
|
MYAPI_API BOOL disable_reg_mouse_key()
|
|
{
|
|
return client_driver::fn_get_instance()->unload_mouse_keyboard();
|
|
}
|
|
|
|
MYAPI_API BOOL add_mouse_key_white_process(DWORD Pid)
|
|
{
|
|
return client_driver::fn_get_instance()->add_white_mouse_keyoard_process(Pid);
|
|
}
|
|
|
|
MYAPI_API BOOL anit_window_scrren(HWND hwnd,UINT Flags)
|
|
{
|
|
return client_driver::fn_get_instance()->window_anit_screen(hwnd, Flags);
|
|
}
|
|
|
|
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);
|
|
}
|