flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > Include File Additions

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
I posted previously on win32asm community board, but some definitions were still not included. These are:
Code:
struc MSGBOXPARAMS {
  .cbSize                dd      ?
  .hwndOwner             dd      ?
  .hInstance             dd      ?
  .lpszText              dd      ?
  .lpszCaption           dd      ?
  .dwStyle               dd      ?
  .lpszIcon              dd      ?
  .dwContextHelpId       dd      ?
  .lpfnMsgBoxCallback    dd      ?
  .dwLanguageId          dd      ?
}
struct MSGBOXPARAMS    

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 16 Jun 2003, 21:49
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7312
Location: Kraków, Poland
OK, thanks!
Post 16 Jun 2003, 22:59
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
I had a few more, but I forget. I am sure more will pop-up when I resume work on my projects...

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 16 Jun 2003, 23:54
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 334
Thanks Comrade. Smile I will find the other include files.

_________________
Code it... That's all...
Post 17 Jun 2003, 10:52
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
I've noticed structure names in wsock32.inc are invalid. They should be lowercase by definition. These structures are hostent and sockaddr_in.

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 27 Jun 2003, 03:14
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7312
Location: Kraków, Poland
Isn't it better to have that standarized?
Post 27 Jun 2003, 08:54
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
Lowercase is standard for those structures, no?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 27 Jun 2003, 21:39
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7312
Location: Kraków, Poland
I was thinking about another standard - just to have all structure types in uppercase. Or is it too unorthodox?
Post 27 Jun 2003, 21:55
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
Might cause confusion like it did to me. Tried lowercase, but then saw uppercase in include file. Its lowercase everywhere else.

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 27 Jun 2003, 23:28
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
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
Post 28 Jun 2003, 19:17
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7312
Location: Kraków, Poland
OK, you have convicted me - it's corrected in current 1.47 release.
Post 28 Jun 2003, 21:49
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
You are hereby sentenced to 100 years of programming. Razz

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 28 Jun 2003, 22:57
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
Privalov, you made WSAData in FASM 1.47. This one should be all uppercase. Twisted Evil Twisted Evil Twisted Evil

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    

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 30 Jun 2003, 06:20
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 110
Location: .th
Hi folks,

Why not saparate the include files to another package and let someone who have more time to contributes Question
Post 30 Jun 2003, 09:29
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1135
Location: Russian Federation
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
    

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 31 Aug 2003, 06:04
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 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-2019, Tomasz Grysztar.

Powered by rwasa.