I think you have searched the forum and internet, simply to answer you, Windows 8 UI app cannot do the communication with the Desktop directly, since it runs in the sandbox, and for the scurity, the App cannot send and access the desktop process, access
the registry.
However, we have some solutions for it, such as:
1, transfer the data via file, as you did it by accessing the document library.
2, transfer the data via clipboard, but it still seems stupid.
3, via WCF, you could create a localy WCF service in the desktop application, and in Metro, that supports some WCF bindings, (reference to this document:
http://blogs.msdn.com/b/piyushjo/archive/2011/10/19/wcf-for-metro-apps-supported-functionality.aspx) then you could connect the desktop service via WCF and share the data between them. How to develop WCF in Win8 UI App, please refer to:
http://blogs.msdn.com/b/piyushjo/archive/2011/09/22/wcf-in-win8-metro-styled-apps-absolutely-supported.aspx
4, via Network Socket, Windows 8 UI app WinRT APIs contains the socket communication APIs. Lists here:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.networking.sockets.aspx You could use them to connect the local desktop via socket way.
5, via remote or cloud server, if you have one remote or cloud server, then your Windows 8 UI app and desktop app both can connect it and share the data.
Sincerely,
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
