flat assembler
Message board for the users of flat assembler.

Index > Windows > windows includes, and tutorials?

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
What are the windows include folders APIW and APIA used for?
Are there any tutorials on how to use the fasm windows includes in a windows program?
Post 30 Apr 2004, 17:20
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
W stands for Wide, the unicode charset which uses 2 bytes per character, it supports all the worlds alphabets. A is for ANSI, the traditional american charset which uses 1 byte per char, it supports only a limited amount of characters.

youll notice alot of different api functions have 2 names, like FindWindowA and FindWindowW. the difference being how you declare the string that holds the buffer. use APIW when calling unicode api functions, A for ansi api functions. i believe microsoft is leaning towards only using unicode in future windows versions
Post 30 Apr 2004, 21:15
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
It's worth noting that the ANSI version depends on the OEM codepage/charset...
Post 30 Apr 2004, 21:22
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
So, the unicode versions makes your program more useable in other countries? Can all windows functions work with unicode strings? In the examples and includes I looked at, I don't see them used anywhere. I noticed they are functions for various windows system/gdi dll's. Looks like a pretty good job of defining the windows functions, is this all of them, or are there more?
Post 01 May 2004, 00:15
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: usa
coconut
theres no guarantee every windows version supports unicode. most api functions that deal with string buffers have an ANSI and unicode version, only the W function will support unicode. i dont think the fasm package has any included example on unicode. new api functions come out randomly, usually every service pack adds a few. you can use the program here: http://www.dependencywalker.com/ to view all functions a dll exports
Post 01 May 2004, 04:39
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.