紧急,用GetPrinter API获取的PRINTER_INFO_2结构的Status不关打印机状态怎么样都是0
代码我是从微软网站上抄的(VB.NET的代码)地址是:http://support.microsoft.com/kb/821769/zh-cn
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> Structure PRINTER_INFO_2
Public pServerName As Integer
Public pPrinterName As Integer
Public pShareName As Integer
Public pPortName As Integer
Public pDriverName As Integer
Public pComment As Integer
Public pLocation As Integer
Public pDevMode As Integer
Public pSepFile As Integer
Public pPrintProcessor As Integer
Public pDatatype As Integer
Public pParameters As Integer
Public pSecurityDescriptor As Integer
Public Attributes As Integer
Public Priority As Integer
Public DefaultPriority As Integer
Public StartTime As Integer
Public UntilTime As Integer
Public Status As Integer
Public cJobs As Integer
Public AveragePPM As Integer
End Structure
可不管我的打印机是缺纸还是正常打印,它的Status返回的都是0
请问这是怎么回事情?怎么样才能让她返回正确的缺纸\缺色带的状态信息呢? --------------------编程问答-------------------- tong wen --------------------编程问答-------------------- up
补充:.NET技术 , C#