How Windows shares code between programs

by arun on October 10, 2009

The Program Code has to reference the universal Windows code to perform that special function. Windows Operating System makes it easy to create reliable applications by letting each applications share individual Universal functions. In Packet of Universal Program Code are stored in files called Dynamic Link Libraries used from all displaying dialog boxes to saving open files. When an application needs to access a DLL, it refers to an open application programming interface to finding how to call that function. It has corresponding API to enable applications to successfully call the function performed by the DLL.

Now, API sends the command to the DLL with any data for the DLL to complete its operation with the proper instructions and information’s at hand, the DLL now loading routine into system memory then it’s executed by the CPU. DLL manages this operation via interface with Windows Operating System.

After complete the operation, the DLL stores the returned information in system memory and instructs Windows to release the DLL routine from memory. Finally, resumes running the application from where it left off before the DLL was called. Currently the process is complete and has occurred in the fraction of second.

Subscribe Now

If you enjoyed this article. Subscribe to the feed to get instantly updates of awesome article soon to come.

Leave a Comment

Previous post:

Next post: