Getting Owner Name

I know I've seen this but for the life of me, I can't find it.
Does someone have a small snippet that gets the Owner string?

Thanks as always!

[150 byte] By [Jraven] at [2008-2-23]
# 1
You can do it through State and Notification broker APIs.

Here's C# snippet:

using Microsoft.WindowsMobile.Status;

....

owner = ConvertToString(SystemState.GetValue(SystemProperty.OwnerName));

There are native counterparts too.
In SDK help look under

Developer's Reference->Managed Code->Microsoft.WindowsMobile.Status
Developer's reference -> NativeCode->State and NotificationsBroker

Hope this helps.

Thanks,
Preethi

PreethiMohan at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices General...