How would I do such WinAPI hackary?