printer spooler

How to use printer spooler in embedded application? How to print from the
application level (PCL ) and get printing status from the spooler back to
the application?

Any experience ?

Thanks in advance,
Janusz Ruszel.