ReactOS  0.4.15-dev-313-g8fde48b
ModuleData Struct Reference

#include <drwtsn32.h>

Collaboration diagram for ModuleData:

Public Member Functions

 ModuleData (void *addr)
 
void Update (HANDLE hProcess)
 

Public Attributes

std::string ModuleName
 
voidBaseAddress
 
DWORD Size
 
bool Unloaded
 

Detailed Description

Definition at line 11 of file drwtsn32.h.

Constructor & Destructor Documentation

◆ ModuleData()

ModuleData::ModuleData ( void addr)

Definition at line 13 of file drwtsn32.cpp.

14 {
15  BaseAddress = addr;
16  Size = 0;
17  Unloaded = false;
18 }
bool Unloaded
Definition: drwtsn32.h:16
GLenum const GLvoid * addr
Definition: glext.h:9621
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
void * BaseAddress
Definition: drwtsn32.h:14

Member Function Documentation

◆ Update()

void ModuleData::Update ( HANDLE  hProcess)

Definition at line 20 of file drwtsn32.cpp.

21 {
22  MODULEINFO mi = {0};
24  assert(BaseAddress == mi.lpBaseOfDll);
25  Size = mi.SizeOfImage;
26 
27  ModuleName.resize(MAX_PATH);
29  ModuleName.resize(dwLen);
30 }
#define assert(x)
Definition: debug.h:53
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
static MONITORINFO mi
Definition: win.c:7339
DWORD WINAPI GetModuleFileNameExA(HANDLE hProcess, HMODULE hModule, LPSTR lpFilename, DWORD nSize)
Definition: psapi.c:988
#define MAX_PATH
Definition: compat.h:26
unsigned long DWORD
Definition: ntddk_ex.h:95
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
void * BaseAddress
Definition: drwtsn32.h:14
BOOL WINAPI GetModuleInformation(HANDLE hProcess, HMODULE hModule, LPMODULEINFO lpmodinfo, DWORD cb)
Definition: psapi.c:1080
std::string ModuleName
Definition: drwtsn32.h:13

Member Data Documentation

◆ BaseAddress

void* ModuleData::BaseAddress

Definition at line 14 of file drwtsn32.h.

Referenced by ModuleData(), and Update().

◆ ModuleName

std::string ModuleData::ModuleName

Definition at line 13 of file drwtsn32.h.

Referenced by Update().

◆ Size

DWORD ModuleData::Size

Definition at line 15 of file drwtsn32.h.

◆ Unloaded

bool ModuleData::Unloaded

Definition at line 16 of file drwtsn32.h.

Referenced by ModuleData().


The documentation for this struct was generated from the following files: