How to install WH_MSGFILTER? [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am trying to catch all messages that receive another program. As I understand I need to use WinApi hooks, specifically WH_MSGFILTER, but I dont know how to install it properly. Can someone show me complete C# program using different WinApi hooks?

Hooks like that require a DLL that can be injected into another process. You cannot write such a DLL in C#, you cannot get the CLR injected. Only the low-level hooks can work, they don't require injection.
Check this project for an alternative. No idea how solid it is btw.

A process hook to another program requires a native dll (except for keyboard and mouse hooks). Can't be done in C#.

Related

Using a DLL library in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a DLL library given to me as homework. I was being told the DLL has the capability of raising events. And I will need to be able to handle those events. I am coding in C#.
Can any one please point me to any tutorials online that will serve the purpose.
Atm, all the google results I get is - how to make a DLL or how to use C++ dll in C#; they are not helping me to serve the purpose.
Can anyone help?
Yes, I know how to add a reference and can connect this to my project.
Since you know how to add a reference, all you need is to add the reference to your class with "using [Class Namespace]" and add an event to your event handler.
This link may help you with this part: http://msdn.microsoft.com/en-us/library/ms743596(v=vs.100).aspx
Add a reference to the project by right-click on the reference-folder in your project. Navigate to the dll and add it. Now you can use it like a project which is in your solution.

Running Java code in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am writing a silverlight application using c#. For the project I need to be able to compile and download a program to an external drive. I have the code to do this however it is written in Java.
The code is extensive and would take an excessive amount of time to translate all of it into c#. Is there an alternate way to translate the code into c# or is there a way to run java code within a c# project?
You could always compile it as an executable and run it with Process.Start.
You can use IKVM.net to convert the jar to a dll
In google you can find a online service for it or change same code witch doesn't work

How to implement something like "Fences" [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am fascinated by the program "Fences"
How can I implement something which resides on the desktop like it does?
you can move around the fences and they are persistent.
image i.i.com.com/cnwk.1d/i/tim//2009/10/05/Foreman_11108546_4825_fences_210x158.jpg http://i.i.com.com/cnwk.1d/i/tim//2009/10/05/Foreman_11108546_4825_fences_210x158.jpg
My guess is that it has been implemented using a dot net language. Can this be done in C# ?
It's possible that Fences is written in a .NET langage, but it's more likely to be written in C++. A program like this requires very tight integration with the Win32 API - which can be done from .NET, but is easier with C/C++.
Shell extensions required to be coded using a language tied to the Win32 API.
The 'appearance customization window' might be coded using .Net, but the core program is probably C++.

tooltip catcher c# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to create an application which can copy the tool tip (the tool tips which are shown on the current desktop/window) if I press hot keys. So how can I track whether the current desktop having a tool tip.
First, its not possible to use the Managed.Net API to access windows in other applications so you will have to do somthing a bit different.
I guess you could use the Win32 API to enumerate windows and find those of the class Tooltip_Class32. Then you'd have to read the text on them.
You can enum windows as described on SO here and on PInvoke.net here.
If you limit to just the Tooltip_Class32 then you will only get the tool tip windows.
I'm not sure how windows contructs a tool tip. I'm guessing you can read the text from the tool tip or from some child control window by using the SendMessage API with the WM_GETTEXT message like here.
That should get you started, I've never actually done it myself but it seems feasible.

Feed java with characters/string/bytestream from a c# class [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to have a java app running, using a function/method (with as little delay as possible I hope!) in a c# class...
The c# function takes a string from the java app, and returns a string.. Had to do it in c# to make a OleDbConnection in windows..
I'm not sure what exactly you need.
If you need to call Java code from inside C#, you could try IKVM.
If you need to launch a standalone Java app, use whatever .NET has for spawning subprocesses.
If the only reason why you're using C# is OleDbConnection, you could see if there's a Java driver for the database you need to contact. Or an ODBC driver, and use the JDBC/ODBC bridge.
I am author of jni4net, open source interprocess bridge between JVM and CLR. It's build on top of JNI and PInvoke. No C/C++ code needed. I hope it will help you.

Categories