A test for hooking DirectX