There's a partial example here, but you'll have to add your own serial interfacing to it. I'm not a Windows programmer, so can't vouch for the validity of this code.