Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. code required to obtain printer status

code required to obtain printer status

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasetutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    P Gibson
    wrote on last edited by
    #1

    Hi writing a VC++ 6.0 application and I need to obtain the status of a printer and PRINTER_INFO_2 structure does not work, so I'm looking for some example code that uses SNMP MIB I know it is possible to query the printer to obtain this info but how in C++ using SNMP ? Any info/inks etc would be appreciated

    D 1 Reply Last reply
    0
    • P P Gibson

      Hi writing a VC++ 6.0 application and I need to obtain the status of a printer and PRINTER_INFO_2 structure does not work, so I'm looking for some example code that uses SNMP MIB I know it is possible to query the printer to obtain this info but how in C++ using SNMP ? Any info/inks etc would be appreciated

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      P Gibson wrote:

      ...I need to obtain the status of a printer and PRINTER_INFO_2 structure does not work...

      What is it that you are looking for that is not in that structure?


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      P 1 Reply Last reply
      0
      • D David Crow

        P Gibson wrote:

        ...I need to obtain the status of a printer and PRINTER_INFO_2 structure does not work...

        What is it that you are looking for that is not in that structure?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        P Offline
        P Offline
        P Gibson
        wrote on last edited by
        #3

        Hi David, thanks for the quick reply, my application always retruns in the status dword 0 ... even when the printer is offline, or the printer has the top cover open, or a tray open it always returns 0.

        D 1 Reply Last reply
        0
        • P P Gibson

          Hi David, thanks for the quick reply, my application always retruns in the status dword 0 ... even when the printer is offline, or the printer has the top cover open, or a tray open it always returns 0.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          What does your code snippet look like?


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "There is no death, only a change of worlds." - Native American Proverb

          P 1 Reply Last reply
          0
          • D David Crow

            What does your code snippet look like?


            "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

            "There is no death, only a change of worlds." - Native American Proverb

            P Offline
            P Offline
            P Gibson
            wrote on last edited by
            #5

            I've emailed the code snippet

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups