[DllImport("user32.dll")]
static extern uint RealGetWindowClass(IntPtr hwnd, [Out] StringBuilder pszType,
uint cchType);
<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
None.
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
Please add some!
public static string RealGetWindowClassM(IntPtr hWnd)
{
StringBuilder pszType = new StringBuilder();
pszType.Capacity = 255;
RealGetWindowClass(hWnd, pszType, (UInt32)pszType.Capacity);
return pszType.ToString();
}
Do you know one? Please contribute it!