flat assembler
Message board for the users of flat assembler.

Index > Windows > Information on WSASocketA's GROUP g

Author
Thread Post new topic Reply to topic
fasmnewbie



Joined: 01 Mar 2011
Posts: 555
fasmnewbie 15 Aug 2018, 14:38
I have two questions on this WSASocketA

1) Does anybody know where I can get the definition of GROUP type? Is it a structure?
2) And what's the size of member "g"? Is it a word, dword or anything?

Thanks in advance
Post 15 Aug 2018, 14:38
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 15 Aug 2018, 18:49
Quote:
Note The SG_UNCONSTRAINED_GROUP and SG_CONSTRAINED_GROUP constants are not currently defined in a public header file.

In MSDN from 2008 (where there’s still information about Windows 9x compatibility) the parameter is specified just as reserved for all the OSes from Win95 up to Vista.

So, it seems, the parameter is just starting to be used and the public usage is not yet expected. It is plain unsigned int, i.e. platform-bitness-sized. Just pass zero on the stack.
Post 15 Aug 2018, 18:49
View user's profile Send private message Visit poster's website Reply with quote
fasmnewbie



Joined: 01 Mar 2011
Posts: 555
fasmnewbie 15 Aug 2018, 20:12
Thanks, DimonSoft.

I think it is still a DWORD-sized on Win64, plus your confirmation. Since it's the 5th argument, the placement is on [rsp+32] and dwFlags (the 6th argument) should be on [rsp+36] above the shadow space and not [rsp+40] as I originally thought. If so, then these two members share the same stack 'unit' (they occupy only 8 bytes instead of 16), and I have to re-adjust my stack allocation to ensure the alignment is observed (sub rsp,40 instead of sub rsp,56).
Post 15 Aug 2018, 20:12
View user's profile Send private message Visit poster's website 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.