public static IAsyncAction ShowManagedAccountsForWindowAsync(IntPtr hWnd) { IAccountsSettingsPaneInterop accountsSettingsPaneInterop = (IAccountsSettingsPaneInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(AccountsSettingsPane)); Guid guid = typeof(IAsyncAction).GUID; return(accountsSettingsPaneInterop.ShowManagedAccountsForWindowAsync(hWnd, ref guid)); }
public static IAsyncAction ShowManagedAccountsForWindowAsync(IntPtr hWnd) { Guid iid = typeof(IAsyncAction).GUID; IAccountsSettingsPaneInterop factory = InteropHelper.GetActivationFactory <IAccountsSettingsPaneInterop>(typeof(AccountsSettingsPane)); return(factory.ShowManagedAccountsForWindowAsync(hWnd, ref iid)); }