Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LUA_FUNC(DrvPopImageData)
- {
- DrvImageList imageinfo;
- DWORD dwBytesRead = 0;
- DeviceIoControl(hkLHK, IOCTL_POPIMAGEDATA,
- 0, 0,
- &imageinfo, sizeof(DrvImageList),
- &dwBytesRead, 0);
- if (dwBytesRead == sizeof(DrvImageList))
- {
- lua_pushstring(l, imageinfo.FullImageName);
- lua_pushinteger(l, (DWORD)imageinfo.ProcessId);
- lua_pushinteger(l, (DWORD)imageinfo.ImageInfo.ImageBase);
- lua_pushinteger(l, imageinfo.ImageInfo.ImageSize);
- lua_pushinteger(l, imageinfo.ImageInfo.ImageSelector);
- lua_pushinteger(l, imageinfo.ImageInfo.ImageSectionNumber);
- lua_pushinteger(l, imageinfo.ImageInfo.ImageAddressingMode);
- lua_pushinteger(l, imageinfo.ImageInfo.ImageMappedToAllPids);
- lua_pushinteger(l, imageinfo.ImageInfo.SystemModeImage);
- lua_pushinteger(l, imageinfo.ImageInfo.Reserved);
- return 10;
- }
- lua_pushnil(l);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement