C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 08-16-2008, 09:35 AM   #16
Registered User
 
Codeplug's Avatar
 
Join Date: Mar 2003
Posts: 3,844
Try duplicating the window class and window name that receives the messages - then P3XRCtl may send the messages directly to you without the TV app running. In other words, P3XRCtl may just do a simple FindWindow() on a known window name/class.

Another way to avoid a global hook is to inject a dll into the TV app and "subclass" the windows procedure of the target window - so you're only hooking the one instance.

gg
Codeplug is offline   Reply With Quote
Old 08-16-2008, 04:22 PM   #17
Registered User
 
Join Date: Aug 2007
Posts: 40
wha, I can't believe a simple trick like that actually worked
I tried it earlier but I didn't set the window class name to the same, but now I did and I'm getting the messages the normal way.
This instantly solves all the hooking and threadid problems and without running the normal tv app at all.
Sir I salute you ^^
s-men is offline   Reply With Quote
Reply

Tags
driver, hardware, windows

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make a normal application jobbie C++ Programming 18 01-22-2006 05:59 PM
Relativly new to c++, how do I make application interfaces? Frantic- C++ Programming 20 12-09-2004 07:52 PM
howto make a static library? mart_man00 C Programming 2 07-19-2003 11:10 PM
Tab Controls - API -KEN- Windows Programming 7 06-02-2002 09:44 AM
How do you make a 'Slider' control? Okiesmokie Windows Programming 4 04-26-2002 03:49 PM


All times are GMT -6. The time now is 02:06 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22