Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading bitmap image Pin
mathrose2-Jan-05 21:22
mathrose2-Jan-05 21:22 
GeneralRe: reading bitmap image Pin
ThatsAlok2-Jan-05 22:41
ThatsAlok2-Jan-05 22:41 
GeneralRe: reading bitmap image Pin
Selvam R3-Jan-05 1:31
professionalSelvam R3-Jan-05 1:31 
GeneralFinding matching regions in file.. Pin
moliate2-Jan-05 10:36
moliate2-Jan-05 10:36 
GeneralIncorrect end/crash at app end Pin
Roland E.2-Jan-05 9:45
Roland E.2-Jan-05 9:45 
GeneralRe: Incorrect end/crash at app end Pin
David Crow3-Jan-05 3:38
David Crow3-Jan-05 3:38 
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 

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.