获取WINDOWS是否登录及登录用户名(支持服务模式)

上传者: xiaoxiaospace | 上传时间: 2020-01-03 11:42:29 | 文件大小: 155KB | 文件类型: rar
在用户已经登录了WINDOWS的情况下,普通程序通过GetUserName可以获得当前登录的用户名,但是在服务模式下,却是无法获得正确的信息,并且无法判断用户是否登录。本函数很简洁,用来支持在服务模式下能判断出是否有用户进行了登录,用户是否登出等状态,并且能够获得登录用户的用户名。 这段代码主要是给服务程序使用的,代码为C++代码,VS2013编译通过,希望能帮助到有同样困惑的朋友。

文件下载

资源详情

[{"title":"( 12 个子文件 155KB ) 获取WINDOWS是否登录及登录用户名(支持服务模式)","children":[{"title":"GetCurrentLogonUser","children":[{"title":"GetCurrentLogonUser.v12.suo <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false},{"title":"GetCurrentLogonUser","children":[{"title":"stdafx.cpp <span style='color:#111;'> 225B </span>","children":null,"spread":false},{"title":"GetCurrentLogonUser.vcxproj <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"GetCurrentLogonUser.vcxproj.filters <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"GetCurrentLogonUser.cpp <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false},{"title":"Debug","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"GetCurrentLogonUser.sln <span style='color:#111;'> 1003B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"GetCurrentLogonUser.exe <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"GetCurrentLogonUser.ilk <span style='color:#111;'> 251.18KB </span>","children":null,"spread":false},{"title":"GetCurrentLogonUser.pdb <span style='color:#111;'> 692.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明