MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / open

Method open

src/pe.cpp:155–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool PE::open()
156{
157 hFile = CreateFileA(path.c_str(), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
158
159 if (hFile == INVALID_HANDLE_VALUE)
160 {
161 std::cerr << "error while oppening input file: " << std::endl;
162 return 0;
163 }
164
165 return 1;
166}
167
168void PE::close()
169{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected