19#define AssertReturn return;
21#define AssertReturnFalse return FALSE;
23#define AssertReturnOne return 1;
25#define ASSERT_MESSAGE_DRIVER_NOT_LOADED "handle of the driver not found, probably the driver is not loaded. Did you use 'load' command?\n"
27#define ASSERT_MESSAGE_BUILD_SIGNATURE_DOESNT_MATCH "the handshaking process was successful; however, there is a mismatch between " \
28 "the version/build of the debuggee and the debugger. please use the same " \
29 "version/build for both the debuggee and debugger\n"
31#define ASSERT_MESSAGE_CANNOT_SPECIFY_PID "err, since HyperDbg won't context-switch to keep the system in a halted state, " \
32 "you cannot specify 'pid' for this command in the debugger mode. You can switch to the target process " \
33 "memory layout using the '.process' or the '.thread' command. After that, you can use " \
34 "this command without specifying the process ID. Alternatively, you can modify the current " \
35 "CR3 register to achieve the same functionality\n"
37#define AssertReturnStmt(expr, stmt, rc) \
51#define AssertShowMessageReturnStmt(expr, message, rc) \
60 ShowMessages(message); \
69#define PAGE_SIZE 0x1000
75#define PAGE_ALIGN(Va) ((PVOID)((ULONG_PTR)(Va) & ~(PAGE_SIZE - 1)))
81#define CPUID_ADDR_WIDTH 0x80000008
119Replace(std::string & str,
const std::string & from,
const std::string & to);
122ReplaceAll(
string & str,
const string & from,
const string & to);
125Split(
const string & s,
const char & c);
149HasEnding(
string const & fullString,
string const & ending);
161Trim(std::string & s);
179SplitPathAndArgs(std::vector<std::string> & Qargs,
const std::string & Command);
190std::vector<std::string>
191ListDirectory(
const std::string & Directory,
const std::string & Extension);
int BOOL
Definition BasicTypes.h:23
UCHAR BOOLEAN
Definition BasicTypes.h:39
#define VOID
Definition BasicTypes.h:33
unsigned int * PUINT32
Definition BasicTypes.h:48
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned __int64 * PUINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48