Could anyone tell me the APIs, or point to a good example, that will allow me to launch an application and record all of the DLLs that it uses or runs. After the app is finished I would also like to unload any DLLs that weren't closed by the app and aren't be used.

By the way, the app that I want to watch is 16-bit and run in a Win95/98 environment. The APIs can be either Win16 or Win32, I have access to both programming environments.

Thanks.

[Edited by SonGouki on 03-31-2000 at 01:28 PM]