Solved

How many Windows API are in total?

Posted on 2000-03-25
8
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10 Round Image 2 232
Reconfigure Delphi Install? 2 78
enhance the following code 3 54
Delphi, TImage, Png 2 60
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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