I'm looking for the location to the images that are used next user's accounts when a user logs into a windows 7 system. Can someone point me in the right direction.
The following is a screenshot of the pictures I'm referring to:
Need the location so that I can add/edit/remove images via a program (E.g. Different icons for different employee types.)
Not really a programming question, but the location appears to be C:\ProgramData\Microsoft\User Account Pictures\Default Pictures
.
I only have access to Windows XP here, but looking in the source code of picturespage.js
inside nusrmgr.cpl
(the users Control Panel applet), it loads the pictures using this code:
EnumPics(top.window.GetShell().NameSpace(35).Self.Path + "\\Microsoft\\User Account Pictures\\Default Pictures");
Namespace 35 (0x23) is apparently ssfCOMMONAPPDATA
.
The 'Common App Data' path is [generally] C:\Documents and Settings\All Users\Application Data\
on XP, and C:\ProgramData\
on Vista and above. That path can retrieved through the Windows API by calling SHGetKnownFolderPath
with CSIDL_COMMON_APPDATA
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With