简体   繁体   中英

UWP User Impersonation

I am trying to access a Network Share Folder on a Hololens Application. Within Unity I have a class which goes to a Network Share Folder grabs a model and loads it at run time. When I run it on the Hololens it seems it cannot find that network share and I suspect I need to impersonate a windows user and then access the network share that way. Has anyone ever done impersonation within a UWP application? I was thinking of creating a Class Library then importing the DLL but everything Ive tried from within the UWP class library doesn't work as all the examples are for .NET.

Regards, Jay

Assuming you don't actually need to impersonate another user, but instead just authenticate to the other device as the current user, you should be able to do this with the privateNetworkClientServer and enterpriseAuthentication capabilities. You can also use the FileOpenPicker to let the user pick something from the network.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM