The KeyringGetUnlockedRealms method returns identifiers of access realms that are unlocked by a keyring. This method is new in API 1.2.
long[] KeyringGetUnlockedRealms( string keyring )
An array of identifiers of access realms unlocked by the provided keyring.