flat assembler
Message board for the users of flat assembler.

Index > Main > FASM struc WSADATA

Author
Thread Post new topic Reply to topic
Absolute_30h



Joined: 22 Jun 2015
Posts: 2
Absolute_30h 22 Jun 2015, 16:02
I badly understand English

Why?

FASM WSOCK32.INC
Code:
struct WSADATA
  wVersion   dw ?
  wHighVersion   dw ?
  szDescription  db 256+1 dup (?)
  szSystemStatus db 128+1 dup (?)
  iMaxSockets    dw ?
  iMaxUdpDg  dw ?
  _padding_  db 2 dup (?)
  lpVendorInfo   dd ?
    


msdn.microsoft.com
Code:
struct WSAData {
  WORD           wVersion;
  WORD           wHighVersion;
  char           szDescription[WSADESCRIPTION_LEN+1];
  char           szSystemStatus[WSASYS_STATUS_LEN+1];
  unsigned short iMaxSockets;
  unsigned short iMaxUdpDg;
  char FAR       *lpVendorInfo;
} WSADATA
    


Where _padding_ ?!?


Last edited by Absolute_30h on 22 Jun 2015, 16:05; edited 1 time in total
Post 22 Jun 2015, 16:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20448
Location: In your JS exploiting you and your system
revolution 22 Jun 2015, 16:05
The C compiler automatically inserts padding to align each field "naturally".
Post 22 Jun 2015, 16:05
View user's profile Send private message Visit poster's website Reply with quote
Absolute_30h



Joined: 22 Jun 2015
Posts: 2
Absolute_30h 22 Jun 2015, 16:27
thank you very much
Post 22 Jun 2015, 16:27
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.