A Web application is composed of script and component files within a directory structure boundary. The application directory structure must be associated with a Web server, and the structure must be mirrored in the IIS Metabase. You can use the IIS snap-in user interface, the IIS Admin Objects with ASP scripts, or the IIS Admin Base Object with C++ to establish your application's directory structure in the metabase. Every file and directory subordinate to your application's starting point directory will be included in its boundary, except for those directories and files that are contained in a previously defined application.
After you have established your application's directory structure in the metabase, you can use the IIS Admin Objects to create an application definition package that IIS and Component Services use to manage the execution of the application. Additional methods are available to delete or unload the application, or to retrieve its status. You can also use special methods to disable an application definition package while retaining the definition, so you can rename the application, or move or copy it to another location in the metabase, and then enable its definition package again.
Note You can find iwamreg.h and other relevant header files in the \INETPUB\IISSAMPLES\SDK\INCLUDE directory.