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. Current User

Current User

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestion
8 Posts 4 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.
  • B Offline
    B Offline
    BaldwinMartin
    wrote on last edited by
    #1

    In the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths lives the paths to all users. How may I enum them? How may I find current user? "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

    T G 2 Replies Last reply
    0
    • B BaldwinMartin

      In the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths lives the paths to all users. How may I enum them? How may I find current user? "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      BaldwinMartin wrote: How may I enum them? Use RegEnumKey or RegEnumKeyEx BaldwinMartin wrote: How may I find current user? GetUserNameThe GetUserName function retrieves the user name of the current thread. This is the name of the user currently logged onto the system. or you can search For a set of Netowrk CLasses at CP to get a class Related to User Enumeration/other user related activities,But that work in window2000 and above. ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      B 1 Reply Last reply
      0
      • B BaldwinMartin

        In the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths lives the paths to all users. How may I enum them? How may I find current user? "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

        G Offline
        G Offline
        Gary R Wheeler
        wrote on last edited by
        #3

        If you just need the path for the 'My Documents' folder, you can use SHGetFolderPath()[^].


        Software Zen: delete this;

        D B 2 Replies Last reply
        0
        • G Gary R Wheeler

          If you just need the path for the 'My Documents' folder, you can use SHGetFolderPath()[^].


          Software Zen: delete this;

          D Offline
          D Offline
          david_gilmour
          wrote on last edited by
          #4

          Hi! Check this link if you want the current user info http://support.microsoft.com/kb/111544/EN-US/

          B 1 Reply Last reply
          0
          • G Gary R Wheeler

            If you just need the path for the 'My Documents' folder, you can use SHGetFolderPath()[^].


            Software Zen: delete this;

            B Offline
            B Offline
            BaldwinMartin
            wrote on last edited by
            #5

            Great and Thank you, I am trying to get to the GUID folder and it's content. As you know the GUID folders are a little tricky to get access to, so this helps quite abit. Thanks! "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

            1 Reply Last reply
            0
            • D david_gilmour

              Hi! Check this link if you want the current user info http://support.microsoft.com/kb/111544/EN-US/

              B Offline
              B Offline
              BaldwinMartin
              wrote on last edited by
              #6

              Great answer that you! This will help alot. Thank you, "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

              1 Reply Last reply
              0
              • T ThatsAlok

                BaldwinMartin wrote: How may I enum them? Use RegEnumKey or RegEnumKeyEx BaldwinMartin wrote: How may I find current user? GetUserNameThe GetUserName function retrieves the user name of the current thread. This is the name of the user currently logged onto the system. or you can search For a set of Netowrk CLasses at CP to get a class Related to User Enumeration/other user related activities,But that work in window2000 and above. ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

                B Offline
                B Offline
                BaldwinMartin
                wrote on last edited by
                #7

                Thank you very much for the helpful answer. Thanks, Again, "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

                T 1 Reply Last reply
                0
                • B BaldwinMartin

                  Thank you very much for the helpful answer. Thanks, Again, "Naked we come and bruised we go." - James Douglas Morrison Best Wishes, ez_way

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  BaldwinMartin wrote: Thank you very much for the helpful answer. Thanks, Again, Thanks for that WonderFul Thanks ----------------------------- "I Think this Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

                  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