, , , GetWindowLongPtr long. LONG_PTR, , .
GetWindowLong http://msdn.microsoft.com/en-us/library/ms633584(VS.85).aspx
LONG GetWindowLong(
HWND hWnd,
int nIndex
);
GetWindowLongPtr http://msdn.microsoft.com/en-us/library/ms633585(VS.85).aspx
LONG_PTR GetWindowLongPtr(
HWND hWnd,
int nIndex
);
MSDN, 64- Windows, GetWindowLongPtr, GetWindowLong 32- LONG, , 32- . , GetWindowLong GetWindowLongPtr, , , .
This is an import that you should use to return a value from GetWindowLongPtr.
[DllImport("user32.dll")]
static extern long GetWindowLongPtr(IntPtr hWnd, int nIndex);
.NET uses 64-bit longregardless of platform.
source
share