Solved

How many Windows API are in total?

Posted on 2000-03-25
8
181 Views
Last Modified: 2010-04-04
I do have to find (for a Linux/Windows project) how many Windows APIs are in total (or where can I find this information). If you answer with a number please indicate the source.
0
Comment
Question by:cbraescu
8 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 2657451
Hi
i would say it is impossible to know this because alot of api's are not documented by ms.
most every new dll has new api's in them..

for a good listing of them
look at the "tomes" series of api books

(search tomes at www.amazon.com)

i have 2 of them and there are more being published and both 2 books i have are approx 900 pages each ..

Regards Barry
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2657484
Numberof API's: 76452
Source        : Random(100000);


LOL   :O)


Now seriously, I agree with Barry. But what's the purpose of knowing this?

Eps.
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2657612
Notwithstanding the fact that there are 16 bit API functions still.. (for those still working in Windows 3.x). Then there are the functions that became obsolete from 16 bit to 32, along with the new Windows 2000 stuff.... good luck getting a definitive number! <g>
PS... lest we forget that MS doesn't always document everything..



0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 2657613
DrDelphi changed the proposed answer to a comment
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 15

Expert Comment

by:simonet
ID: 2657860
My guess is: HUNDREDS. Every new release of a major MS application also comes with its SDK, this its set of API. Not to mention APIs that are OS-specific. It's very hard to precise this number and I don't think even Microsoft knows that number.

BTW, I am defining API as a SET OF FUNCTIONS that are somehow related to a functionality/behaviour/feature. Thus, if you're talking about functions, my guess would be HUNDREDS THOUSANDS.

Alex
0
 
LVL 15

Accepted Solution

by:
NickRepin earned 500 total points
ID: 2658137
All Windows API are exported by DLLs.
So,

1) Go to \Windows, \Windows\System, \Windows\System2 etc (\Windows\...).

2) There is tdump.exe shipped with Borland's compilers. I'm not sure about Delphi, but sure about C++ and CBiulder.
Look at BIN directory.
You can use Dumpbin.exe is in the Miscrosoft SDK.

Run:

    tdump.exe <filename>.dll

where <filename> is a name of the each dll in the Windows' directories.

Tdump will produce the text file. The 'Exported' section in this file lists all APIs that are exported by the specified dll.

Count all those API for all dlls and you'll get a number which will be very close to the exact one.

I should note that many dlls are renamed. For example,

main.cpl (control panel applet) is really a dll. Rename it to main.dll and run tdump on it.

user.exe is a dll as well.
0
 
LVL 1

Expert Comment

by:yk030299
ID: 2659426
:-) N<MaxInt
0
 

Author Comment

by:cbraescu
ID: 2660054
Many thanks, Nick, and many thanks to all who cared to answer. I am going to develop a WinAPI-alike widget set for Linux, in order to easily port apps from Windows to Linux.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now