flat assembler
Message board for the users of flat assembler.
Index
> Windows > Include File Additions |
Author |
|
Tomasz Grysztar 16 Jun 2003, 22:59
OK, thanks!
|
|||
16 Jun 2003, 22:59 |
|
comrade 16 Jun 2003, 23:54
I had a few more, but I forget. I am sure more will pop-up when I resume work on my projects...
|
|||
16 Jun 2003, 23:54 |
|
Vortex 17 Jun 2003, 10:52
Thanks Comrade. I will find the other include files.
_________________ Code it... That's all... |
|||
17 Jun 2003, 10:52 |
|
comrade 27 Jun 2003, 03:14
I've noticed structure names in wsock32.inc are invalid. They should be lowercase by definition. These structures are hostent and sockaddr_in.
|
|||
27 Jun 2003, 03:14 |
|
Tomasz Grysztar 27 Jun 2003, 08:54
Isn't it better to have that standarized?
|
|||
27 Jun 2003, 08:54 |
|
comrade 27 Jun 2003, 21:39
Lowercase is standard for those structures, no?
|
|||
27 Jun 2003, 21:39 |
|
Tomasz Grysztar 27 Jun 2003, 21:55
I was thinking about another standard - just to have all structure types in uppercase. Or is it too unorthodox?
|
|||
27 Jun 2003, 21:55 |
|
comrade 27 Jun 2003, 23:28
Might cause confusion like it did to me. Tried lowercase, but then saw uppercase in include file. Its lowercase everywhere else.
|
|||
27 Jun 2003, 23:28 |
|
scientica 28 Jun 2003, 19:17
privalov wrote: I was thinking about another standard - just to have all structure types in uppercase. Or is it too unorthodox? Are you meaning something like this: Code: struc FOOBAR{ .MemberNumber0 dd ? .FileName db CONSTANT_FILE_NAME_LEN } I prefer below for _custom_ structures (MixedCase for structure name and for members, and UPPERCASE_UNDERSCORE for cconstants). Seems to me as all Win API structures are upppercase, winsock lowercase (except for WSAData and other WSA things). I think the best is too follow the documentation, if win32.hlp says uses uppeercase for structure A then that should be so, wshlp.hlp says lower case for structure b so let it be lowercase for wsock structs. The lack of standard is confucing, but nothing confuses me more than differences betwene the documentation and source, if the docs defines it whatEverCase then whatEverCase is what I expect from the structure in the include files. Code: struc FooBar{ .MemberNumber0 dd ? .FileName db CONSTANT_FILE_NAME_LEN } _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
28 Jun 2003, 19:17 |
|
Tomasz Grysztar 28 Jun 2003, 21:49
OK, you have convicted me - it's corrected in current 1.47 release.
|
|||
28 Jun 2003, 21:49 |
|
comrade 28 Jun 2003, 22:57
You are hereby sentenced to 100 years of programming.
|
|||
28 Jun 2003, 22:57 |
|
comrade 30 Jun 2003, 06:20
Privalov, you made WSAData in FASM 1.47. This one should be all uppercase.
There are more additions to equates/comctl32.inc: Code: ; Custom Draw flags CDRF_DODEFAULT = 0 CDRF_NEWFONT = 2 CDRF_SKIPDEFAULT = 4 CDRF_NOTIFYPOSTPAINT = 16 CDRF_NOTIFYITEMDRAW = 32 CDRF_NOTIFYSUBITEMDRAW = 32 CDRF_NOTIFYPOSTERASE = 0x40 CDDS_PREPAINT = 1 CDDS_POSTPAINT = 2 CDDS_PREERASE = 3 CDDS_POSTERASE = 4 CDDS_ITEM = 0x10000 CDDS_ITEMPREPAINT = (CDDS_ITEM OR CDDS_PREPAINT) CDDS_ITEMPOSTPAINT = (CDDS_ITEM OR CDDS_POSTPAINT) CDDS_ITEMPREERASE = (CDDS_ITEM OR CDDS_PREERASE) CDDS_ITEMPOSTERASE = (CDDS_ITEM OR CDDS_POSTERASE) CDDS_SUBITEM = 0x20000 CDIS_SELECTED = 1 CDIS_GRAYED = 2 CDIS_DISABLED = 4 CDIS_CHECKED = 8 CDIS_FOCUS = 16 CDIS_DEFAULT = 32 CDIS_HOT = 64 CDIS_MARKED = 0x80 CDIS_INDETERMINATE = 0x0100 LVIF_NORECOMPUTE = 0800h LVIS_ACTIVATING = 0020h LVSICF_NOINVALIDATEALL = 00000001h LVSICF_NOSCROLL = 00000002h |
|||
30 Jun 2003, 06:20 |
|
BiDark 30 Jun 2003, 09:29
Hi folks,
Why not saparate the include files to another package and let someone who have more time to contributes |
|||
30 Jun 2003, 09:29 |
|
comrade 31 Aug 2003, 06:04
Code: struc DCB { .DCBlength dd ? .BaudRate dd ? .fbits dd ? ; fBinary:1,fParity:1,fOutxCtsFlow:1,fOutxDsrFlow:1,fDtrControl:2,fDsrSensitivity:1,fTXContinueOnXoff:1,fOutX:1,fInX:1,fErrorChar:1,fNull:1,fRtsControl:2,fAbortOnError:1,fDummy2:17 .wReserved dw ? .XonLim dw ? .XoffLim dw ? .ByteSize db ? .Parity db ? .StopBits db ? .XonChar db ? .XoffChar db ? .ErrorChar db ? .EofChar db ? .EvtChar db ? .wReserved1 dw ? } struct DCB NOPARITY = 0 ODDPARITY = 1 EVENPARITY = 2 MARKPARITY = 3 SPACEPARITY = 4 ONESTOPBIT = 0 ONE5STOPBITS = 1 TWOSTOPBITS = 2 struc COMMTIMEOUTS { .ReadIntervalTimeout dd ? .ReadTotalTimeoutMultiplier dd ? .ReadTotalTimeoutConstant dd ? .WriteTotalTimeoutMultiplier dd ? .WriteTotalTimeoutConstant dd ? } struct COMMTIMEOUTS struc OVERLAPPED { .Internal dd ? .InternalHigh dd ? .Offset dd ? .OffsetHigh dd ? .hEvent dd ? } struct OVERLAPPED |
|||
31 Aug 2003, 06:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.