There's no such thing as independent solution for printing on POSIX/win platforms, the two are seperate in how the printerport is accessed, in POSIX you just open it as a file and write whatever you have to it, under windows you need to address the systems spool area in order to place your job in current queue.
you might wanna look at
this thread