Rohan_sK
Can someone please explain what is an API in terms of the software application and OS.
Though there are many articles avilable on the web, but yet can someone make it simple ( elaborate is more than welcome) to understand ( I am not from a CS background).
Though I have a basic idea I am interested to know in detail about what an API is , how it functions, and gets integrated with the OS and all about the calls and response calls and how they actually work. And what kind of tasks can an API ask the OS to do.
Guys can any CS guy be kind enough to answer this.
<a href="https://2.bp.blogspot.com/_MNBJ6ZrFbZE/SvYYrZaE1fI/AAAAAAAAAHI/U0_0DF0W59w/s1600-h/API.JPG" target="_blank" rel="nofollow noopener noreferrer">API.JPG (image)</a>
- basically consists of a variety of functions or procedures that an application program can call upon, as well as data structures, constants, and various definitions needed to describe system resources.
- Applications programs use the API by including calls to routines in a program library
- For example, this simple function puts a message box on the screen:
MessageBox (0, âProgram Initialization Failed!â,
âError!â, MB_ICONEXCLAMATION | MB_OK | MB_
SYSTEMMODAL);
- API for a major operating system such as Windows contains hundreds of functions, data structures,and definitions.
- In order to simplify learning to access the necessary functions and to promote the writing of readable code, compiler developers such as microsoft and Borland have devised frameworks of C++ classes that package related functions together.
<a href="https://2.bp.blogspot.com/_MNBJ6ZrFbZE/SvYYrZaE1fI/AAAAAAAAAHI/U0_0DF0W59w/s1600-h/API.JPG" target="_blank" rel="nofollow noopener noreferrer">API.JPG (image)</a>
![[IMG]](proxy.php?image=http%3A%2F%2F2.bp.blogspot.com%2F_MNBJ6ZrFbZE%2FSvYYrZaE1fI%2FAAAAAAAAAHI%2FU0_0DF0W59w%2Fs1600-h%2FAPI.JPG&hash=8ade70e9524e86a3f4c73204a98f95ef)