Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Incorrect end/crash at app end Pin
Roland E.3-Jan-05 4:49
Roland E.3-Jan-05 4:49 
Generalhookless keylogger Pin
Spiritofamerica2-Jan-05 8:47
Spiritofamerica2-Jan-05 8:47 
hello,

I am trying to make a hookless kwylogger but I am having a

little trouble:

I am trying to use these api calls to be able to get

keyboard data from other processes:
//Attach
AttachThreadInput( MyThreadID, TargetThreadID, true);
//Detach
AttachThreadInput( MyThreadID, TargetThreadID, false);

All I do is set a timer that looks for the forground window,

get's its process ID and attach my process to it's input

queue. Then I just poll for keystrokes using

GetKeyboardState.But here I have a problem:

You see, If I was in a hook dll I would do this:
BYTE ks[256];
GetKeyboardState(ks);
scan=0;
ToAscii(wParam,scan,ks,&w,0);
but then again I'm not
so where do I get the wParam from?
Or how do I know exactely wich key has been pressed?
Don't tell me you have to try out all the possible VK codes

cause that is lame. Is there another, smarter way to do

this?
GeneralRe: hookless keylogger Pin
User 66582-Jan-05 11:06
User 66582-Jan-05 11:06 
GeneralRe: hookless keylogger Pin
Spiritofamerica3-Jan-05 9:33
Spiritofamerica3-Jan-05 9:33 
GeneralRe: hookless keylogger Pin
User 66584-Jan-05 4:21
User 66584-Jan-05 4:21 
GeneralRe: hookless keylogger Pin
Anonymous4-Jan-05 8:39
Anonymous4-Jan-05 8:39 
GeneralRe: hookless keylogger Pin
User 66584-Jan-05 8:47
User 66584-Jan-05 8:47 
GeneralVCTerm will not run on computers without VC++ 5.0 installed Pin
fklldsvs2-Jan-05 4:58
fklldsvs2-Jan-05 4:58 
GeneralRe: VCTerm will not run on computers without VC++ 5.0 installed Pin
Michael Dunn2-Jan-05 19:31
sitebuilderMichael Dunn2-Jan-05 19:31 
QuestionHow to... Pin
Valie2-Jan-05 4:39
Valie2-Jan-05 4:39 
AnswerRe: How to... Pin
User 66582-Jan-05 11:10
User 66582-Jan-05 11:10 
AnswerRe: How to... Pin
Archer2822-Jan-05 13:16
Archer2822-Jan-05 13:16 
GeneralRe: How to... Pin
toxcct3-Jan-05 3:29
toxcct3-Jan-05 3:29 
GeneralTitleless dialog Pin
LiYS2-Jan-05 0:19
LiYS2-Jan-05 0:19 
GeneralRe: Titleless dialog Pin
Ravi Bhavnani2-Jan-05 6:57
professionalRavi Bhavnani2-Jan-05 6:57 
GeneralCharacter Internal leading Pin
LiYS2-Jan-05 0:14
LiYS2-Jan-05 0:14 
Generallinking with dll Pin
Themis1-Jan-05 23:02
Themis1-Jan-05 23:02 
GeneralRe: linking with dll Pin
Monty22-Jan-05 18:04
Monty22-Jan-05 18:04 
Generalwin32 : sockets and system function.... Pin
yaniv abobo1-Jan-05 22:08
yaniv abobo1-Jan-05 22:08 
GeneralRe: win32 : sockets and system function.... Pin
Ravi Bhavnani2-Jan-05 6:55
professionalRavi Bhavnani2-Jan-05 6:55 
Questionhow to run/load file .exe(executable file) using visual c++? Pin
Member 16203381-Jan-05 22:02
Member 16203381-Jan-05 22:02 
AnswerRe: how to run/load file .exe(executable file) using visual c++? Pin
Chris Losinger2-Jan-05 4:52
professionalChris Losinger2-Jan-05 4:52 
GeneralRe: how to run/load file .exe(executable file) using visual c++? Pin
User 66582-Jan-05 11:14
User 66582-Jan-05 11:14 
GeneralRe: how to run/load file .exe(executable file) using visual c++? Pin
Michael Dunn2-Jan-05 19:37
sitebuilderMichael Dunn2-Jan-05 19:37 
GeneralIs it possible to use MSchart to make a XY Plot? Need help!!!!! Pin
helen_kwan11-Jan-05 19:46
helen_kwan11-Jan-05 19:46 

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.