User32GetWindowLongPtr(IntPtr, WindowLongValues) Method

Retrieves information about the specified window.

The function also retrieves the value at a specified offset into the extra window memory.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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)]
public static IntPtr GetWindowLongPtr(
	IntPtr hWnd,
	WindowLongValues value
)

Parameters

hWnd  IntPtr
A handle to the window and, indirectly, the class to which the window belongs.
value  WindowLongValues
The value to be retrieved.

Return Value

IntPtr
If the function succeeds, the return value is the requested value.

If the function fails, the return value is Zero.

If SetWindowLongPtr(IntPtr, WindowLongValues, IntPtr) has not been called previously, GetWindowLongPtr(IntPtr, WindowLongValues) returns Zero for values in the extra window or class memory.

To get extended error information, call GetLastWin32Error.

Remarks

See Also