libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1
6#pragma once
7
8#include "file_util.h"
9#include "resource_util.h"
10
11namespace peconv {
18 bool is_padding(const BYTE *cave_ptr, size_t cave_size, const BYTE padding_char);
19
23 DWORD get_process_id(HANDLE hProcess);
24
32 bool is_mem_accessible(LPCVOID areaStart, SIZE_T areaSize, DWORD accessRights);
33
39 bool is_bad_read_ptr(LPCVOID areaStart, SIZE_T areaSize);
40};
41
Functions related to operations on files. Wrappers for read/write.
DWORD get_process_id(HANDLE hProcess)
Definition util.cpp:76
bool is_mem_accessible(LPCVOID areaStart, SIZE_T areaSize, DWORD accessRights)
Definition util.cpp:110
bool is_padding(const BYTE *cave_ptr, size_t cave_size, const BYTE padding_char)
Definition util.cpp:100
bool is_bad_read_ptr(LPCVOID areaStart, SIZE_T areaSize)
Definition util.cpp:150
Functions related to manual retrieving of PE resources.