获取Windows登录用户的用户图像(使用C#)

编程入门 行业动态 更新时间:2024-10-24 04:45:31
本文介绍了获取Windows登录用户的用户图像(使用C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 对于我的Lan Messenger,我喜欢显示用户图像.该图像应该是Windows当前的登录用户图像.我得到一些链接,该链接表示当前登录用户图像的图像将在此路径C:\ Users \< username> \ AppData \ Local \ Temp \<中可用.用户名> .bmp.但是我看不到LAN Messenger仅适用于域登录用户.因此该用户图像将在哪里可用.截至目前,我还没有任何提供确切解决方案的链接. 1.用户可以登录Windows操作系统Xp,Vista,Windows 7中的任何一个.

Hi all, For my Lan Messenger i like to display the user image. The image should be the Windows current Login user image.I got some link which say that the image of the current login user image will be available in this path C:\Users\<username>\AppData\Local\Temp\<username>.bmp. But i dont see that the LAN messanger will work only for Domain Login users. so where will the user image available. As of now i didn''t get any links that gives the exact solution. 1. The user can login in any of windows operating system Xp,Vista, windows 7. how can i get that user image.

推荐答案

对于Vista和更高版本,该图像位于C:\ Users \ UserName \ AppData \ Local \ Temp \ [UserName ] .bmp For Vista and later, the image is located in C:\Users\UserName\AppData\Local\Temp\[UserName].bmp

更多推荐

获取Windows登录用户的用户图像(使用C#)

本文发布于:2023-11-06 06:57:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562999.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户   图像   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!