How to set a mouse / keyboard hook in windows CE device using C#code ?

M

Milen Kardjiev

Hi all!
I'm trying to set a mouse/keyboard hook in a C# application , but i
haven't found an API in coredll.dll which i can use.
SetWindowsHookEx seems not working.
Do you have an idea how to that ?
Thanks !!!
 
S

Sergey Bogdanov

Since SetWindowsHookEx@coredll accept pointer to a function and
callbacks are not supported for CF1.0 :- it will not work for you.
 
P

Paul G. Tobey [eMVP]

There are also significant limits on what *sort* of hooks you can set in
Windows CE. You should tell us *why* you want to hook things and what you
plan to accomplish if you get it working...

Paul T.

Sergey Bogdanov said:
Since SetWindowsHookEx@coredll accept pointer to a function and callbacks
are not supported for CF1.0 :- it will not work for you.

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Milen said:
Hi all!
I'm trying to set a mouse/keyboard hook in a C# application , but i
haven't found an API in coredll.dll which i can use.
SetWindowsHookEx seems not working.
Do you have an idea how to that ?
Thanks !!!
 
M

Milen Kardjiev

Hi, i need to hook mouse and keyboard input, because i'm trying to
implement a screensaver for a windows ce device . The screensaver is a
part of the application, because of the specific of application.
Thanks !
There are also significant limits on what *sort* of hooks you can set in
Windows CE. You should tell us *why* you want to hook things and what you
plan to accomplish if you get it working...

Paul T.

Sergey Bogdanov said:
Since SetWindowsHookEx@coredll accept pointer to a function and callbacks
are not supported for CF1.0 :- it will not work for you.

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Milen said:
Hi all!
I'm trying to set a mouse/keyboard hook in a C# application , but i
haven't found an API in coredll.dll which i can use.
SetWindowsHookEx seems not working.
Do you have an idea how to that ?
Thanks !!!
 
P

Paul G. Tobey [eMVP]

You can't do that. There are no mouse hooks in Windows CE. Your target
device may have some means of detecting user activity and you might use
that, rather than hooks, to turn the screen saver on and off...

Paul T.

Milen Kardjiev said:
Hi, i need to hook mouse and keyboard input, because i'm trying to
implement a screensaver for a windows ce device . The screensaver is a
part of the application, because of the specific of application.
Thanks !
There are also significant limits on what *sort* of hooks you can set in
Windows CE. You should tell us *why* you want to hook things and what
you plan to accomplish if you get it working...

Paul T.

Sergey Bogdanov said:
Since SetWindowsHookEx@coredll accept pointer to a function and
callbacks are not supported for CF1.0 :- it will not work for you.

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Milen Kardjiev wrote:
Hi all!
I'm trying to set a mouse/keyboard hook in a C# application , but i
haven't found an API in coredll.dll which i can use.
SetWindowsHookEx seems not working.
Do you have an idea how to that ?
Thanks !!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top