| 504 | } |
| 505 | |
| 506 | bool PeParser::openWriteFileHandle( const WCHAR * newFile ) |
| 507 | { |
| 508 | if (newFile) |
| 509 | { |
| 510 | hFile = CreateFile(newFile, GENERIC_WRITE, FILE_SHARE_WRITE, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); |
| 511 | } |
| 512 | else |
| 513 | { |
| 514 | hFile = INVALID_HANDLE_VALUE; |
| 515 | } |
| 516 | |
| 517 | return (hFile != INVALID_HANDLE_VALUE); |
| 518 | } |
| 519 | |
| 520 | |
| 521 | void PeParser::closeFileHandle() |
nothing calls this directly
no outgoing calls
no test coverage detected