Solved

How many Windows API are in total?

Posted on 2000-03-25
8
183 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 6

Expert Comment

by:DrDelphi
ID: 2657613
DrDelphi changed the proposed answer to a comment
0
 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

789 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