MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / ReadSharedData

Function ReadSharedData

shared/src/shme.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool ReadSharedData(TSharedData& data) {
29 SharedFile file = {};
30 if (!CreateMemFile(&file)) {
31 return false;
32 }
33 memcpy(&data, file.lpMemFile, SHMEMSIZE);
34 // Clean up
35 CloseMemFile(&file);
36 return true;
37}
38
39bool WriteSharedData(HANDLE hMapFile, LPVOID lpMemFile, TSharedData& data) {
40 memset(lpMemFile, 0, SHMEMSIZE);

Callers 2

InjectDllFunction · 0.85
InjectDllForProcessFunction · 0.85

Calls 2

CreateMemFileFunction · 0.85
CloseMemFileFunction · 0.85

Tested by

no test coverage detected