d3d graphic api hook and .net runtime activation