コード例 #1
0
 internal static IntPtr SetWindowLong_N(IntPtr handle, GetWindowLongOffsets item, IntPtr newValue)
 {
     return(IntPtr.Size == 4 ? (IntPtr)SetWindowLong(handle, item, newValue.ToInt32()) :
            SetWindowLongPtr(handle, item, newValue));
 }
コード例 #2
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
 static extern LONG_PTR SetWindowLongPtrInternal(HWND hWnd, GetWindowLongOffsets nIndex,
     [MarshalAs(UnmanagedType.FunctionPtr)]WindowProcedure dwNewLong);
コード例 #3
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
 static extern ULONG GetWindowLongInternal(HWND hWnd, GetWindowLongOffsets nIndex);
コード例 #4
0
ファイル: API.cs プロジェクト: nebenjamin/cpsc-431-project
 internal static extern LONG_PTR GetWindowLongPtr(
     HWND hWnd,
     GetWindowLongOffsets nIndex
 );
コード例 #5
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
 static extern LONG SetWindowLongInternal(HWND hWnd, GetWindowLongOffsets nIndex, LONG dwNewLong);
コード例 #6
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 private static UIntPtr GetWindowLongPtrInternal(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #7
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 private static IntPtr SetWindowLongPtr(IntPtr hWnd, GetWindowLongOffsets nIndex, IntPtr dwNewLong);
コード例 #8
0
ファイル: Native.cs プロジェクト: notperry1234567890/osu
 public static extern long GetWindowLong(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #9
0
 private static extern IntPtr SetWindowLongPtrInternal(IntPtr hWnd, GetWindowLongOffsets nIndex, IntPtr dwNewLong);
コード例 #10
0
 static extern UIntPtr GetWindowLongPtr(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #11
0
ファイル: Native.cs プロジェクト: notperry1234567890/osu
 static extern int SetWindowLongInternal(IntPtr hWnd, GetWindowLongOffsets nIndex, int dwNewLong);
コード例 #12
0
 static extern uint GetWindowLong(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #13
0
 internal static UIntPtr GetWindowLong_N(IntPtr handle, GetWindowLongOffsets index)
 {
     return(IntPtr.Size == 4 ? (UIntPtr)GetWindowLong(handle, index) : GetWindowLongPtr(handle, index));
 }
コード例 #14
0
 static extern IntPtr SetWindowLongPtr(IntPtr hWnd, GetWindowLongOffsets nIndex, IntPtr dwNewLong);
コード例 #15
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 internal static IntPtr SetWindowLong(IntPtr handle, GetWindowLongOffsets item, IntPtr newValue)
 {
     IntPtr num = IntPtr.Zero;
       Functions.SetLastError(0);
       num = IntPtr.Size != 4 ? Functions.SetWindowLongPtr(handle, item, newValue) : new IntPtr(Functions.SetWindowLong(handle, item, newValue.ToInt32()));
       if (num == IntPtr.Zero)
       {
     int lastWin32Error = Marshal.GetLastWin32Error();
     if (lastWin32Error != 0)
       throw new PlatformException(string.Format("Failed to modify window border. Error: {0}", (object) lastWin32Error));
       }
       return num;
 }
コード例 #16
0
ファイル: API.cs プロジェクト: umby24/ClassicalSharp
 internal static UIntPtr GetWindowLong_N(IntPtr handle, GetWindowLongOffsets index)
 {
     return IntPtr.Size == 4 ? (UIntPtr)GetWindowLong(handle, index) : GetWindowLongPtr(handle, index);
 }
コード例 #17
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 private static uint GetWindowLongInternal(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #18
0
ファイル: API.cs プロジェクト: umby24/ClassicalSharp
 internal static IntPtr SetWindowLong_N(IntPtr handle, GetWindowLongOffsets item, IntPtr newValue)
 {
     return IntPtr.Size == 4 ? (IntPtr)SetWindowLong(handle, item, newValue.ToInt32()) :
         SetWindowLongPtr(handle, item, newValue);
 }
コード例 #19
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 private static int SetWindowLong(IntPtr hWnd, GetWindowLongOffsets nIndex, int dwNewLong);
コード例 #20
0
ファイル: API.cs プロジェクト: umby24/ClassicalSharp
 static extern uint GetWindowLong(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #21
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 private static IntPtr SetWindowLongPtr(IntPtr hWnd, GetWindowLongOffsets nIndex, [MarshalAs(UnmanagedType.FunctionPtr)] WindowProcedure dwNewLong);
コード例 #22
0
ファイル: API.cs プロジェクト: umby24/ClassicalSharp
 static extern UIntPtr GetWindowLongPtr(IntPtr hWnd, GetWindowLongOffsets nIndex);
コード例 #23
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
        // SetWindowLongPtr does not exist on x86 platforms (it's a macro that resolves to SetWindowLong).
        // We need to detect if we are on x86 or x64 at runtime and call the correct function
        // (SetWindowLongPtr on x64 or SetWindowLong on x86). Fun!
        internal static IntPtr SetWindowLong(IntPtr handle, GetWindowLongOffsets item, IntPtr newValue)
        {
            // SetWindowPos defines its error condition as an IntPtr.Zero retval and a non-0 GetLastError.
            // We need to SetLastError(0) to ensure we are not detecting on older error condition (from another function).

            IntPtr retval = IntPtr.Zero;
            SetLastError(0);

            if (IntPtr.Size == 4)
                retval = new IntPtr(SetWindowLongInternal(handle, item, newValue.ToInt32()));
            else
                retval = SetWindowLongPtrInternal(handle, item, newValue);

            if (retval == IntPtr.Zero)
            {
                int error = Marshal.GetLastWin32Error();
                if (error != 0)
                    throw new PlatformException(String.Format("Failed to modify window border. Error: {0}", error));
            }

            return retval;
        }
コード例 #24
0
ファイル: API.cs プロジェクト: umby24/ClassicalSharp
 static extern int SetWindowLong(IntPtr hWnd, GetWindowLongOffsets nIndex, int dwNewLong);
コード例 #25
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
 static extern LONG_PTR SetWindowLongPtrInternal(HWND hWnd, GetWindowLongOffsets nIndex, LONG_PTR dwNewLong);
コード例 #26
0
ファイル: API.cs プロジェクト: umby24/ClassicalSharp
 static extern IntPtr SetWindowLongPtr(IntPtr hWnd, GetWindowLongOffsets nIndex, IntPtr dwNewLong);
コード例 #27
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
        internal static UIntPtr GetWindowLong(IntPtr handle, GetWindowLongOffsets index)
        {
            if (IntPtr.Size == 4)
                return (UIntPtr)GetWindowLongInternal(handle, index);

            return GetWindowLongPtrInternal(handle, index);
        }
コード例 #28
0
ファイル: Functions.cs プロジェクト: tanis2000/FEZ
 internal static UIntPtr GetWindowLong(IntPtr handle, GetWindowLongOffsets index)
 {
     if (IntPtr.Size == 4)
     return (UIntPtr) Functions.GetWindowLongInternal(handle, index);
       else
     return Functions.GetWindowLongPtrInternal(handle, index);
 }
コード例 #29
0
ファイル: API.cs プロジェクト: jpbruyere/opentk
 static extern UIntPtr GetWindowLongPtrInternal(HWND hWnd, GetWindowLongOffsets nIndex);
コード例 #30
0
 internal static extern long SetWindowLong(IntPtr hWnd, GetWindowLongOffsets nIndex, long dwNewLong);