Skip to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MODULEINFO structure in MASM64

Featured Replies

Hi, Can someone provide MODULEINFO structure in MASM64?
invoke GetModuleInformation, hProcess, qword ptr [rax], addr modInfo, sizeof MODULEINFO

I realized that MODULEINFO structure is not defined anywhere!

  • Author

I found the way I have define that struct in MASM64:
MODULEINFO STRUCT
lpBaseOfDll DQ ? ; Base address of module
SizeOfImage DQ ? ; Size of the module in bytes
EntryPoint DQ ? ; Entry point of the module
MODULEINFO ENDS

GetModuleInformation return proper value.

typedef struct _MODULEINFO {

LPVOID lpBaseOfDll; //4 on x32, 8 on x64

DWORD SizeOfImage; //4 on both

LPVOID EntryPoint; //4 on x32, 8 on x64

} MODULEINFO, *LPMODULEINFO;

  • Author
2 hours ago, BfoX said:

typedef struct _MODULEINFO {

LPVOID lpBaseOfDll; //4 on x32, 8 on x64

DWORD SizeOfImage; //4 on both

LPVOID EntryPoint; //4 on x32, 8 on x64

} MODULEINFO, *LPMODULEINFO;

This is what I thought at first; anyway declarated like this doesn't works;
SizeOfImage has to be also a qword.

You missed alignment of struct members, I guess.

...

Edited by Stingered

11 hours ago, CodeExplorer said:

Hi, Can someone provide MODULEINFO structure in MASM64?
invoke GetModuleInformation, hProcess, qword ptr [rax], addr modInfo, sizeof MODULEINFO

I realized that MODULEINFO structure is not defined anywhere!

Are you using hutch's MASM64 SDK? Yes unfortunately it does not have that struct.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.