Click or drag to resize

JCWindowsManagerGetWindowLongPtr Method


Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.17.240622-f0da58d62b7e98f73f32432917df8eb1a5f062a3
Syntax
public static IntPtr GetWindowLongPtr(
	IntPtr hWnd,
	int nIndex
)

Parameters

hWnd  IntPtr
A handle to the window and, indirectly, the class to which the window belongs.
nIndex  Int32
The zero-based offset to the value to be retrieved. Valid values are in the range zero through the number of bytes of extra window memory, minus the size of a LONG_PTR. To retrieve any other value, specify one of the JCWindowsManagerGWL values.

Return Value

IntPtr
If the function succeeds, the return value is the requested value. If the function fails, the return value is Zero. To get extended error information, call GetLastError.
Remarks
This static method is required because legacy OSes do not support GetWindowLongPtr
See Also