|
Prev: IOCTL_NDIS_QUERY_GLOBAL_STATS Supported On Vista/Server 2008?
Next: ANN: user- and kernel mode unit testing framework cfix 1.1 released
From: Harish on 14 Jul 2008 00:23 How can I get the folder name of the logged-in user? (C:\Documents and Settings\...<user name>...\Local Settings\Application Data) --Harish
From: Jeroen Mostert on 14 Jul 2008 00:30 Harish wrote: > How can I get the folder name of the logged-in user? > (C:\Documents and Settings\...<user name>...\Local Settings\Application Data) SHGetFolderPath(..., CSIDL_LOCAL_APPDATA, ...); -- J.
From: Coca on 14 Jul 2008 08:55 On Jul 14, 5:23 am, Harish <Har...(a)discussions.microsoft.com> wrote: > How can I get the folder name of the logged-in user? > (C:\Documents and Settings\...<user name>...\Local Settings\Application Data) > --Harish Or call GetEnvironmentVariable with %userprofile% :-) Coca
From: Mihai N. on 15 Jul 2008 00:32
> Or call GetEnvironmentVariable with %userprofile% :-) There are no guarantees that the environment variable is set. SHGetFolderPath is the safer option. -- Mihai Nita [Microsoft MVP, Visual C++] http://www.mihai-nita.net ------------------------------------------ Replace _year_ with _ to get the real email |