如何检测Windows的当前用户 [英] How to detect current user of windows

查看:69
本文介绍了如何检测Windows的当前用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,


我想检测使用vb.net登录到Windows系统的当前用户。

这是通知所必需的最终用户在什么特权应用程序运行。


请帮助

Hello friends,

I want to detect the current user which is logged on to windows system using vb.net.
This is required to notify end user under what privilages application is running.

Please help

推荐答案

Environment.UserName
Environment.UserName


有一天......


人们在发布问题之前开始咨询教科书

并且神奇地论坛只包含实际需要的问题

要解决的经验和逻辑...


一天......
One day ...

people started consulting text books before posting questions
and magically the forum only consisted of questions that actually require
experience and logic to solve ...

one day ...



一天......


人们在发布问题之前开始咨询教科书

并且神奇地论坛只包含实际需要的问题

经验和逻辑解决...


一天...
One day ...

people started consulting text books before posting questions
and magically the forum only consisted of questions that actually require
experience and logic to solve ...

one day ...



你说的,兄弟。我为回答这个问题而烦恼的唯一原因是因为我从头脑中知道它并且它实际上只用了两个字。

You said it, bro. The only reason I bothered answering this one is because I knew it off the top of my head and it literally took two words.


这篇关于如何检测Windows的当前用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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