Whenever an API call needs a UserTile, it is copied to% TEMP% \% USERNAME% .bmp, which is usually C: \ Users \ username \ AppData \ Local \ Temp \ username.bmp.
But if you need to extract it directly from SAM, you can configure the details from http://deployment.xtremeconsulting.com/2010/06/23/usertile-automation-part-1/ so that the program reads HKLM \ SAM \ SAM \ Domains \ Account \ Users \ ???????? \ UserTile (in the system context!), Skip 12 bytes, read 4 bytes in uint and read that uint is the number of bytes in the file.
Edit: it seems to me, I should add that the API call that Explorer uses in Windows XP to get the icon is an unnamed address in one of the login dlls (so you cannot name it yourself, since this address must change between versions ), I canโt remember which DLL at the moment.
frozen
source share