SetClassLongPtr

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

Microsoft documentation: Link

Last updated