SetWindowLong

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern int SetWindowLong(
   IntPtr hWnd,
   int nIndex,
   int dwNewLong
);

Microsoft documentation: Link

Last updated