MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » General Support


General Support Post problems you have when using MediaPortal, or pre installation questions in here.

Reply
 
Thread Tools Display Modes
Old 2008-08-17, 14:15   #1 (permalink)
Portal Member
 
Join Date: May 2008
Posts: 35
Thanks: 8
Thanked 0 Times in 0 Posts

My System

Question Plugin help: How to access Windows Message Queue

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.
Shukuyen is online now   Reply With Quote
Reply

Bookmarks

Tags
access, message, plugin, queue, windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
when playing video, can't access windows SelArom MediaPortal 1 Talk 4 2007-08-23 04:15
"unable to access the service"-message josu fixed TV-Server / Client Bugs 15 2007-03-04 20:00
Message Plugin: Additional commands Joche MCE Replacement Plugin 6 2007-02-24 07:18
Installation Error Message "Could not access network lo coover Installation, configuration support 14 2005-12-22 21:28
Keybord (or message) support for direct access... tommer Improvement Suggestions 1 2005-03-03 11:26


All times are GMT +1. The time now is 10:46.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden