Sara Ford, formerly the de facto head of Accessibility testing for all of Visual Studio (and a Black Belt in Karate, so don’t mess with her), published a handy-dandy utility for verifying the correctness of common MSAA properties and roles on GotDotNet back in 2004. Source is included in VB.NET-form.

MSAA, or Microsoft Active Accessibility, is the technology used to supply additional information describing a user interface, in order to allow users dependent upon assistive technologies the ability to interact with Windows software. There’s a wealth of information on MSDN about MSAA.