to clear the char array, you could do either
logged_keys[0] = '\0';
or
strcpy(logged_keys, "");
Printable View
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?
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.