Solved

How many Windows API are in total?

Posted on 2000-03-25
8
182 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Dbf export problem to a Visual Foxpro application 6 187
creating threads in delphi 1 101
How to build JSON File in Delphi 6 3 32
DBGrid or StringGrid ? 6 88
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

785 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