GetWindowTextLength (user32)
Last changed: -116.2.128.56

.
Summary

C# Signature:

[DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
static extern int GetWindowTextLength(IntPtr hWnd);

VB.NET Signature:

<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function GetWindowTextLength(ByVal hwnd As IntPtr) As Integer
End Function

VB Signature:

Public Declare Function GetWindowTextLength Lib "user32.dll" Alias "GetWindowTextLengthA" _
         (ByVal hWnd As Long) As Long

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Often used with GetWindowText

Sample Code:

(See GetWindowText.)

Alternative Managed API:

Do you know one? Please contribute it!

Documentation