cobf
PE imports obfuscator
utils.hpp
Go to the documentation of this file.
1 
9 #ifndef UTILS_HPP
10 #define UTILS_HPP
11 
15 enum class cobf_error {
16  COBF_NO_ERROR,
17  COBF_CANNOT_OPEN_FILE,
18  COBF_CANNOT_CREATE_FILE,
19  COBF_CANNOT_GET_SIZE,
20  COBF_CANNOT_READ_FILE,
21  COBF_INVALID_DOS_HDR,
22  COBF_INVALID_NT_HDRS,
23  COBF_UNSUPPORTED_PE,
24  COBF_INVALID_SECTION_HDR,
25  COBF_INVALID_IMPORTS_DIR,
26  COBF_CANNOT_PARSE_IMPORTS,
27  COBF_CANNOT_WRITE_FILE,
28  COBF_CANNOT_CLEAR,
29  COBF_CANNOT_CREATE_SECTION,
30  COBF_CANNOT_ADD_ENTRY,
31  COBF_CANNOT_DISABLE_RELOCS,
32  COBF_INVALID_IAT_SECTION,
33  COBF_CANNOT_REMOVE_DBG_SYMS,
34  COBF_MODULE_NOT_FOUND,
35  COBF_PE_LOADED,
36  COBF_PE_UNLOADED,
38 };
39 
46 void cobf_format_message(cobf_error err_msg, char* buffer, unsigned int size);
47 
48 #endif // !UTILS_HPP.
cobf_error::COBF_NO_ERROR
@ COBF_NO_ERROR
cobf_format_message
void cobf_format_message(cobf_error err_msg, char *buffer, unsigned int size)
Format the error to a message.
Definition: utils.cpp:15
cobf_error
cobf_error
Definition: utils.hpp:15