Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
GeneralToolbar Pin
Srikar Y15-Oct-03 19:12
Srikar Y15-Oct-03 19:12 
GeneralRe: Toolbar Pin
Heath Stewart16-Oct-03 9:10
protectorHeath Stewart16-Oct-03 9:10 
GeneralDesign Question Pin
J. Dunlap15-Oct-03 18:44
J. Dunlap15-Oct-03 18:44 
GeneralRe: Design Question Pin
J. Dunlap15-Oct-03 20:42
J. Dunlap15-Oct-03 20:42 
GeneralIPC Communication Pin
vikramlinux15-Oct-03 18:23
vikramlinux15-Oct-03 18:23 
GeneralRe: IPC Communication Pin
Heath Stewart16-Oct-03 9:17
protectorHeath Stewart16-Oct-03 9:17 
GeneralRe: IPC Communication Pin
vikramlinux16-Oct-03 17:47
vikramlinux16-Oct-03 17:47 
GeneralRe: IPC Communication Pin
Heath Stewart17-Oct-03 3:11
protectorHeath Stewart17-Oct-03 3:11 
No, .NET Remoting wouldn't be the answer. It's best for .NET<-(context)->.NET (that is, two .NET applications across different contexts).

What is loading and registering your hook now? The only two methods I know of is from the registry (although some hooks can't be loaded that way and I don't remember if systems hooks can) or some native app? You could, perhaps, you P/Invoke to load and register (or call a wrapper functions in your DLL that does that) from your .NET app. Then you could either use IMessageFilter and Application.AddMessageFilter to watch for the messages that your DLL would route to it's calling app (not sure about the feasibility of that one) or register a Delegate (function pointer, i.e. callback) via it's handle (as an IntPtr, by calling myDelegate.Method.MethodHandle.GetFunctionPointer(). I should warn you, though, that this is untested but seems like it should work.

Otherwise, if the apps need to be disjoint, you may have to use IPC. Dead | X|

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRequesting a Web page. Pin
fadee15-Oct-03 18:14
fadee15-Oct-03 18:14 
GeneralRe: Requesting a Web page. Pin
Heath Stewart16-Oct-03 9:16
protectorHeath Stewart16-Oct-03 9:16 
Generalinstallating .NET CLR Pin
Norman Fung15-Oct-03 16:46
Norman Fung15-Oct-03 16:46 
GeneralRe: installating .NET CLR Pin
eggie515-Oct-03 17:17
eggie515-Oct-03 17:17 
GeneralThe Great Threading Conundrum Pin
eggie515-Oct-03 14:59
eggie515-Oct-03 14:59 
GeneralRe: The Great Threading Conundrum Pin
Wjousts15-Oct-03 15:33
Wjousts15-Oct-03 15:33 
GeneralRe: The Great Threading Conundrum Pin
eggie515-Oct-03 15:49
eggie515-Oct-03 15:49 
GeneralRe: The Great Threading Conundrum Pin
Wjousts16-Oct-03 5:03
Wjousts16-Oct-03 5:03 
Generalapi Pin
jphuphilly15-Oct-03 13:41
jphuphilly15-Oct-03 13:41 
GeneralRe: api Pin
Daniel M. Edwards15-Oct-03 13:57
Daniel M. Edwards15-Oct-03 13:57 
GeneralRe: api Pin
J. Dunlap15-Oct-03 14:10
J. Dunlap15-Oct-03 14:10 
GeneralRe: api Pin
Carlos H. Perez15-Oct-03 15:14
Carlos H. Perez15-Oct-03 15:14 
GeneralRe: api Pin
Christian Graus16-Oct-03 10:07
protectorChristian Graus16-Oct-03 10:07 
Generallistview Pin
jphuphilly15-Oct-03 13:39
jphuphilly15-Oct-03 13:39 
GeneralRe: listview Pin
Heath Stewart16-Oct-03 9:23
protectorHeath Stewart16-Oct-03 9:23 
Generalc++ vs C# Pin
totig15-Oct-03 11:30
totig15-Oct-03 11:30 
GeneralRe: c++ vs C# Pin
Christian Graus15-Oct-03 13:48
protectorChristian Graus15-Oct-03 13:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.