GetRoleText (oleacc)
Last changed: -84.155.137.237

.
Summary

The GetRoleText function retrieves the localized string that describes an object's role for the specified role value.

C# Signature:

[DllImport("oleacc.dll")]
public static extern uint GetRoleText( uint dwRole, [Out] StringBuilder lpszRole, uint cchRoleMax);

VB .NET Signature:

    <DllImport("oleacc.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
    Private Shared Function GetRoleText(ByVal role As Integer, ByVal outRole As StringBuilder, ByVal outRoleSize As Integer) As Integer
    End Function

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a SystemAccessibleObject class to access accessible objects and handle accessible events.

Documentation
GetRoleText on MSDN