Dynamic code execution on WinRT in Windows 8 (either C++ or .NET/C#)?

后端 未结 9 1359
谎友^
谎友^ 2021-01-02 04:12

Does WinRT under windows 8 metro allow you to dynamically load and execute code? For example, is it possible to download a dll into memory or to isolated storage and run cod

9条回答
  •  -上瘾入骨i
    2021-01-02 04:36

    Does WinRT under windows 8 metro allow you to dynamically load and execute code?

    No.

    For example, is it possible to download a dll into memory or to isolated storage and run code from it?

    No.

    Could code that JIT compiles a scripting language to native assembly language (e.g. third party browsers) be able to do the same in WinRT, or is it prohibited as an "unsafe" operation?

    It would be prohibited.

    Is the answer to this question different for "managed" code running in WinRT?

    No.

    For example, in managed code, could you download an assembly from the internet and have it be discoverable in MEF or otherwise be able to load it at runtime?

    No.

    Can you use Reflection.Emit in some form?

    No.

    In C++, can you run assembly code generated at runtime by your application, or dynamically load a DLL at runtime (presumably some form of WinRT DLL)?

    No.

    Everything you described would allow the safety guarantees of WinRT to be circumvented.

提交回复
热议问题