:thumbsup: :)
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
Try registering the windows key as a hotkey to your application using the RegisterHotKey[^] api call. Might fail though, since RegisterHotKey fails if you try to register keys already assigned to some task by another application and i don't know how windows (or maybe explorer?) uses the windows key.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
Yes, by using SetWindowsHookEx() withWH_KEYBOARD or WH_KEYBOARD_LL, as Perspx said.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Hi all, thanks for your answers. The problem was that i declared a function in the interface as an int, but the implementing class declared the same function with an enum. So when calling the function from the dll (which was the implementing class) the function was not found and another function was called. ______________ |Interface | |-x(int var);| -------------- | \/ ______________ |dll class | |-x(enum var)| -------------- ;)