none
[UWP][DirectX] Using CreateSharedHandle and OpenSharedResourceByName RRS feed

  • Question

  • Hi,

    I'm trying to share a texture using IDXGIResource1::CreateSharedHandle and ID3D11Device1::OpenSharedResourceByName between external process and UWP app. According to the documentation, these APIs are allowed for UWP apps, but I get HResult 0x8876086A when I try to access the texture.

    The same code seems to work fine if I use ID3D11Device1::OpenSharedResourceByName from a Win32 process.

    • Is there a limitation in UWP that does not allow sharing of Dx resources?
    • Is there an App capability declaration (https://msdn.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations) that loosens up these restrictions? (Note: I'm developing an app for internal use - the app is sideloaded and does not target the Store)

    Isolated Sample:

    • Sender - Sender.zip - https://onedrive.live.com/redir?resid=A89456766249BD7B!1589&authkey=!AMHxnzQ5tS0Fsrg&ithint=file%2czip - (~27KB)
    • Receiver - UwpReceiver.zip - https://onedrive.live.com/redir?resid=A89456766249BD7B!1590&authkey=!ANIF8Y2cAr1nV-Q&ithint=file%2czip - (~87KB)

    Steps to reproduce:

    • Start the sender app
    • Start the receiver app - put a breakpoint on line 103 of SharedTextureRenderPanel.cpp

    Thanks,
    Nik

    • Moved by Active Geometry Tuesday, May 24, 2016 7:36 AM it is related the DirectX
    Monday, May 23, 2016 1:30 PM

Answers

  • The AppContainer context in which all UWP apps run isolates them from other processes on the system via restricted ACLs on resources. For example, you can't create objects in the global namespace. Thus, this kind of inter-process interaction is likely blocked.

    There's no "declared capability" for this scenario either.

    Tuesday, May 24, 2016 3:21 PM

All replies

  • Hi

    Your issue is related the DirectX and I know a better forum for it :" Visual Studio Graphics Tools forum ",let's move your case to there for better support. 

    Best Regards,
    Leon Guang

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, May 24, 2016 7:38 AM
  • The AppContainer context in which all UWP apps run isolates them from other processes on the system via restricted ACLs on resources. For example, you can't create objects in the global namespace. Thus, this kind of inter-process interaction is likely blocked.

    There's no "declared capability" for this scenario either.

    Tuesday, May 24, 2016 3:21 PM
  • What is the work arround ?
    Tuesday, May 22, 2018 8:32 AM