简体   繁体   中英

How to get the UserName of the PDA/Windows Mobile using .Net CF 3.5?

well, this works great on a non Windows Mobile:

string user = WindowsIdentity.GetCurrent().Name.ToString();

but, what I am looking for is how to get the name of the user on a Windows Mobile 5.0 and higher!

I tried the search feature, but unfortunately didn't find anything yet!

Thanks in advance.

You can use the SystemState.OwnerName to get the name of the owner of the device, if they have filled that information in.

There is no currently logged on user for windows mobile devices.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM