Hello, I would like some help with hooking the GetForegroundWindow() function. So that the OS will notify the program when there is a change in windows, without having to poll 60 times a minute and hog the cpu. As far as I know, this is the most efficient way of being notified. I have never done hooks before, so assistance with this is greatly appreciated.
Thanks for the help in advance.