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. Visual Basic
  4. Registry Keys

Registry Keys

Scheduled Pinned Locked Moved Visual Basic
windows-adminhelp
6 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.
  • C Offline
    C Offline
    cwayman
    wrote on last edited by
    #1

    Hey, I was wondering what registry keys are set when you right click on a printer and say 'Set as default printer' Thanks for your help Chris

    D C 2 Replies Last reply
    0
    • C cwayman

      Hey, I was wondering what registry keys are set when you right click on a printer and say 'Set as default printer' Thanks for your help Chris

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      A simple search for "Setting default printer registry" on MSDN resulted in a nice little KB article: Setting the Default Printer in Windows 2000 by Using the Registry[^] RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        A simple search for "Setting default printer registry" on MSDN resulted in a nice little KB article: Setting the Default Printer in Windows 2000 by Using the Registry[^] RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        C Offline
        C Offline
        cwayman
        wrote on last edited by
        #3

        Hey dave, Thanks for the help, i am currently using that said method to set the default printer but some applications mainly MS Word and MS Excel do not recognise the new printer as default and use the previous one. I was wondering if any other registry keys where set on making a printer default as i think there must be a location that these applications are still looking to use the printer that they are. Any suggestions? Thanks again chris

        D 1 Reply Last reply
        0
        • C cwayman

          Hey dave, Thanks for the help, i am currently using that said method to set the default printer but some applications mainly MS Word and MS Excel do not recognise the new printer as default and use the previous one. I was wondering if any other registry keys where set on making a printer default as i think there must be a location that these applications are still looking to use the printer that they are. Any suggestions? Thanks again chris

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Actually, they both ask the system what the default printer is (Platform SDK: GetDefaultPrinter), not the registry. Both apps get the default printer only when they start or when they receive a WM_SETTINGCHANGE message. You might want to read this[^] and this[^] for a little more info. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          • C cwayman

            Hey, I was wondering what registry keys are set when you right click on a printer and say 'Set as default printer' Thanks for your help Chris

            C Offline
            C Offline
            Charlie Williams
            wrote on last edited by
            #5

            As Dave noted, this is not so much a registry thing, but if you ever need to know exactly what registry keys are queried when, you can't beat RegMon[^] with a stick. It is one of many great tools offered by Sysinternals. Charlie if(!curlies){ return; }

            C 1 Reply Last reply
            0
            • C Charlie Williams

              As Dave noted, this is not so much a registry thing, but if you ever need to know exactly what registry keys are queried when, you can't beat RegMon[^] with a stick. It is one of many great tools offered by Sysinternals. Charlie if(!curlies){ return; }

              C Offline
              C Offline
              cwayman
              wrote on last edited by
              #6

              Hey all thanks for the help, are those examples in C++ ? cant really understand them for my lack of knowledge of C++. Thansk again Chris

              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