Does anyone know if there is a way to read the PATH Environment Variable that the System uses in Windows XP/2k without directly reading it from the Registry? I am trying to find out if there is an API that accomplishes it.
GetEnvironmentVariable and GetEnvironmentStrings both say they retrieve the information from the environment block the program is being run under (i.e. a user), but I want to retrieve the one the System uses.
Also, does anyone know how the paths in path are enumerated when searching for a file. Is it in the order they exist in the registry value data?
Thank you very much for any information you can provide.