hi,
as Richard MacCutchan has said, you need to tell us what you are trying to do.
i guess these might help you :
EnvironmentVariableTarget Enumeration[
^]
GetEnvironmentVariable function[
^]
Since the values you receive with GetEnvironmentVariable may not be the current ones it'll be better to read the values directly from the registry
then you might use RegOpenKeyEx(...) and RegQueryValueEx(...) functions
also
MSDN Examples[
^] shows some code .
hope this helps .