Skip to main content
gamedev.net
🔒 Locked

getting Windows install path

Started by berserk 2 replies 250+ views
Original Post
berserk
berserk
I think there is a win32 function that returns path of Window''s install directory. Anyone know what it is?
Beer Hunter
Beer Hunter
I think that''s GetWindowsDirectory.
Arild Fines
Arild Fines
It can also be found in the environment variable WINDIR.



"I know very well who Satan is: He is freedom. He is the uncontrolled, the incalculable, the antithesis of order and discipline, the antithesis of the legalism of outer space.... We know where a planet will be in twelve years, four months and nine days. But we don''t know where a butterfly will have flown one minute hence. Therefore the butterfly is of Satan."
-- Jens Bjørneboe
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
daerid
daerid
On NT based systems, the preferred env var is %SYSTEMROOT%
daerid@gmail.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.