code to capture kernel debug messages

I need to capture kernel debug messages (similar to DbgView.exe) and look for a substring
so that I can play a warning tone upon detection. Is there sample code available for this.

Also, does this take a kernel component ( a custom driver to capture kernel messages) or can all of this be done in an app?

I also posted this in the windbg listserver? Please let me know if this is against the rules of OSR.

thanks,

Cross post answered on WinDBG (again…).

Thread locked.

-scott