User32SetClassLong(IntPtr, ClassLongValues, UInt32) Method
Note: This API is now obsolete.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
[ObsoleteAttribute("Call SetClassLongPtr instead.", false)]
public static uint SetClassLong(
IntPtr hWnd,
ClassLongValues value,
uint newValue
)
<DllImportAttribute("User32.dll", SetLastError := true>]
<ObsoleteAttribute("Call SetClassLongPtr instead.", false)>
Public Shared Function SetClassLong (
hWnd As IntPtr,
value As ClassLongValues,
newValue As UInteger
) As UInteger
Dim hWnd As IntPtr
Dim value As ClassLongValues
Dim newValue As UInteger
Dim returnValue As UInteger
returnValue = User32.SetClassLong(hWnd,
value, newValue)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
[ObsoleteAttribute(L"Call SetClassLongPtr instead.", false)]
static unsigned int SetClassLong(
IntPtr hWnd,
ClassLongValues value,
unsigned int newValue
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
[<ObsoleteAttribute("Call SetClassLongPtr instead.", false)>]
static member SetClassLong :
hWnd : IntPtr *
value : ClassLongValues *
newValue : uint32 -> uint32
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the window and, indirectly, the class to which the window belongs.
- value ClassLongValues
-
The value to be replaced.
To set a 32-bit value in the extra class memory, specify the positive,
zero-based byte offset of the value to be set.
Valid values are in the range zero through the number of bytes of extra class memory,
minus four; for example, if you specified 12 or more bytes of extra class memory,
a value of 8 would be an index to the third 32-bit integer.
- newValue UInt32
-
The replacement value.
UInt32
If the function succeeds, the return value is the previous value of the specified 32-bit integer.
If this was not previously set, the return value is zero.
If the function fails, the return value is Zero.
To get extended error information, call
GetLastWin32Error.