Plugin help: How to access Windows Message Queue (1 Viewer)

Shukuyen

Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    300
    Lake of Constance
    Home Country
    Germany Germany
    Hi!

    I couldn't find a more suiting subforum, so I hope this is the right place ...

    I am currently trying to develop my first Mediaportal plugin. For this plugin I have to catch messages from the windows message queue. (I want to be notified when an USB device is attached/detached).

    Normally in a Windows Forms application I would override the WndProc function. For this the class has to be derived from System.Windows.Forms.Form. Obiously this isn't the case here. My next approach was to subclass NativeWindow and override the WndProc function there. But for this to work I would have to register a window handle with this class. Again the same problem - my plugin is no subclass of Form -> no window handle.

    Now the question: Is there any way to get a window handle in a plugin? Or the windows message queue via some other way?

    Thank you for your help.
     

    Users who are viewing this thread

    Top Bottom