to clear the char array, you could do either
logged_keys[0] = '\0';
or
strcpy(logged_keys, "");
to clear the char array, you could do either
logged_keys[0] = '\0';
or
strcpy(logged_keys, "");
Like Tonto said, why not try ZeroMemory? Oh and cgod what compiler were you using to make that "HotKey" keylogger?
Last edited by jmd15; 08-04-2005 at 09:18 AM.
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0
MSVC 7.0, it should work on any compiler tho.
You know that RegisterHotKey only works for the program that's running it don't you? It dosen't set a system wide hook.
I don't like the RegisterHotKeys way of doing it, I'm gonna write a DLL and it WILL work, even if it takes me a little while. Oh I am using Dev-C++ and it seems to not like some of your code.
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0