获取Windows登录用户的用户图像(使用C#) [英] Get User Image for Windows Login user (Using C#)

查看:149
本文介绍了获取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#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆