紧急,用GetPrinter API获取的PRINTER_INFO_2结构的Status不关打印机状态怎么样都是0

xinaideren3021 2007-01-13 09:04:25
代码我是从微软网站上抄的(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
请问这是怎么回事情?怎么样才能让她返回正确的缺纸\缺色带的状态信息呢?
...全文
497 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
gukiki111 2007-07-25
  • 打赏
  • 举报
回复
我也遇到此问题,怎么没人解答呢!

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧