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. Need some constants/defines from winspool.h

Need some constants/defines from winspool.h

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • R Offline
    R Offline
    Ralf Lohmueller
    wrote on last edited by
    #1

    Hi together, I urgently need some constants from winspool.h (the SDK installed on this machine is too old). Could someone have a look in winspool.h and give me the defines for PRINTER_ATTRIBUTE_ALLOW_EMF PRINTER_ATTRIBUTE_FRIENDLY_NAME PRINTER_ATTRIBUTE_MACHINE PRINTER_ATTRIBUTE_PUSHED_USER PRINTER_ATTRIBUTE_PUSHED_MACHINE (I need the values) thanks in advance, ralf.

    R R 2 Replies Last reply
    0
    • R Ralf Lohmueller

      Hi together, I urgently need some constants from winspool.h (the SDK installed on this machine is too old). Could someone have a look in winspool.h and give me the defines for PRINTER_ATTRIBUTE_ALLOW_EMF PRINTER_ATTRIBUTE_FRIENDLY_NAME PRINTER_ATTRIBUTE_MACHINE PRINTER_ATTRIBUTE_PUSHED_USER PRINTER_ATTRIBUTE_PUSHED_MACHINE (I need the values) thanks in advance, ralf.

      R Offline
      R Offline
      Russell
      wrote on last edited by
      #2

      winspool.h[^] ...but there there isn't that macro ... are you sure that that values are define there?


      Russell

      R 1 Reply Last reply
      0
      • R Russell

        winspool.h[^] ...but there there isn't that macro ... are you sure that that values are define there?


        Russell

        R Offline
        R Offline
        Ralf Lohmueller
        wrote on last edited by
        #3

        Hi Russell,

        _Russell_ wrote:

        winspool.h[^] ...but there isn't that macro ... are you sure that these values are defined there?

        I'm sure, but the problem is: they are new with Windows Vista and the SDK I have is too old. So the wine sources also have to be updated (as soon someone finds the values). In MSDN they are mentioned, but not the corresponding values: http://msdn2.microsoft.com/en-us/library/ms535768.aspx[^] btw: The wine sources also don't have the following ones: PRINTER_ATTRIBUTE_FAX 0x00004000 Windows XP: If set, printer is a fax printer. This can only be set by AddPrinter, but it can be retrieved by EnumPrinters and GetPrinter. PRINTER_ATTRIBUTE_TS 0x00008000 Windows Server 2003: Indicates the printer is currently connected through a terminal server. Thanks for your efforts, ralf.

        R 1 Reply Last reply
        0
        • R Ralf Lohmueller

          Hi Russell,

          _Russell_ wrote:

          winspool.h[^] ...but there isn't that macro ... are you sure that these values are defined there?

          I'm sure, but the problem is: they are new with Windows Vista and the SDK I have is too old. So the wine sources also have to be updated (as soon someone finds the values). In MSDN they are mentioned, but not the corresponding values: http://msdn2.microsoft.com/en-us/library/ms535768.aspx[^] btw: The wine sources also don't have the following ones: PRINTER_ATTRIBUTE_FAX 0x00004000 Windows XP: If set, printer is a fax printer. This can only be set by AddPrinter, but it can be retrieved by EnumPrinters and GetPrinter. PRINTER_ATTRIBUTE_TS 0x00008000 Windows Server 2003: Indicates the printer is currently connected through a terminal server. Thanks for your efforts, ralf.

          R Offline
          R Offline
          Russell
          wrote on last edited by
          #4

          understand! Try to ask it again (not in sunday:-D) hoping that someone can help you with the latest version of the file winspool (mine is obsolete:((sorry). I think you can ask this (not crossing post) to the "Vista" forum. good luck:rose:


          Russell

          1 Reply Last reply
          0
          • R Ralf Lohmueller

            Hi together, I urgently need some constants from winspool.h (the SDK installed on this machine is too old). Could someone have a look in winspool.h and give me the defines for PRINTER_ATTRIBUTE_ALLOW_EMF PRINTER_ATTRIBUTE_FRIENDLY_NAME PRINTER_ATTRIBUTE_MACHINE PRINTER_ATTRIBUTE_PUSHED_USER PRINTER_ATTRIBUTE_PUSHED_MACHINE (I need the values) thanks in advance, ralf.

            R Offline
            R Offline
            Ralf Lohmueller
            wrote on last edited by
            #5

            o.k. I'll answer the question by myself (it took me almost a day to download the SDK because of a very slow internet connection). It seems the constants are only available in the Vista SDK (W2003ServerR2 and earlier don't have them) PRINTER_ATTRIBUTE_ALLOW_EMF // doesn't exist in winspool.h PRINTER_ATTRIBUTE_FRIENDLY_NAME 0x00100000 PRINTER_ATTRIBUTE_MACHINE 0x00080000 PRINTER_ATTRIBUTE_PUSHED_USER 0x00020000 PRINTER_ATTRIBUTE_PUSHED_MACHINE 0x00040000 hope, this will help someone... Does someone know where PRINTER_ATTRIBUTE_ALLOW_EMF is defined?

            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