コード例 #1
0
ファイル: MainWindow.cs プロジェクト: tablesmit/NRegFreeCom
        private static unsafe void Main()
        {
            MainWindow mainWindow = new MainWindow();

            MSG message = new MSG();
            while (message.message != NativeConstants.WM_QUIT)
            {
                if (NativeMethods.PeekMessage(&message, IntPtr.Zero, 0, 0, NativeConstants.PM_REMOVE))
                {
                    NativeMethods.TranslateMessage(&message);
                    NativeMethods.DispatchMessage(&message);
                }
            }
        }
コード例 #2
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int TranslateAccelerator(HWND hwnd, HANDLE hAccTable, ref MSG lpMsg);
コード例 #3
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int PeekMessage(ref MSG lpMsg, HWND hwnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg);
コード例 #4
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int IsDialogMessage(HANDLE hDlg, ref MSG lpMsg);
コード例 #5
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int GetMessage(ref MSG lpMsg, HWND hwnd, int wMsgFilterMin, int wMsgFilterMax);
コード例 #6
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int DispatchMessage(ref MSG lpMsg);
コード例 #7
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int CallMsgFilter(ref MSG lpMsg, int ncode);
コード例 #8
0
ファイル: Win32.cs プロジェクト: tablesmit/NRegFreeCom
 public static unsafe extern BOOL PeekMessage(MSG* lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg);
コード例 #9
0
ファイル: User32.cs プロジェクト: huipengly/WGestures
 public static extern bool GetMessage(out MSG lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax);
コード例 #10
0
ファイル: Application.cs プロジェクト: Zulkir/Beholder
        public int Run()
        {
            Functions.ShowWindow(gameWindow.Handle, SW.SHOW);
            Functions.UpdateWindow(gameWindow.Handle);

            timer.Start();

            MSG msg = new MSG();

            while (msg.Message != WM.QUIT)
            {
                if (Functions.PeekMessage(out msg, IntPtr.Zero, 0, 0, PM.REMOVE))
                {
                    //messages++;
                    //Functions.SetWindowText(gameWindow.Handle, string.Format("Message #{0}: {1}", messages.ToString(), msg.Message.ToString()));

                    Functions.TranslateMessage(ref msg);
                    Functions.DispatchMessage(ref msg);
                }
                else
                {
                    gameWindow.OnNewFrame();
                    timer.UpdateTime();

                    if (NewFrame != null)
                    {
                        NewFrame(timer.RealTime);
                    }
                }

            }

            return msg.WParam.ToInt32();
        }
コード例 #11
0
ファイル: Win32Import.cs プロジェクト: ousttrue/ModelMotionIO
 public static extern bool PeekMessage(
     out MSG lpMsg,
     IntPtr hWnd,
     int wMsgFilterMin,
     int wMsgFilterMax,
     PM wRemoveMsg
     );
コード例 #12
0
ファイル: Functions.cs プロジェクト: Zulkir/Beholder
 public static extern bool PeekMessage(out MSG message, IntPtr hwnd, uint messageFilterMin, uint messageFilterMax, uint flags);
コード例 #13
0
ファイル: Functions.cs プロジェクト: Zulkir/Beholder
 public static extern bool PeekMessage(out MSG message, IntPtr handle, uint filterMin, uint filterMax, PM flags);
コード例 #14
0
ファイル: Win32.cs プロジェクト: tablesmit/NRegFreeCom
 public static unsafe extern BOOL TranslateMessage(MSG* lpMsg);
コード例 #15
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int TranslateMDISysAccel(HWND hwndClient, ref MSG lpMsg);
コード例 #16
0
ファイル: User.cs プロジェクト: jihadbird/firespider
 public static extern int TranslateMessage(ref MSG lpMsg);
コード例 #17
0
ファイル: Win32.cs プロジェクト: tablesmit/NRegFreeCom
 public static unsafe extern IntPtr DispatchMessage(MSG* lpMsg);