Fiddler captures HTTP requests and responses so that you can examine them and debug them. What tools are out there that deliver a similar sort of functionality but for OS-internal requests and responses? Specifically I'm looking for a program that captures Windows-internal calls -- and if none exist, this would be a good opportunity to understand what I don't understand about how the Windows OS works.
For example, Fiddler has a button that says "View in Notepad" which lets you examine a response in Notepad. I want to know what command is executed here in the background that in fact opens up Notepad with the response text in it. I am guessing it should look something like notepad | $text
.