All pastes #1369081 Raw Edit

Miscellany

public text v1 · immutable
#1369081 ·published 2009-03-23 13:00 UTC
rendered paste body
		private const uint PM_REMOVE = 0x1;
		private const uint WM_MOUSEFIRST = 0x200;
		private const uint WM_MOUSELAST = 0x209;

		private struct Point
		{
			long X;
			long Y;
		}

		private struct Message
		{
			long hwnd;
			long message;
			long wParam;
			long lParam;
			long time;
			Point pt;
		}

		[DllImport("coredll")]
		private extern static bool PeekMessage(out Message Msg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg);