Print Queue

I need to show how many jobs there are in print queue on windows platform only. (Inside the application, not opening an external window)
I´m been looking at shell commands, but are limited by restrictions on that one.
I´m currently looking at calling dlls or making a dll that will handle this.

But is there a “easier” way to do this that I haven´t thought about?