I have a C# windows application that runs with a form hidden and a system tray icon. Now I have read about WndProc and overriding that function to capture windows messages, but When I override it with this:
	the EndOfDayCheckou  t() doesn't ever run. Now is there some special call or thread I need to set up to get EndProc to retrieve messages, or is there something else I need to get the system to halt shutdown until the method I call has finished?
							
						
					Code:
			protected override void WndProc(ref Message m)
		{
			
			// WM_QUERYENDSESSION
			if (m.Msg == 0x0011)
			{
				this.parentThreader.EndOfDayCheckout();
			}//end if
			base.WndProc(ref m);
		}//WndProc
Comment