Initial Windows implementation; probably doesn't compile.