G
Guest
In c# ,
I use wmi to monitor print job but I need to get PrintJob 's number of
copies and wmi don't expose it.
So i think to use win API but I am a newbie of Pinvoke.
This is function declaration:
[DllImport("winspool.drv", EntryPoint="GetJob")] public static extern int
GetJobA
(int hPrinter, int JobId, int Level, ref byte pJob, int cdBuf, ref int
pcbNeeded)
Anyone can help me , any example to use this function?
Thanks in advance
Max
I use wmi to monitor print job but I need to get PrintJob 's number of
copies and wmi don't expose it.
So i think to use win API but I am a newbie of Pinvoke.
This is function declaration:
[DllImport("winspool.drv", EntryPoint="GetJob")] public static extern int
GetJobA
(int hPrinter, int JobId, int Level, ref byte pJob, int cdBuf, ref int
pcbNeeded)
Anyone can help me , any example to use this function?
Thanks in advance
Max