diff options
author | midipix <writeonce@midipix.org> | 2017-01-18 00:00:48 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-01-18 00:30:45 -0500 |
commit | 6d58d975a6d69ffafe30f51ec83cccefbecd4883 (patch) | |
tree | 1ce6936f4101cbf796fca93ca3d9d174e4269942 /src/internal | |
parent | 393c205aed99a73cb8ff984858f288f8cb901688 (diff) | |
download | pemagine-6d58d975a6d69ffafe30f51ec83cccefbecd4883.tar.bz2 pemagine-6d58d975a6d69ffafe30f51ec83cccefbecd4883.tar.xz |
ldso: added pe_open_image_from_addr().
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/pe_os.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/internal/pe_os.h b/src/internal/pe_os.h index f68a462..54275e3 100644 --- a/src/internal/pe_os.h +++ b/src/internal/pe_os.h @@ -19,6 +19,9 @@ #define OS_FILE_SHARE_WRITE 0x00000002 #define OS_FILE_SHARE_DELETE 0x00000004 +#define OS_CURRENT_PROCESS_HANDLE (void *)(uintptr_t)(-1) +#define OS_CURRENT_THREAD_HANDLE (void *)(uintptr_t)(-2) + enum os_object_info_class { OS_OBJECT_BASIC_INFORMATION = 0, @@ -29,6 +32,14 @@ enum os_object_info_class { }; +enum os_memory_info_class { + OS_MEMORY_BASIC_INFORMATION, + OS_MEMORY_WORKING_SET_LIST, + OS_MEMORY_SECTION_NAME, + OS_MEMORY_BASIC_VLM_INFORMATION +}; + + struct os_oa { uint32_t len; void * root_dir; @@ -56,6 +67,15 @@ typedef int32_t __stdcall os_zw_query_object( __out uint32_t * returned_length __optional); +typedef int32_t __stdcall os_zw_query_virtual_memory( + __in void * hprocess, + __in void * base_address, + __in int mem_info_class, + __out void * mem_info, + __in uint32_t mem_info_length, + __out uint32_t * returned_length __optional); + + typedef int32_t __stdcall os_zw_open_file( __out void ** hfile, __in uint32_t desired_access, |