flat assembler
Message board for the users of flat assembler.

Index > Windows > API minimum reqs

Author
Thread Post new topic Reply to topic
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
Where can you check minimum operating system for WinAPI calls nowadays? MSDN has set all to 2000+ when they dropped 9x support.. :/

..and I'm pretty sure you could create windows before w2k.

http://msdn.microsoft.com/en-us/library/ms632679%28VS.85%29.aspx

_________________
This is a block of text that can be added to posts you make.
Post 24 Oct 2010, 08:59
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Try to look for old SDK somewhere.
Post 24 Oct 2010, 10:37
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
mindcooler,

Take a look at Win16, many Win32 peculiarities come from there. Old VS (.Net seems to be a break point) can give you quite an insight of what Win32 has been developed to, before later cuts.

As a matter of fact, backward compatibility has its pros and cons.
Post 24 Oct 2010, 13:36
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
vid, Can't seem to find any old Platform SDKs, going to check out the latest one.

baldr, I don't understand your reply.

_________________
This is a block of text that can be added to posts you make.
Post 24 Oct 2010, 15:36
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
mindcooler,

It happens. Wink Windows 3.1 SDK (especially its help files) can shed some light on the basis upon which Win32 was built (compatibility, yeah). VS.Net contains headers/MSDN snapshot at about 2001, those files can be really educational.
Post 24 Oct 2010, 15:41
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Things like this doesn't work anymore?
Post 24 Oct 2010, 15:44
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
So I guess I should try to find an SDK from 1998-2000 to see which calls are 9x+?
Post 24 Oct 2010, 15:45
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932
just download windows 95 and run it under hypervisor, get all dlls and dump their exported names.
Post 24 Oct 2010, 15:54
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
b1528932 wrote:
just download windows 95 and run it under hypervisor, get all dlls and dump their exported names.
Not enough - functions is only part of the API, you need parameters as well... for some APIs, flags have been added over the years. For others, structure parms have been increased (the reason for the "dwSize" argument that lots of them have).

You'll probably want to find the last .chm release of the PlatformSDK if you need to support older versions of Windows... and good lucking finding those anywhere official >_<. There's a post either here or at asmcommunity mentioning the exact version of the last .chm version, but I couldn't find the post with "I'm a bit preoccupied with other stuff" lazy searches, and last time I went hunting Microsoft had pulled all the .chm PSDK downloads offline.

I have one of the later (but possibly not the latest) .chm PSDKs lying around in old backup archives; if not available elsewhere, I could probably put it on rapidshare or wherever; probably breaches the end-user license, but I doubt anybody would really care.

_________________
Image - carpe noctem
Post 24 Oct 2010, 16:15
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
So I guess I should try to find an SDK from 1998-2000 to see which calls are 9x+?

2003 SDK should still have 9x compatibility information, shouldn't it? But I agree f0dders way would be the best - those .chm PSDK docs were the best thing, back then.
Post 24 Oct 2010, 16:19
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
Isn't the fasm shipped includes 9x only? Perhaps I can use them as a reference.
Post 24 Oct 2010, 17:02
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
mindcooler,

Some alignment issues, and you're done.
Post 24 Oct 2010, 19:02
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
Alignment issues?
Post 25 Oct 2010, 06:59
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
mindcooler,

Straightforward translation of structures from C headers to fasm often disregards alignment requirements for multi-byte fields and padding of structure to meet sizeof requirements.
Post 25 Oct 2010, 15:49
View user's profile Send private message Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 140
SFeLi
vid wrote:
2003 SDK should still have 9x compatibility information, shouldn't it?

Yes, 2003 SDK contains all needed information about 9x and despite beeing .hxs not .chm, it works fine on my 9x machine.
Post 26 Oct 2010, 06:01
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
OK, I'm giving 2003 a shot

_________________
This is a block of text that can be added to posts you make.
Post 26 Oct 2010, 12:34
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.