diff options
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, |