zoukankan      html  css  js  c++  java
  • .net读取Windows登录用户信息(downmoon)

    前天,在CodeProject看到一篇文章http://www.codeproject.com/KB/system/LSAEnumUserSessions.aspx

    如何读取windows 当前登录用户的状态信息。

    主要代码分享如下:

    一:导入dll

    Code

     二、调用方法,写入一个ListBox中

    Code

     更多DirectoryEntry的信息,请查阅

    http://msdn.microsoft.com/zh-cn/library/system.directoryservices.directoryentry_members.aspx

    邀月注:本文版权由邀月和博客园共同所有,转载请注明出处。
    助人等于自助!  3w@live.cn
  • 相关阅读:
    339. Nested List Weight Sum
    41. First Missing Positive
    366. Find Leaves of Binary Tree
    287. Find the Duplicate Number
    130. Surrounded Regions
    ubuntu18.04安装mongodb4.4
    阿里dataX配置使用
    MySQL主从同步简单介绍&配置
    阿里yugong配置使用
    ubuntu编译安装mysql
  • 原文地址:https://www.cnblogs.com/downmoon/p/1365248.html
Copyright © 2011-2022 走看看