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 "SetWindowLongPtr" in [All]

user32

.
Summary
The SetWindowLongPtr API. Use this one instead of SetWindowLong to assure 64 bit compatibility.
.

public static IntPtr SetWindowLongPtr(HandleRef hWnd, int nIndex, IntPtr dwNewLong)

.

      return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);

.

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

.

private static extern IntPtr SetWindowLongPtr64(HandleRef hWnd, int nIndex, IntPtr dwNewLong);

.

  <System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint:="SetWindowLongPtr")> _

.

  Private Shared Function SetWindowLongPtr64(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

  Public Shared Function SetWindowLongPtr(ByVal hWnd As IntPtr, nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

      Return SetWindowLongPtr64(hWnd, nIndex, dwNewLong)

.

Public Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongPtrA" _

.
Documentation
[SetWindowLongPtr] on MSDN
.

Additional information: Unable to find an entry point named 'SetWindowLongPtrA' in DLL 'user32'

.
Summary
The SetWindowLongPtr API. Use this one instead of SetWindowLong to assure 64 bit compatibility.
.

// SetWindowLongPtr

.

public static IntPtr SetWindowLongPtr(HandleRef hWnd, int nIndex, IntPtr dwNewLong)

.

      return SetWindowLongPtr64(hWnd, nIndex, dwNewLong);

.

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

.

private static extern IntPtr SetWindowLongPtr64(HandleRef hWnd, int nIndex, IntPtr dwNewLong);

.

  <System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint:="SetWindowLongPtr")> _

.

  Private Shared Function SetWindowLongPtr64(ByVal hWnd As IntPtr, <MarshalAs(UnmanagedType.I4)>nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

  Public Shared Function SetWindowLongPtr(ByVal hWnd As IntPtr, nIndex As WindowLongFlags, ByVal dwNewLong As IntPtr) As IntPtr

.

      Return SetWindowLongPtr64(hWnd, nIndex, dwNewLong)

.

Public Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongPtrA" _

.
Documentation
[SetWindowLongPtr] on MSDN
.

Additional information: Unable to find an entry point named 'SetWindowLongPtrA' in DLL 'user32'

Enums

.
Summary

 
Access PInvoke.net directly from VS: