SetWindowLong (user32)
Last changed: randomdude12-104.245.251.252

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

VB.NET Signature:

    Private Declare Auto Function SetWindowLong Lib "User32.Dll" _
    (ByVal hWnd As IntPtr, _
    ByVal nIndex As Integer, _
    ByVal dwNewLong As Integer) As Integer

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Certain window data is cached, so changes you make using SetWindowLong will not take effect until you call the SetWindowPos function. Specifically, if you change any of the frame styles, you must call SetWindowPos with the SWP_FRAMECHANGED flag for the cache to be updated properly.

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation