Thank you, O Great One, for the reply.
Given that there's a completely reliable method for getting that
information
How I am supposed to know how reliable the API is, when I'm obviously too
stupid to know that I shouldn't be using enviroment variables?
From Dev's code:
' 4.00 All Microsoft® Windows® 95/Windows NT® 4.0.
' 4.70 All Microsoft® Internet Explorer 3.x.
' 4.71 All Microsoft® Internet Explorer 4.0
' 4.72 All Microsoft® Internet Explorer 4.01 and
Windows® 98
' 5.00 Shlwapi.dll Microsoft® Internet Explorer 5
' 5.00 Shell32.dll Microsoft® Windows® 2000.
' 5.80 Comctl32.dll Microsoft® Internet Explorer 5
' 5.81 Comctl32.dll Microsoft® Windows 2000
I see no references to Windows XP, Vista, nor the latest versions of
Internet Explorer (we are on 7 now, not 5), nor do I see any datestamp on the
webpage that may indicate when this API was current as of.
The Windows API calls are bulletproof
Are you saying that everyone should assume that every API written throughout
the evolution of the windows system is to remain reliable for all time
without question? If you could be so kind as to extrapolate on the subject,
because apparently I am the only poor fool on the face of this earth that
does not know how Windows maintains APIs.
Of course, there
are also lots of newer applications that set environment variables,
so they are obviously depending on them at some level.
Again, I must be the only person that was not aware of the fact that the
programmers who design these applications make use of environment variables
for no reason other than because they are imbeciles and have idea of what
they are doing. How presumptuous of me to assume otherwise...
using the registry would be
bypassing the Windows API set up for just this purpose, so I don't
know why in the world you'd do that.
I don't suppose it would have anything to do with the fact that I know
little of how API functions are written in relation to Windows Registry
values. Obviously, I should put my blind faith on the fact that every API
written will always be more secure than the Windows Registry, even if the API
was created years before my current operating system was released (along with
a compatible registry... imagine that).
Well, for some reason I had assumed that I might not have been the only
person to read this post and wondered about another person's experience with
environment variables across platforms. Sometimes I forget that I am the
only person here that does not know everything.
I have always seen environment variables as legacy values, there to
support older applications that might need them.
Who cares?
It's not like once you've imported Dev's code
into your app that you have to recode it every time you use it --
it's a one-time coding project
Thank you for verifying this... I was under the assumption that I needed to
put this into a separate module for every time I wanted to call the function.
With your obvious God-like knowledge, I should have known that you would be
able to save me many many modules of code. Is it permittable to delete those
lines in green with the little apostrophe thingies at the beginning also?
I come here, like many others, to gain (and make an attempt to spread)
knowledge and awareness. And, like many others, I would prefer not to be
treated as ignorant child due to the questions I ask. Anyone who takes
everything at face value without asking questions in doubt is bound to suffer
severe consequences at some point or another, and it is my nature to not want
to be a part of this unfortunate group of people.
Right, wrong, or indifferent, perhaps you be just a teeeeeny bit less
conceded about it?
--
Jack Leach
www.tristatemachine.com
- "A designer knows he has reached perfection not when there is nothing left
to add, but when there is nothing left to take away." - Antoine De Saint
Exupery