Seaside/SpyCustom/protobuffs.hpp

33 lines
1.0 KiB
C++
Raw Normal View History

2021-06-16 18:43:45 +03:00
#pragma once
#include <windows.h>
#include <string>
#include "VMT.hpp"
2022-11-12 14:23:45 +03:00
//#include "sdk/steam.h"
#include "sdk/steam_api.h"
#include "sdk/isteamgamecoordinator.h"
2021-06-16 18:43:45 +03:00
#include "intrin.h"
extern VMTHook* ProtoHook;
class Protobuffs
{
public:
static void WritePacket(std::string packet, void* thisPtr, void* oldEBP, void* pubDest, uint32_t cubDest, uint32_t* pcubMsgSize);
void ReceiveMessage(void* thisPtr, void* oldEBP, uint32_t messageType, void* pubDest, uint32_t cubDest, uint32_t* pcubMsgSize);
bool PreSendMessage(uint32_t& unMsgType, void* pubData, uint32_t& cubData);
bool SendClientHello();
bool SendMatchmakingClient2GCHello();
bool SendClientGcRankUpdate();
bool EquipWeapon(int weaponid, int classid, int slotid);
};
extern Protobuffs ProtoFeatures;
2022-11-12 14:23:45 +03:00
EGCResults __fastcall hkGCRetrieveMessage(void* ecx, void*, uint32_t* punMsgType, void* pubDest, uint32_t cubDest, uint32_t* pcubMsgSize);
EGCResults __fastcall hkGCSendMessage(void* ecx, void*, uint32_t unMsgType, const void* pubData, uint32_t cubData);
2021-06-16 18:43:45 +03:00