Reputation: 434
I have a Windows desktop app that launches worker processes that contain unmanaged code. The unmanaged code is not thread safe - I am wrapping it in a process to fully isolate it.
I would like to create a new version for the Windows App (metro) marketplace.
Anyone have any suggestions on doing the same from a metro application? There doesn't appear to be any way to really launch a separate process (at least, without something hacky that requires a separate install). I could wrap it in a AppDomain, but I don't think that provides the isolation I need. I could PINVOKE ONE instance, but the thread-safe issue makes it a issue for more than one instance.
Upvotes: 1
Views: 193
Reputation: 21919
Windows Store apps cannot launch arbitrary processes, but they can launch out-of-proc components from within their app-package. You could wrap your unsafe code in a Windows Runtime EXE component.
There is a sample demonstrating this at Creating a Windows Runtime EXE component with C++ sample
Also make sure that the existing processes don't depend on API (such as System.AppDomain) that are unavailable to Windows Store apps. MSDN has documentation on which .Net and Win32 API are available in Runtime apps at .NET for Windows Runtime apps and Win32 and COM APIs
Upvotes: 3