| 487 | } |
| 488 | |
| 489 | bool PeParser::openFileHandle() |
| 490 | { |
| 491 | if (hFile == INVALID_HANDLE_VALUE) |
| 492 | { |
| 493 | if (filename) |
| 494 | { |
| 495 | hFile = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0); |
| 496 | } |
| 497 | else |
| 498 | { |
| 499 | hFile = INVALID_HANDLE_VALUE; |
| 500 | } |
| 501 | } |
| 502 | |
| 503 | return (hFile != INVALID_HANDLE_VALUE); |
| 504 | } |
| 505 | |
| 506 | bool PeParser::openWriteFileHandle( const WCHAR * newFile ) |
| 507 | { |
nothing calls this directly
no outgoing calls
no test coverage detected