Wilfried Mestdagh wrote:
hi,
how to find user directory ? I know it must be somewhere in registry,
but in witch key ?
If you mean the path under "Documents and Settings" for the
current logged in user then what you should use is the Shell
routine SHGetSpecialFolderPath() with CSIDL_PROFILE for the
nFolder parameter.
Unfortunately CSIDL_PROFILE isn't declared in shlobj.pas so
you'll have to declare it yourself:
const
CSIDL_PROFILE = $0028;
Read more here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderpath.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp
http://vbnet.mvps.org/index.html?code/browse/csidlversions.htm
http://www.mvps.org/access/api/api0054.htm
Stephen Posey
[EMAIL PROTECTED]
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk