Have you ever wondered what happens inside IIS when a request comes in? There a several different scenarios depending on what file type the request accesses including static files, ISAPI extensions and CGI.

David Wang has written a nice article explaining the details:

HOWTO IIS 6 Request Processing Basics Part 1