to insert the D3DHook function