| 153 | } |
| 154 | |
| 155 | bool 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 | |
| 168 | void PE::close() |
| 169 | { |
nothing calls this directly
no outgoing calls
no test coverage detected