home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Plugin help: How to access Windows Message Queue
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Shukuyen" data-source="post: 294416" data-attributes="member: 74313"><p>Hi!</p><p></p><p>I couldn't find a more suiting subforum, so I hope this is the right place ...</p><p></p><p>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).</p><p></p><p>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.</p><p></p><p>Now the question: Is there any way to get a window handle in a plugin? Or the windows message queue via some other way? </p><p></p><p>Thank you for your help.</p></blockquote><p></p>
[QUOTE="Shukuyen, post: 294416, member: 74313"] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Plugin help: How to access Windows Message Queue
Contact us
RSS
Top
Bottom