RealGetWindowClass (user32)
Last changed: Patrick Porter-205.145.107.100

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern uint RealGetWindowClass(IntPtr hwnd, [Out] StringBuilder pszType,
   uint cchType);

VB Signature:

<DllImport("user32.dll", SetLastError:=True)> _
Private Shared Function RealGetWindowClass(ByVal hWnd As IntPtr, _
                        ByVal lpString As StringBuilder, _
                        ByVal nMaxCount As Integer) As Integer
End Function

User-Defined Types:

None.

Notes:

This API does not return the 'real' class name in xp when the control is themed So class names like "WindowsForms10.EDIT.app3" will not return the 'Edit' class name if the app is themed

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation