Brokered UWP Component - Administrator privilege

0

I am trying to use a 3rd party API to print an html file. When I use vendor's SDK in WinForm application, it fails during InternetExplorer operations. (error is below) So I found out that process should run only on "Administrator" privilege. And then, application and print operations work well.

The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)): Stack Trace: at System.Runtime.InteropServices.ComTypes.IConnectionPoint.Unadvise(Int32 dwCookie) at SHDocVw.DWebBrowserEvents2_EventProvider.remove_TitleChange(DWebBrowserEvents2_TitleChangeEventHandler ) at SHDocVw.InternetExplorerClass.remove_TitleChange(DWebBrowserEvents2_TitleChangeEventHandler )

My question starts after that. I have to use same API to print in a brokered UWP app. Say it is a assigned-access / kiosk application. I know UWP cannot run with user elevation, but i assume brokered app should have some settings to run, basically "dllhost.exe" as administrator. Because of the application should run on assigned access mode, I cannot set assigned access user as Administrator. (I have doubt it will work even if i set it)

Are there any possibility to run dllhost.exe as admin? Or any other suggestion for issue?

c#
uwp
elevated-privileges

1 Answer

0

If compared with WinForms framework, UWP has significantly different security model. Same issue for the list of APIs available, and for app-level lifetime schema. Thus, I would suspect you have to contact your vendor for UWP-compatible SDK.

answered on Stack Overflow May 22, 2018 by Yury Schkatula

User contributions licensed under CC BY-SA 3.0