当前位置: 首页>>代码示例>>C++>>正文


C++ Memory::GetModule方法代码示例

本文整理汇总了C++中Memory::GetModule方法的典型用法代码示例。如果您正苦于以下问题:C++ Memory::GetModule方法的具体用法?C++ Memory::GetModule怎么用?C++ Memory::GetModule使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Memory的用法示例。


在下文中一共展示了Memory::GetModule方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

/* Start code */
void main()
{
	/* Rename Console */
	SetConsoleTitle(" XTools Multi-Hack");
	SetWindow(29, 30, ConsolePos_x, ConsolePos_y);

	/* Console output */
	cout << "-----------------------------" << endl;
	cout << "|      XTools Multi Hack    |" << endl;
	cout << "|                           |" << endl;
	cout << "| Hotkeys:                  |" << endl;
	cout << "|        -> BunnyHop: F9    |" << endl;
	cout << "|        ->      RCS: F8    |" << endl;
	cout << "|        ->    Radar: F7    |" << endl;
	cout << "|        ->  SlowAIM: F6    |" << endl;
	cout << "|        ->  GlowESP: F5    |" << endl;
	cout << "|        ->     EXIT: F4    |" << endl;
	cout << "-----------------------------" << endl;

	/* Attach to the GAME process */
	if (!MManager.Attach("csgo.exe"))
	{
		cout << "-----------------------------" << endl;
		cout << "|         :WARNING:         |" << endl;
		cout << "|     CS:GO NOT FOUND!      |" << endl;
		cout << "|     CLOSING IN 3 SEC      |" << endl;
		cout << "-----------------------------" << endl;
		Sleep(1000 * 3);
		exit(0);
	}
	cout << "-----------------------------" << endl;
	cout << "|       :ACTIVATION:        |" << endl;
	cout << "|                           |" << endl;

	/* Get client.dll and engine.dll */
	Client = MManager.GetModule("client.dll");
	Engine = MManager.GetModule("engine.dll");

	/* Find all the offsets that the code need using pattern scan */
	PatternScan();

	/* Threads creation for multiple functions at the same time */
	thread ACTIVATION_thread = thread(ActivationByHotkeys);
	thread CONSOLEMOVE_thread = thread(MoveConsole);
	thread GLOW_thread = thread(GLOW);
	thread RADAR_thread = thread(RADAR);
	thread SLOWAIM_thread = thread(SLOWAIM);
	thread BHOP_thread = thread(BHOP);
	thread RCS_thread = thread(RCS);

	/* Start threads */
	ACTIVATION_thread.join();
	CONSOLEMOVE_thread.join();
	GLOW_thread.join();
	RADAR_thread.join();
	SLOWAIM_thread.join();
	BHOP_thread.join();
	RCS_thread.join();
}
开发者ID:XToolsXYZ,项目名称:MultiTool,代码行数:60,代码来源:main.cpp


注:本文中的Memory::GetModule方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。