Added DXPtr type for simplifying DirectX COM object management.