Windows Environment Variables?

This is a discussion on Windows Environment Variables? within the Windows Programming forums, part of the Platform Specific Boards category; Where can I get a list of all the windows environment variables available to a program running in windows, and ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    Windows Environment Variables?

    Where can I get a list of all the windows environment variables available to a program running in windows, and short description of them? Do I just get them into the program using the env variable in the main definition? I'd like to get a copy for each version.

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    70
    Write '::' to your code file

    For example:

    void CTestDlg::Fun()
    {
    ::
    }

    So popup menu will appear and it will show you all environment variables and other members.
    Chintan R Naik

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Actually what I need is a web site, preferably one that has a list and description of variables from Windows 95 - Windows XP, and everything in between. Using your method, I believe would only give me the variables that are on my computer. Not only that, I don't have a windows compiler. I'm just working on the data processing part of the project, and have nothing to do with the windows part, so I'm just using a text editor, but thank you.

  4. #4
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    the variables that are on my computer
    Mmm, not sure what you mean by that. "::" just shows you what variables/functions there are in the global namespace, which would mean any global variables that are accessible. Any other variables that don't appear there probably won't be 'accessible' to the application. Also, I don't think there's too many global variables floating around. Mostly any variables you get for Windows are just returned from functions, passed as arguments, filled in by functions, etc.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  5. #5
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Well you don't need to know, because that's not what I'm asking for. I need a wbesite with information on the Windows Environment Variables on Windows Operating Systems, from Windows 95, 98, 2000, NT, XP, etc..

  6. #6
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Unless someone can think of a better way to do it. What I need in this section of the program, is to get as much data about its environment as it can. It will always be running with the data being stored in the same array, so it needs to be variables that will always be of the same format/type. KNowing when the program runs will be too late, and I need to do version for ever windows OS.

  7. #7
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    getenv()?
    GetSystemLocale()/GetUserLocale()?
    GetSystemInfo()?

  8. #8
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Thanks, but again, I'm looking for a site than can maybe ensure that they have a fairly complete list.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hwnd and variables in them
    By underthesun in forum Windows Programming
    Replies: 6
    Last Post: 01-16-2005, 05:39 PM
  2. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  3. Setting OS Environment Variables
    By ImNotMad in forum C Programming
    Replies: 4
    Last Post: 10-23-2003, 02:07 AM
  4. environment variables in make and gcc?
    By mart_man00 in forum C Programming
    Replies: 0
    Last Post: 07-23-2003, 03:02 PM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21