By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,464 Members | 1,608 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,464 IT Pros & Developers. It's quick & easy.

Keylogger function

P: n/a
i wanna use keys combo to show and hide my app
could someone show me how to capture global key strokes ???
essentially it behave like a keylogger program, but it not :-)

thanks
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can't do that in C#. It requires a "normal" DLL written in a language
that supports standard exports.

What you can do is create a simple stub C or C++ DLL and drive it from C#.
There's a VB (classic) sample at www.mentalis.org that could get you
started.

Here's an example of a C# hook, but as in VB and other languages, it's
specific to the current thread.

http://groups.google.com/groups?selm...&output=gplain

--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Du Dang" <vi*******@hotmail.com> wrote in message
news:lM*******************@nnrp1.uunet.ca...
i wanna use keys combo to show and hide my app
could someone show me how to capture global key strokes ???
essentially it behave like a keylogger program, but it not :-)

thanks

Nov 15 '05 #2

P: n/a
thank you so much for your help
i think this is a good start

thanks again

"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
You can't do that in C#. It requires a "normal" DLL written in a language
that supports standard exports.

What you can do is create a simple stub C or C++ DLL and drive it from C#.
There's a VB (classic) sample at www.mentalis.org that could get you
started.

Here's an example of a C# hook, but as in VB and other languages, it's
specific to the current thread.

http://groups.google.com/groups?selm...ngxa09&oe=UTF-
8&output=gplain
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Du Dang" <vi*******@hotmail.com> wrote in message
news:lM*******************@nnrp1.uunet.ca...
i wanna use keys combo to show and hide my app
could someone show me how to capture global key strokes ???
essentially it behave like a keylogger program, but it not :-)

thanks


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.