Improved graphics capture hooking