Have you tried testing DXDraw.CanDraw first?