Sign in to follow this  
Followers 0
Danyfirex

DllStructGetSize doubt?

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0