示例#1
0
 internal static extern bool TranslateMessage([In] ref SafeNativeMethods.MSG lpMsg);
示例#2
0
 internal static extern int DispatchMessage([In] ref SafeNativeMethods.MSG lpmsg);
示例#3
0
 // Implements the message loop for the hidden window.
 internal void MessageLoop()
 {
     SafeNativeMethods.MSG msg = new SafeNativeMethods.MSG();
     int bRet; 
     
     // Start the message loop. 
     while ((bRet = NativeMethods.GetMessage(out msg, _handle, 0, 0)) != 0)
     {
         if (bRet == -1)
         {
             throw new Win32Exception("Error in GetMessage.");
         }
         // Pass messages to the window's WndProc.
         NativeMethods.TranslateMessage(ref msg);
         NativeMethods.DispatchMessage(ref msg);
     }
     
     return;
 }
示例#4
0
 internal static extern int GetMessage(
     out SafeNativeMethods.MSG lpMsg,
     SafeWindowHandle hWnd,
     uint wMsgFilterMin,
     uint wMsgFilterMax);
示例#5
0
 internal static extern int GetMessage(
     out SafeNativeMethods.MSG lpMsg,
     IntPtr hWnd,
     uint wMsgFilterMin,
     uint wMsgFilterMax);