We're using PrintQueueWatch in a service to obtain notification of and job information for jobs submitted to our data center for printing. However, we're seeing exceptions in the trace log indicating the size of a system structure is too small. For example,
PrinterQueueWatch.PrintJob: System.ComponentModel.Win32Exception: The data area passed to a system call is too small
at PrinterQueueWatch.SpoolerStructs.JOB_INFO_1..ctor(IntPtr hPrinter, Int32 dwJobId)
at PrinterQueueWatch.PrintJob.InitJobInfo()
and
PrinterQueueWatch.PrintJob: System.ComponentModel.Win32Exception: The data area passed to a system call is too small
at PrinterQueueWatch.SpoolerStructs.JOB_INFO_2..ctor(IntPtr hPrinter, Int32 dwJobId)
at PrinterQueueWatch.PrintJob.InitJobInfo()
I'm not sure how to proceed to resolve these issues. Can anyone offer any advice?
Thanks,
Pete Anfinsen
HealthPartners
PrinterQueueWatch.PrintJob: System.ComponentModel.Win32Exception: The data area passed to a system call is too small
at PrinterQueueWatch.SpoolerStructs.JOB_INFO_1..ctor(IntPtr hPrinter, Int32 dwJobId)
at PrinterQueueWatch.PrintJob.InitJobInfo()
and
PrinterQueueWatch.PrintJob: System.ComponentModel.Win32Exception: The data area passed to a system call is too small
at PrinterQueueWatch.SpoolerStructs.JOB_INFO_2..ctor(IntPtr hPrinter, Int32 dwJobId)
at PrinterQueueWatch.PrintJob.InitJobInfo()
I'm not sure how to proceed to resolve these issues. Can anyone offer any advice?
Thanks,
Pete Anfinsen
HealthPartners