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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. FindFirstPrinterChangeNotification fails on XP laptop.

FindFirstPrinterChangeNotification fails on XP laptop.

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 3 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.
  • F Offline
    F Offline
    Flit
    wrote on last edited by
    #1

    Howdy folks, I'm having a little problem with FindFirstPrinterChangeNotification that has got me baffled. When I call this function on a laptop running XP Pro SP2 I get this error: This function is not supported on this system. However this same .exe works fine on the other XP systems I've tested it on and calls the function with no problems. If anyone has any insight into what could be causing this problem I would be very grateful for the help. Thanks folks.

    D G 2 Replies Last reply
    0
    • F Flit

      Howdy folks, I'm having a little problem with FindFirstPrinterChangeNotification that has got me baffled. When I call this function on a laptop running XP Pro SP2 I get this error: This function is not supported on this system. However this same .exe works fine on the other XP systems I've tested it on and calls the function with no problems. If anyone has any insight into what could be causing this problem I would be very grateful for the help. Thanks folks.

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

      Flit wrote:

      When I call this function on a laptop running XP Pro SP2 I get this error: This function is not supported on this system.

      So GetLastError() is returning ERROR_CALL_NOT_IMPLEMENTED?


      "Take only what you need and leave the land as you found it." - Native American Proverb

      F 1 Reply Last reply
      0
      • F Flit

        Howdy folks, I'm having a little problem with FindFirstPrinterChangeNotification that has got me baffled. When I call this function on a laptop running XP Pro SP2 I get this error: This function is not supported on this system. However this same .exe works fine on the other XP systems I've tested it on and calls the function with no problems. If anyone has any insight into what could be causing this problem I would be very grateful for the help. Thanks folks.

        G Offline
        G Offline
        Graham Bradshaw
        wrote on last edited by
        #3

        Are you using a different printer on the laptop? Is it possible that ultimately it's the printer driver that is saying "I don't support the notification that you've asked for"

        F 1 Reply Last reply
        0
        • D David Crow

          Flit wrote:

          When I call this function on a laptop running XP Pro SP2 I get this error: This function is not supported on this system.

          So GetLastError() is returning ERROR_CALL_NOT_IMPLEMENTED?


          "Take only what you need and leave the land as you found it." - Native American Proverb

          F Offline
          F Offline
          Flit
          wrote on last edited by
          #4

          Hi DavidCrow, thanks for the response. FindFirstPrinterChangeNotification returns INVALID_HANDLE_VALUE. GetLastError returns ERROR_CALL_NOT_IMPLEMENTED.

          1 Reply Last reply
          0
          • G Graham Bradshaw

            Are you using a different printer on the laptop? Is it possible that ultimately it's the printer driver that is saying "I don't support the notification that you've asked for"

            F Offline
            F Offline
            Flit
            wrote on last edited by
            #5

            Hi Graham, thanks for your help you set me on the right track. I installed a new printer on the laptop and it worked fine, the printer I was testing with previously was a network printer. I went to check on the network printer and it turned out that one of the helpful folk here had unplugged it because they needed the power outlet. I guess this happened between my succesful tests and when I started testing on the laptop. I've added in some code to disregard any printers that aren't available and it's working fine. Thankyou.

            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