flat assembler
Message board for the users of flat assembler.

Index > Main > includes for windows

Author
Thread Post new topic Reply to topic
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 06 May 2004, 00:44
some c headers converted for fasm. and imports for some dlls.
here's macros that you need for these:
Code:
macro _union_declare_data [arg] {
forward
  arg
}

macro union [arg] {
common
  local ..union_addr, peak
  ..union_addr:
  peak = $

forward
  virtual at ..union_addr
    _union_declare_data arg
    if $ > peak
      peak = $
    end if
  end virtual

common
  rb peak - $
}

macro switch var {
  macro case val _%
    macro var ¤ val
  %_

  macro endswitch _%
    var#var
    purge var#var
  %_

  default fix case var
  macro var#var _% %_
}
    

anymore headers you would like to be converted? more dlls that need imports?

[edit]
Sorry for so lame post, i was tired when wrote that. Here's list of .h files that has been converted:

    commctrl.h, commdlg.h, gl.h, glu.h, guiddef.h, odbcinst.h, odbcss.h, oleauto.h, qos.h, richedit.h, shellapi.h, sql.h, sqlext.h, sqltypes.h, sqlucode.h, winbase.h, windef.h, winerror.h, wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls32.h, winnt.h, winperf.h, winreg.h, winsock2.h, winspool.h, winsvc.h, winuser.h, wtypes.h

Imports(and parameter numbers) are for these dlls:

    kernel32, user32, gdi32, comctl32, comdlg32, shell32, ws2_32, opengl32, glu32, odbc32, odbccp32, wininet, mpr, advapi32, winspool, oleaut32

There are equates, structures and imports for both ansi and unicode. You can change witch one to use by typing 'CHARSET fix ANSI' or 'CHARSET fix UNICODE' before including these files.

These need to be BEFORE switch macro:
Code:
¤ fix _¤
_¤ fix __¤
__¤ fix #

_% fix !%
!% fix {

%_ fix %!
%! fix }
    

[/edit]

[edit2]
Could someone move this to windows forum? Don't know why i posted this in main..
[/edit2]


Description:
Download
Filename: incs.zip
Filesize: 209.08 KB
Downloaded: 617 Time(s)

Post 06 May 2004, 00:44
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.