Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | _window |
Typedefs | |
typedef struct _window | window |
Functions | |
void | free_window (void *ptr) |
static window * | window_from_handle (HANDLE hwnd) |
static RzTable * | create_window_table (void) |
static void | add_window_to_table (RzTable *tbl, window *win) |
RZ_API void | rz_w32_identify_window (void) |
static BOOL CALLBACK | enum_childs (_In_ HWND hwnd, _In_ LPARAM lParam) |
static RzList * | get_windows (RzDebug *dbg) |
static ut64 | get_dispatchmessage_offset (RzDebug *dbg) |
static void | init_msg_types (Sdb **msg_types) |
static DWORD | get_msg_type (char *name) |
static void | print_windows (RzDebug *dbg, RzList *windows) |
RZ_API void | rz_w32_print_windows (RzDebug *dbg) |
RZ_API bool | rz_w32_add_winmsg_breakpoint (RzDebug *dbg, const char *msg_name, const char *window_id) |
Variables | |
static char * | msg_types_arr [] |
Definition at line 301 of file windows_message.c.
References free(), handle, NULL, PFMT64x, pid, rz_return_if_fail, rz_str_newf(), rz_table_add_row(), and ut64().
Referenced by print_windows(), and rz_w32_identify_window().
|
static |
Definition at line 289 of file windows_message.c.
References NULL, rz_table_add_column(), rz_table_new(), rz_table_type(), and ST32_MAX.
Referenced by print_windows(), and rz_w32_identify_window().
|
static |
Definition at line 346 of file windows_message.c.
References rz_list_push(), and window_from_handle().
Referenced by get_windows().
void free_window | ( | void * | ptr | ) |
Definition at line 378 of file windows_message.c.
References rz_core_bind_t::cmdstr, rz_core_bind_t::core, rz_debug_t::corebind, dbg, found, free(), rz_io_bind_t::io, rz_debug_t::iob, setup::line, mod(), NULL, rz_io_bind_t::read_at, rz_debug_modules_list(), rz_num_math(), rz_str_startswith(), and ut64().
Referenced by rz_w32_add_winmsg_breakpoint().
|
static |
Definition at line 420 of file windows_message.c.
References found, init_msg_types(), NULL, rz_num_get(), sdb_const_get(), and type.
Referenced by rz_w32_add_winmsg_breakpoint().
Definition at line 358 of file windows_message.c.
References dbg, DWORD, enum_childs(), free_window(), NULL, rz_debug_t::pid, rz_list_free(), rz_list_newf(), rz_list_push(), and window_from_handle().
Referenced by rz_w32_add_winmsg_breakpoint(), and rz_w32_print_windows().
|
static |
Definition at line 411 of file windows_message.c.
References i, msg_types_arr, sdb_new0(), and sdb_query().
Referenced by get_msg_type().
Definition at line 434 of file windows_message.c.
References add_window_to_table(), rz_debug_t::cb_printf, create_window_table(), dbg, free(), rz_table_free(), and rz_table_tostring().
Referenced by rz_w32_add_winmsg_breakpoint(), and rz_w32_print_windows().
RZ_API bool rz_w32_add_winmsg_breakpoint | ( | RzDebug * | dbg, |
const char * | msg_name, | ||
const char * | window_id | ||
) |
Definition at line 462 of file windows_message.c.
References rz_debug_t::arch, b, rz_debug_t::bits, rz_debug_t::cb_printf, cond, dbg, DWORD, free(), get_dispatchmessage_offset(), get_msg_type(), get_windows(), rz_list_t::length, NULL, print_windows(), reg, rz_debug_bp_add(), rz_list_free(), rz_num_math(), rz_return_val_if_fail, rz_str_newf(), rz_str_trim(), RZ_SYS_BITS_64, strdup(), type, and ut64().
Referenced by rz_cmd_debug_set_cond_bp_win_handler().
RZ_API void rz_w32_identify_window | ( | void | ) |
Definition at line 312 of file windows_message.c.
References add_window_to_table(), create_window_table(), eprintf, free(), NULL, p, PFMT64x, rz_cons_yesno(), rz_sys_perror, rz_table_free(), rz_table_tofancystring(), ut64(), and window_from_handle().
Referenced by rz_cmd_debug().
Definition at line 450 of file windows_message.c.
References rz_debug_t::cb_printf, dbg, get_windows(), rz_list_t::length, print_windows(), and rz_list_free().
Referenced by rz_cmd_debug().
Definition at line 265 of file windows_message.c.
References free(), malloc(), NULL, RZ_NEW0, rz_return_val_if_fail, strdup(), and autogen_x86imm::tmp.
Referenced by enum_childs(), get_windows(), and rz_w32_identify_window().
|
static |
Definition at line 7 of file windows_message.c.
Referenced by init_msg_types().