Click or drag to resize

WindowsUtilitiesSetWindowLong Method

Changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static IntPtr SetWindowLong(
	IntPtr handle,
	WL index,
	IntPtr newLong
)

Parameters

handle
Type: SystemIntPtr
A handle to the window and, indirectly, the class to which the window belongs. The SetWindowLong function fails if the process that owns the window specified by the handle parameter is at a higher process privilege in the UIPI hierarchy than the process the calling thread resides in.
index
Type: callback.ShellBoost.Core.UtilitiesWL
The zero-based offset to the value to be set.
newLong
Type: SystemIntPtr
The replacement value.

Return Value

Type: IntPtr
The previous value or IntPtr.Zero.
See Also