我们可以将Windows Impersonate与Microsoft Shell控件和自动化一起使用吗?

时间:2020-02-05 01:52:31

标签: c# impersonation shell32.dll

我正在使用shell类来获取这样的文件属性。(C#)

Folder folder = (new ShellClass()).NameSpaces("folderPath");
FolderItem item = folder.ParseName("filename");
string owner = folder.GetDetailsOf(item, 10);

如何使此代码适用于其他域的计算机上的文件?我已经尝试过Windows模拟但无法正常工作。

0 个答案:

没有答案