User32GetWindowLongPtr(HandleRef, WindowLongValues) Method
Retrieves information about the specified window.
The function also retrieves the value at a specified offset into the extra window memory.
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)]
public static IntPtr GetWindowLongPtr(
HandleRef hWnd,
WindowLongValues value
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetWindowLongPtr (
hWnd As HandleRef,
value As WindowLongValues
) As IntPtr
Dim hWnd As HandleRef
Dim value As WindowLongValues
Dim returnValue As IntPtr
returnValue = User32.GetWindowLongPtr(hWnd,
value)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static IntPtr GetWindowLongPtr(
HandleRef hWnd,
WindowLongValues value
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetWindowLongPtr :
hWnd : HandleRef *
value : WindowLongValues -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd HandleRef
-
A handle to the window and, indirectly, the class to which the window belongs.
- value WindowLongValues
-
The value to be retrieved.
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.