Then you need to look up those functions on MSDN.
CreateFile
WriteFile
They're a little complicated, but just remember that you mostly want the defaults.