C#-如何获取当前用户图片 [英] C# - How to get current user picture
本文介绍了C#-如何获取当前用户图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取C#中已登录用户的图像?谢谢
how can I get the image of the logged in user in c#? Thanks
推荐答案
在每个OS上都是不可能的.但在可能的操作系统上:
That is not possible on each OS; but on the OS'es where it is possible:
对于Windows Vista或更高版本:
该图片位于 C:\ Users \ UserName \ AppData \ Local \ Temp \ UserName.bmp
That image is located in C:\Users\UserName\AppData\Local\Temp\UserName.bmp
如果该用户是域用户,则为"DOMAIN+UserName.bmp"
(是的,"+"是文件名的一部分)
if the user is a domain user, it will be "DOMAIN+UserName.bmp"
(Yes, the '+' is part of the filename)
这篇关于C#-如何获取当前用户图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文