On 17/01/2008, Tim Golden [EMAIL PROTECTED] wrote:
Ummm... see my earlier point a few posts back which refers
to r54364 which gave priority to USERPROFILE over HOMEDRIVE/HOMEPATH
Sorry. I'd not realised this was a post-2.5 revision (ie, not in
released code yet...)
Looking at the change, it
Christian Heimes wrote:
Paul Moore wrote:
I'd recommend that this change be reverted. To correctly get another
user's home directory would involve reading (via the registry, or
maybe some utility function I couldn't find at a quick glance) the
value of HOMEDRIVE/HOMEPATH which is set for the
Paul Moore wrote:
I'd recommend that this change be reverted. To correctly get another
user's home directory would involve reading (via the registry, or
maybe some utility function I couldn't find at a quick glance) the
value of HOMEDRIVE/HOMEPATH which is set for the other user. (In fact,
Tim Golden wrote:
Frustratingly, I don't believe there's *any* canonical
way to find ~user without actually going through the whole
process of getting a token and impersonating them. If
they've logged onto this machine already you can have
a good go by following the code posted the other day