Gohlool
Gohlool

Reputation: 463

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.

Upvotes: 0

Views: 805

Answers (1)

Matt
Matt

Reputation: 3014

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.

Upvotes: 1

Related Questions