Skip to content

Commit 8431d2d

Browse files
MarkMankinslacraig2
authored andcommitted
Expose windows process manager so it can be leveraged by other plugins. (#1182)
1 parent 19b0602 commit 8431d2d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

panda/plugins/wintrospection/wintrospection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ void uninit_plugin(void *);
5454
int64_t get_file_handle_pos(CPUState *cpu, uint64_t handle);
5555
char *get_cwd(CPUState *cpu);
5656
char *get_handle_name(CPUState *cpu, uint64_t handle);
57+
void *get_windows_process_manager(void);
5758
}
5859

5960
void on_get_current_thread(CPUState *cpu, OsiThread *out);
@@ -92,6 +93,10 @@ static std::map<std::string, uint64_t> system_asid_lookup = {
9293
{"windows-64-7sp1", 0x187000},
9394
};
9495

96+
void *get_windows_process_manager(void) {
97+
return g_process_manager.get();
98+
}
99+
95100
/* ******************************************************************
96101
Helpers
97102
****************************************************************** */

panda/plugins/wintrospection/wintrospection_int_fns.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ char *get_handle_name(CPUState *cpu, uint64_t handle);
55
char *get_cwd(CPUState *cpu);
66

77
int64_t get_file_handle_pos(CPUState *cpu, uint64_t handle);
8+
9+
void *get_windows_process_manager(void);

0 commit comments

Comments
 (0)