Lazy WinAPI
Macros | Functions
process.h File Reference

Header of Process module. More...

#include <stdint.h>
#include <stdbool.h>
#include <windows.h>

Go to the source code of this file.

Macros

#define Process_self()   GetCurrentProcess()
 Alias to GetCurrentProcess() More...
 
#define Process_self_pid()   GetCurrentProcessId()
 Alias to GetCurrentProcessId() More...
 
#define Process_open(_pid, _access_rights)   OpenProcess(_access_rights, 0, _pid)
 Macro wrapper to open process. More...
 
#define Process_close(_handle)   CloseHandle(_handle)
 Alias to CloseHandle(). More...
 

Functions

uint32_t Process_get_window_pid (const HWND window)
 Get pid of window. More...
 
uint32_t Process_get_window_tid (const HWND window)
 Get tid of window. More...
 
const uint8_t * Process_read_mem (HANDLE process, uintptr_t base, uint8_t *buffer, size_t size)
 Reads memory of a process. More...
 
bool Process_write_mem (HANDLE process, uintptr_t base, const uint8_t *buffer, size_t size)
 Write into memory of a process. More...
 
const wchar_t * Process_get_exe_path (HANDLE process, wchar_t *buffer, size_t size)
 Retrieves full path to process's binary. More...
 

Detailed Description

Header of Process module.