GetWindowLong (user32)
Last changed: -212.47.207.1

.
Summary

C# Signature:

[DllImport("user32.dll", SetLastError=true)]
static extern int GetWindowLong(IntPtr hWnd, int nIndex);

VB Signature:

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

End Function

Constants:

GWL_ID = (-12)
GWL_STYLE = (-16)
GWL_EXSTYLE = (-20)

Notes:

This function is NOT 64-bit safe when retrieving handle or pointer values. Use GetWindowLongPtr instead when retrieving an IntPtr.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation