How to find what the user path is for their Environment
Variables?

Answer Posted / editcdc

Windows provides four API functions for accessing and
updating environment variables:

1. GetEnvironmentVariable
This returns the value of a given environment variable.
2. SetEnvironmentVariable
Sets an environment variable's value, creating a new
variable if necessary. This routine can also be used to
delete an environment variable.
3. GetEnvironmentStrings
Gets a list of all the environment variables available
to a process.
4. ExpandEnvironmentStrings
Replaces environment variables delimited by "%"
characters in a string with the variable's value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change Kylix directory permissions for all users when installed as root?

1291


How to use Access97 drivers with BDE 4.51 ?

1448


How does inheritance operate when using the object of the classes?

454


How to eject a CD-ROM in code?

1356


what are the different Dataset event handlers?

1220






How to draw using LoEnglish Mapping Modes?

1306


How to Detect print errors?

1259


How to get the default Windows folders ?

1340


How to Write a raw string of data to the printer?

1333


How to create indexes with the TTable create function?

1285


How to tell in code if my application is running on Windows NT ?

1339


Why Non-blob column in table required to perform operation with Oracle ?

3570


How to Determine if a combobox is in dropped state?

1346


What is the procedure to connect delphi application to ms access database?

439


How to Display the selected row of a DBGrid in a different color?

2159