//Specifies the zero-based offset to the value to be set.
        //Valid values are in the range zero through the number of bytes of extra window memory, minus the size of an integer.

        internal static int SetWindowLong(IntPtr windowHandle, GWLParameter nIndex, int dwNewLong)
            {
            if (IntPtr.Size == 8) //Check if this window is 64bit
                {
                return (int) NativeMethods.SetWindowLongPtr64(windowHandle, nIndex, new IntPtr(dwNewLong));
                }
            return NativeMethods.SetWindowLong32(windowHandle, nIndex, dwNewLong);
            }
예제 #2
0
 internal static extern int SetWindowLong32
     (IntPtr windowHandle, GWLParameter nIndex, int dwNewLong);