| 436 | } |
| 437 | |
| 438 | bool ProcessAccessHelp::writeMemoryToNewFile(const WCHAR * file,DWORD size, LPCVOID dataBuffer) |
| 439 | { |
| 440 | HANDLE hFile = CreateFile(file, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, 0, 0); |
| 441 | |
| 442 | if (hFile != INVALID_HANDLE_VALUE) |
| 443 | { |
| 444 | bool resultValue = writeMemoryToFile(hFile,0,size,dataBuffer); |
| 445 | CloseHandle(hFile); |
| 446 | return resultValue; |
| 447 | } |
| 448 | else |
| 449 | { |
| 450 | return false; |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | bool ProcessAccessHelp::writeMemoryToFile(HANDLE hFile, LONG offset, DWORD size, LPCVOID dataBuffer) |
| 455 | { |
nothing calls this directly
no outgoing calls
no test coverage detected