User32GetClassLongPtr(HandleRef, ClassLongValues) Method
Retrieves the specified value from the WNDCLASSEX structure associated with the specified window.
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", CharSet = CharSet.Auto, SetLastError = true)]
public static IntPtr GetClassLongPtr(
HandleRef hWnd,
ClassLongValues value
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto, SetLastError := true>]
Public Shared Function GetClassLongPtr (
hWnd As HandleRef,
value As ClassLongValues
) As IntPtr
Dim hWnd As HandleRef
Dim value As ClassLongValues
Dim returnValue As IntPtr
returnValue = User32.GetClassLongPtr(hWnd,
value)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto, SetLastError = true)]
static IntPtr GetClassLongPtr(
HandleRef hWnd,
ClassLongValues value
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto, SetLastError = true)>]
static member GetClassLongPtr :
hWnd : HandleRef *
value : ClassLongValues -> 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 ClassLongValues
-
The value to be retrieved.
To retrieve a value from the extra class memory, specify the positive,
zero-based byte offset of the value to be retrieved.
Valid values are in the range zero through the number of bytes of extra class memory,
minus eight; for example, if you specified 24 or more bytes of extra class memory,
a value of 16 would be an index to the third integer.
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
GetLastWin32Error.