public static IAsyncAction ShowAddAccountForWindowAsync(IntPtr hWnd) { IAccountsSettingsPaneInterop accountsSettingsPaneInterop = (IAccountsSettingsPaneInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(AccountsSettingsPane)); Guid guid = typeof(IAsyncAction).GUID; return(accountsSettingsPaneInterop.ShowAddAccountForWindowAsync(hWnd, ref guid)); }
public static IAsyncAction ShowAddAccountForWindowAsync(IntPtr hWnd) { Guid iid = typeof(IAsyncAction).GUID; IAccountsSettingsPaneInterop factory = InteropHelper.GetActivationFactory <IAccountsSettingsPaneInterop>(typeof(AccountsSettingsPane)); return(factory.ShowAddAccountForWindowAsync(hWnd, ref iid)); }
public static IAsyncAction ShowAddAccountForWindowAsync(IntPtr hWnd) { IWebAuthenticationCoreManagerInterop webAuthenticationCoreManagerInterop = WebAuthenticationCoreManager.As <IWebAuthenticationCoreManagerInterop>(); IAccountsSettingsPaneInterop accountsSettingsPaneInterop = AccountsSettingsPane.As <IAccountsSettingsPaneInterop>(); //Guid guid = typeof(IAsyncAction).GUID; Guid guid = WinRT.GuidGenerator.CreateIID(typeof(IAsyncAction)); //IAccountsSettingsPaneInterop accountsSettingsPaneInterop = // (IAccountsSettingsPaneInterop)WindowsRuntimeMarshal.GetActivationFactory(typeof(AccountsSettingsPane)); //Guid guid = typeof(IAsyncAction).GUID; accountsSettingsPaneInterop.ShowAddAccountForWindowAsync(hWnd, ref guid, out IntPtr result); return(MarshalInterface <IAsyncAction> .FromAbi(result)); }
public static IAsyncAction ShowAddAccountForWindowAsync(IntPtr appWindow) { Guid iid = GuidGenerator.CreateIID(typeof(IAsyncAction)); return((IAsyncAction)accountsSettingsPaneInterop.ShowAddAccountForWindowAsync(appWindow, iid)); }