adrian_ 0 Newbie Poster

Hello. I´m trying to program a windows interactive-service general purpose keylogger.

In the code I´m trying to use GetAsyncKeyState(int ) function to know if a key was pressed, but I know a Windows Service runs in a different desktop than the active user, so the function fails.

Does someone know how the service can communicate with the active user's desktop in order to log the keys?

Thanks in advance.