Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetClassLongPtr" in [All]

user32

.
Summary
.

public static IntPtr GetClassLongPtr(HandleRef hWnd, int nIndex)

.

        return GetClassLongPtr64(hWnd, nIndex);

.

        return new IntPtr(GetClassLongPtr32(hWnd, nIndex));

.

public static extern uint GetClassLongPtr32(HandleRef hWnd, int nIndex);

.

[DllImport("user32.dll", EntryPoint="GetClassLongPtr")]

.

public static extern IntPtr GetClassLongPtr64(HandleRef hWnd, int nIndex);

.

Public Shared Function GetClassLongPtr(ByVal hWnd As HandleRef, ByVal nIndex As Integer) As IntPtr

.

        Return GetClassLongPtr64(hWnd, nIndex)

.

        Return New IntPtr(GetClassLongPtr32(hWnd, nIndex))

.

Public Shared Function GetClassLongPtr32(ByVal hWnd As HandleRef, <MarshalAs(UnmanagedType.I4)>nIndex As ClassLongFlags) As UInteger

.

<DllImport("user32.dll", EntryPoint:="GetClassLongPtr")> _

.

Public Shared Function GetClassLongPtr64(ByVal hWnd As HandleRef, <MarshalAs(UnmanagedType.I4)>nIndex As ClassLongFlags) As IntPtr

.

Public Declare Function GetClassLongPtr Lib "user32"

.

GetClassLongPtr is 64-bit safe, GetClassLong is not.

.

Because GetClassLongPtr is not available on older 32-bit operating systems, a special wrapper function is required. The MSDN documentation specifies that GetClassLongPtr is supported on older 32-bit operating systems such as Windows 95. However, the Win32 API actually uses a macro to change GetClassLongPtr to GetClassLong on these older systems.

.
Documentation
[GetClassLongPtr] on MSDN
.
Summary
.

public static IntPtr GetClassLongPtr(HandleRef hWnd, int nIndex)

.

        return GetClassLongPtr64(hWnd, nIndex);

.

        return new IntPtr(GetClassLongPtr32(hWnd, nIndex));

.

public static extern uint GetClassLongPtr32(HandleRef hWnd, int nIndex);

.

[DllImport("user32.dll", EntryPoint="GetClassLongPtr")]

.

public static extern IntPtr GetClassLongPtr64(HandleRef hWnd, int nIndex);

.

Public Shared Function GetClassLongPtr(ByVal hWnd As HandleRef, ByVal nIndex As Integer) As IntPtr

.

        Return GetClassLongPtr64(hWnd, nIndex)

.

        Return New IntPtr(GetClassLongPtr32(hWnd, nIndex))

.

Public Shared Function GetClassLongPtr32(ByVal hWnd As HandleRef, ByVal nIndex As Integer) As UInteger

.

<DllImport("user32.dll", EntryPoint:="GetClassLongPtr")> _

.

Public Shared Function GetClassLongPtr64(ByVal hWnd As HandleRef, ByVal nIndex As Integer) As IntPtr

.

GetClassLongPtr is 64-bit safe, GetClassLong is not.

.

Because GetClassLongPtr is not available on older 32-bit operating systems, a special wrapper function is required. The MSDN documentation specifies that GetClassLongPtr is supported on older 32-bit operating systems such as Windows 95. However, the Win32 API actually uses a macro to change GetClassLongPtr to GetClassLong on these older systems.

.
Documentation
[GetClassLongPtr] on MSDN

 
Access PInvoke.net directly from VS: