如何提取当前用户的帐户图片?

发布于 2024-08-29 13:23:07 字数 180 浏览 3 评论 0原文

我试图在 Windows 7 中提取当前用户的帐户图片,但我似乎无法弄清楚它所在的位置。我发现图片有时会写入用户的临时文件夹,但只有在执行某些操作后才会写入。它并不总是保证在那里。有人幸运地提取了这张图片吗?谢谢!

更新:我正在尝试使用 C++ 提取图像,但任何语言的帮助都将是一大进步。 :)

I am trying to extract the current user's account picture in Windows 7, but I can't seem to figure out where it is located. I have found that the picture is sometimes written to the User's temp folder, but only after performing certain actions. It isn't always guaranteed to be there. Has anyone had any luck extracting this image? Thanks!

Update: I am trying to extract the image using C++, but help in any language would be a big step. :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

陪你到最终 2024-09-05 13:23:07

每当 API 调用需要 UserTile 时,它​​都会被复制到 %TEMP%\%USERNAME%.bmp,通常是 C:\Users\username\AppData\Local\Temp\username。 bmp

但如果您需要直接从 SAM 中提取它,您可以调整 http://deployment.xtremeconsulting.com/2010/06/23/usertile-automation-part-1/,制作一个读取 HKLM\SAM\SAM\Domains\Account 的程序\Users\?????????\UserTile (在系统上下文中!),跳过 12 个字节,读取 4 个字节到 uint,并将该 uint 字节数读入文件。

编辑:我觉得我应该补充一点,Windows XP 中的资源管理器用于获取图标的 API 调用是登录 DLL 之一中的未命名地址(因此您不能自己调用​​它,因为该地址应该在版本之间更改),我现在不记得具体是哪个 DLL。

Whenever an API call needs the 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 adapt the details from http://deployment.xtremeconsulting.com/2010/06/23/usertile-automation-part-1/, to make a program to read HKLM\SAM\SAM\Domains\Account\Users\????????\UserTile (in system context!), skip 12 bytes, read 4 bytes to uint, and read that uint number of bytes into a file.

Edit: I feel I should add that the API call that Explorer in Windows XP uses to get the icon, is an unnamed address in one of the logon DLL's (hence you can not call it yourself, since that address should change between versions), I can not remember which exact DLL at the moment.

谁人与我共长歌 2024-09-05 13:23:07

此处用户下进行了描述Windows 7 中的配置文件磁贴。这似乎不太令人鼓舞。

It's described here under User Profile Tiles in Windows 7. It doesn't seem very encouraging.

兰花执着 2024-09-05 13:23:07

我不确定你想如何提取图片。但如果您只能使用 Windows 资源管理器,请转到 C:\Users\(您的用户名)\AppData\Local\Temp。图像文件名为 (your-username).bmp

我从 http://www.sevenforums.com/tutorials/5187-user-account-picture-change.html。我已经检查过并且有效。

I'm not sure about how you want to extract the picture. But if you just could use windows explorer, go to C:\Users\(your-username)\AppData\Local\Temp. The image file is named as (your-username).bmp

I got this from http://www.sevenforums.com/tutorials/5187-user-account-picture-change.html. I have checked it and it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文