title: Listening to OS messages in C#
body: <p>Is there any methods in C# similar to WndProc method to listen to the OS messages.I cant use WndProc because,my class is neither Form nor Inherited from Control(Its DLL)</p>
  
  <pre><code>protected override void WndProc(ref System.Windows.Forms.Message m)
      {
          switch (m.Msg)
          {
              // listen os messages
  
  
              // Ueye Message
              case uEye.IS_UEYE_MESSAGE:
                  //fetch frame
                  break;
          }
          base.WndProc(ref m);
      }
  </code></pre>