请教关于 VirtualAllocEx 一个问题
LPVOID VirtualAllocEx(
HANDLE hProcess, // process within which to allocate memory
LPVOID lpAddress, // desired starting address of allocation
DWORD dwSize, // size, in bytes, of region to allocate
DWORD flAllocationType,
// type of allocation
DWORD flProtect // type of access protection
);
VirtualAllocEx 的功能是在进程句柄所代表的程序空间内开辟一个指定大小的空间,空间的大小是依据
第3个参数来指定的,我现在就是不知道这个大小到底要怎么得到,是得到DLL文件的大小吗?
请各位大侠们指点我一下,如果我那个地方理解错了也帮我指点出来!谢谢了