Draw(Line, 2, color)
but make sure you add the direct 9 library and includes in visual studio in properties.
Also if you wanna learn how to draw in Direct9, 11, 11.1 & 11.2 go here: http://www.directxtutorial.com/
It contains all the information you need to get you started.