Jump to content

DllStructGetSize doubt?


Recommended Posts

Hi mate it's me with another stupid question.

I looking the dllstructgetsize example but I don't understand why the size is 140 bytes :S

Can someone explain me?

Link to comment
Share on other sites

The offset of each element in the structure must be a multiple of its size. Moreover, the size of the structure must be a multiple of the size of the largest element.

4 (INT) + 1 (BYTE) + 3 (Alignment) + 4 (UINT) + 128 (CHAR[128]) = 140

Edited by Yashied
Link to comment
Share on other sites

The offset of each element in the structure must be a multiple of its size. Moreover, the size of the structure must be a multiple of the size of the largest element.

4 (INT) + 1 (BYTE) + 3 (Alignment) + 4 (UINT) + 128 (CHAR[128]) = 140

thank you Yashied
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...