fusi
27th March 2008, 01:43 AM
yo
im currently trying to write a small invisible app that runs in the background and converts the keyboards windows key into a ctrl key.
now, when i call SetWindowsHookEx it returns an error code of 31 (0x1f) which as far as i can tell equates to:
"ERROR_GEN_FAILURE - A device attached to the system is not functioning." from msdn.
ive read somewhere about security problems and sdkcerts.cab etc - but if it was a security issue wouldnt it return an error code of 5 (ERROR_ACCESS_DENIED)?
anyone know what i gotta do to get SetWindowsHookEx to succeed? or has it been superceeded by a different api call?
cheers
fusi
im currently trying to write a small invisible app that runs in the background and converts the keyboards windows key into a ctrl key.
now, when i call SetWindowsHookEx it returns an error code of 31 (0x1f) which as far as i can tell equates to:
"ERROR_GEN_FAILURE - A device attached to the system is not functioning." from msdn.
ive read somewhere about security problems and sdkcerts.cab etc - but if it was a security issue wouldnt it return an error code of 5 (ERROR_ACCESS_DENIED)?
anyone know what i gotta do to get SetWindowsHookEx to succeed? or has it been superceeded by a different api call?
cheers
fusi