コード例 #1
0
 // Token: 0x06001D4A RID: 7498 RVA: 0x0000AF9B File Offset: 0x0000919B
 public static void smethod_4(IntPtr hWnd, Enum55 nIndex, int dwNewLong)
 {
     if (Environment.Is64BitProcess)
     {
         if (Class265.SetWindowLongPtr(hWnd, nIndex, new IntPtr(dwNewLong)) == IntPtr.Zero)
         {
             throw new Win32Exception();
         }
     }
     else if (Class265.SetWindowLong(hWnd, nIndex, dwNewLong) == 0)
     {
         throw new Win32Exception();
     }
 }
コード例 #2
0
        // Token: 0x06001D48 RID: 7496 RVA: 0x0005DFE8 File Offset: 0x0005C1E8
        public static long smethod_2(IntPtr hWnd, Enum55 nIndex)
        {
            long num;

            if (Environment.Is64BitProcess)
            {
                num = Class265.GetWindowLongPtr(hWnd, nIndex).ToInt64();
            }
            else
            {
                num = (long)((ulong)Class265.GetWindowLong(hWnd, nIndex));
            }
            if (num == 0L)
            {
                throw new Win32Exception();
            }
            return(num);
        }
コード例 #3
0
 private static extern IntPtr GetWindowLongPtr(IntPtr hWnd, Enum55 nIndex);
コード例 #4
0
 private static extern uint GetWindowLong(IntPtr hWnd, Enum55 nIndex);
コード例 #5
0
 private static extern IntPtr SetWindowLongPtr(IntPtr hWnd, Enum55 nIndex, IntPtr dwNewLong);
コード例 #6
0
 private static extern int SetWindowLong(IntPtr hWnd, Enum55 nIndex, int dwNewLong);