View Single Post
Old 21-11-2010, 14:16   #12
ezio
Senior Member
 
L'Avatar di ezio
 
Iscritto dal: Apr 2001
Città: Giovinazzo(BA) ...bella città, riso patat e cozz a volontà!
Messaggi: 26494
Sì infatti, ne parla anche una kb di msdn: http://msdn.microsoft.com/en-us/libr...92(VS.85).aspx
Però non ci sono riferimenti utili a modificare manualmente il percorso per il caricamento dell'immagine.

EDIT: qui c'è qualche dettaglio in più, sembra che l'immagine sia caricata dal kernel nel database SAM:
http://social.msdn.microsoft.com/For...e-58269ad33f6c
Un casino insomma, mi fa pensare che non sia possibile mettere mani con batch e chiavi di registro per il singolo utente...

Qualche dettaglio in più:
Quote:
The occurs because of the following behavior, when a user changes his default picture it writes the bitmap to a .dat file in the user account pictures directory under the name {domain}+{username}.dat. When explorer starts it checks whether this file exists for the logged on user and, if it does, copies the bitmap part of the file into memory. If it doesn’t find it or the policy “Apply the default user logon picture to all users” is applied, it will use the user.bmp or guest.bmp (depending on the user) that are also in the same directory. Its where these files are copied into memory that the problem occurs. We do a check on whether the policy is applied and if it isn’t we’ll copy the bitmap into memory. If it is applied we don’t copy anything into memory and this is why we get a empty frame.

Ultima modifica di ezio : 21-11-2010 alle 14:32.
ezio è offline   Rispondi citando il messaggio o parte di esso