| 167 | } |
| 168 | |
| 169 | void *RemoteDup(HANDLE process, const void *source, size_t length) { |
| 170 | void *remote = VirtualAllocEx(process, nullptr, length, MEM_COMMIT, PAGE_READWRITE); |
| 171 | SIZE_T numBytesWritten; |
| 172 | WriteProcessMemory(process, remote, source, length, &numBytesWritten); |
| 173 | return remote; |
| 174 | } |
| 175 | |
| 176 | |
| 177 |
no outgoing calls
no test coverage detected