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

Method openWriteFileHandle

Scylla/PeParser.cpp:506–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506bool 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
521void PeParser::closeFileHandle()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected