User32SetClassLong Method

Overload List

SetClassLong(HandleRef, ClassLongValues, UInt32) Replaces the specified 32-bit (long) value at the specified offset into the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.

Note: This function has been superseded by the SetClassLongPtr(IntPtr, ClassLongValues, IntPtr) function.

To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetClassLongPtr(IntPtr, ClassLongValues, IntPtr).
Obsolete.

SetClassLong(IntPtr, ClassLongValues, UInt32) Replaces the specified 32-bit (long) value at the specified offset into the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.

Note: This function has been superseded by the SetClassLongPtr(IntPtr, ClassLongValues, IntPtr) function.

To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetClassLongPtr(IntPtr, ClassLongValues, IntPtr).
Obsolete.

SetClassLong(SafeHandle, ClassLongValues, UInt32) Replaces the specified 32-bit (long) value at the specified offset into the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.

Note: This function has been superseded by the SetClassLongPtr(IntPtr, ClassLongValues, IntPtr) function.

To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetClassLongPtr(IntPtr, ClassLongValues, IntPtr).
Obsolete.

See Also