Hi all,
Im trying to write my first IDA plug-in which allocates some memory for my own use:
response = AskUsingForm_c(AllocMem_dialog, &alloc_size_in_bytes);
lpvResult = VirtualAlloc(NULL, alloc_size_in_bytes, MEM_COMMIT, PAGE_READWRITE);
if (lpvResult == NULL )
{
msg("VirtualAlloc failed.\n");
return;
}
VirtualProtect(lpvResult, alloc_size_in_bytes, PAGE_EXECUTE_READWRITE, &dwOldProtect);
msg("%.08X allocated region base address\n", lpvResult);
Memory is allocated successfully but IDA doesn't see this newly allocated memory:( how can I make this memory visible to IDA ?


