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: