Windows phone 8 WP8网络共享API
对于桌面应用程序,我使用以下方法访问网络共享:Windows phone 8 WP8网络共享API,windows-phone-8,smb,Windows Phone 8,Smb,对于桌面应用程序,我使用以下方法访问网络共享: [DllImport("mpr.dll")] private static extern int WNetAddConnection2(NetResource netResource, string password, string username, int flags); [DllImport("mpr.dll")] private static extern int WNetCancelCon
[DllImport("mpr.dll")]
private static extern int WNetAddConnection2(NetResource netResource,
string password, string username, int flags);
[DllImport("mpr.dll")]
private static extern int WNetCancelConnection2(string name, int flags,
bool force);
WP8 SDK上有类似的API吗?没有。Windows phone不支持网络共享。它与全窗口不同。没有dllimport或对本机API的访问我认为这也不可能。另外,我确信您不想构建一个小型服务器来提供目标计算机上的文件和文件夹。。。但是你可以做一些类似于应用程序“轻松传送”(Easy Transfer)所做的事情,并构建应用程序作为服务器。虽然此链接可能会回答这个问题,但最好在此处包含答案的基本部分,并提供链接供参考。如果链接页面发生更改,仅链接的答案可能会无效。感谢Pokechu22的指导。下次我会尝试通过添加相关代码(如果有)来更具体地回答问题,因为实际回答问题比提供建议更有意义。