MCPcopy Create free account
hub / github.com/Artikash/Textractor / GenerateRCode

Function GenerateRCode

host/hookcode.cpp:191–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 std::wstring GenerateRCode(HookParam hp)
192 {
193 std::wstring RCode = L"R";
194
195 if (hp.type & USING_UNICODE)
196 {
197 if (hp.type & HEX_DUMP) RCode += L'M';
198 else RCode += L'Q';
199 if (hp.null_length != 0) RCode += std::to_wstring(hp.null_length) + L'<';
200 }
201 else
202 {
203 RCode += L'S';
204 if (hp.null_length != 0) RCode += std::to_wstring(hp.null_length) + L'<';
205 if (hp.codepage != 0) RCode += std::to_wstring(hp.codepage) + L'#';
206 }
207
208 RCode += L'@' + HexString(hp.address);
209
210 return RCode;
211 }
212
213 std::wstring GenerateHCode(HookParam hp, DWORD processId)
214 {

Callers 1

GenerateFunction · 0.85

Calls 1

HexStringFunction · 0.85

Tested by

no test coverage detected