applying a process system wide.

can i apply a event system wide.
actually i want to apply the function activatekeyboardlayout() on the whole system.
don't have any idea of it in windows programming.
To broadcast a message, you use SendMessage with handle HWND_BROADCAST.
@kbw : i want to apply a specific function to be applicable to processes.
it would be better if it is possible for some specific programs.
To make your function be executed by every process on the system put it in a dll (actually 2 dll's if you want also to target 64-bit windows) and inject it into every process.

You either use assembly code for that, CreateRemoteThread() API or SetWindowHookEx() API. Either technique has it's own issues and the antivirus program could block your program.
See your system setting. Then change your setting.

----------------------------------------
http://www.marjinalescort.com/
Topic archived. No new replies allowed.