Skip to content

memory mapped files #458

Closed
Closed

Description

@adrianstephens

How do you create memory-mapped files in UWP? Even if it is a separate API I still think it would be worth mentioning here


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. laurenhughes commented on Jun 13, 2018

    @laurenhughes
    Contributor

    adrianstephens, Thanks for your question! UWP apps are not currently allowed to use file mapping APIs.

  2. bryaan commented on Jun 13, 2018

    @bryaan

    Lauren Hughes (@laurenhughes) Is there any word on whether this kind of IPC is to be allowed at some point? I have no doubt companies are choosing to not use UWP precisely for these restrictions. If all we are doing is a desktop app is there a way to bypass?

  3. laurenhughes commented on Jun 13, 2018

    @laurenhughes
    Contributor

    Bryan Alexander Rivera (@bryaan), UWP support for Memory Mapped Files in some capacity is being considered by the product team. I'll pass your feedback along to the team as well! I don't believe there is a way to bypass the restriction even if your UWP app is only targeting desktop since it's a platform limitation.

  4. bryaan commented on Jun 14, 2018

    @bryaan

    Actually I think I found a way though BrokeredProxy but have not tried it yet. The platform limitation is one of security but not capability. It's understandable on mobile but not on Desktop. Many people want to build Desktop only, side-loaded is fine, apps using UWP, but those limits turn them away. Hope it's just a matter of time before the team gets green-light to allow full IPC, or at least for memory-mapped files.
    Thanks!

  5. added a commit that references this issue on Oct 28, 2019
  6. soumyamahunt commented on Aug 23, 2020

    @soumyamahunt

    Creating MMF is supported in UWP, but you have to declare codeGeneration capability in your manifest. While the capability documentation mentions that, the MMF documentation doesn't mention it which causes confusion. Also, you can use your existing dotnet code for MMF as the support has been declared while back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions