MCPcopy Create free account
hub / github.com/NtQuery/Scylla / openFileHandle

Method openFileHandle

Scylla/PeParser.cpp:489–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489bool 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
506bool PeParser::openWriteFileHandle( const WCHAR * newFile )
507{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected