I am using the function GetSystemDirectory, however in certain circumstances
in Windows XP Pro it is returning a relative path, not the full path to the
system directory!
E.g., sometimes the code below returns "C:\WINDOWS\SYSTEM32" as it should
But sometimes it just returns "SYSTEM32" !!!
char buf[MAX_PATH];
GetSystemDirectory(buf,sizeof(buf))
Is there a bug in this API? Am I using it the wrong way? Thanks.
Drew
"Neil W" <ne...@netlib.com> wrote in message
news:uYgvfoTa...@TK2MSFTNGP05.phx.gbl...
Give us a clue - what are the "certain circumstances"?
Dave
Frankly, I don't believe you. GetSystemDirectory **ALWAYS** returns a full
path. Always has, always will. Show us your actual code, and we'll try to
point out where you're going wrong.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
If you are running this on a server with Terminal Services, you'll get a
user-specific path.
You may have third party software that is trying to hook into this stuff. A
remote access application perhaps.
Paul
"Tim Roberts" <ti...@probo.com> wrote in message
news:mggcg5hbrht5uuuc5...@4ax.com...
Not quite. GetWindowsDirectory will return a user-specific path in remote
sessions, but GetSystemDirectory (which he asked about) returns the same
System32 path for everyone.