为了使 Shell32 工作,我应该在 C# 应用程序中包含什么?
编辑:
我的应用程序无法识别 shell32。我应该包括哪些引用资料或库?我想做的是:
Shell32.Shell shell = new Shell32.Shell();
我收到的错误信息:
Error 1 The type or namespace name 'Shell32' could not be found (are you missing a using directive or an assembly reference?)
最佳答案
只需从 Windows\System32
文件夹中添加对 Shell32.dll
的引用并使用它:
Shell32.Shell shell = new Shell32.Shell();
shell.MinimizeAll();
关于c# - 如何在 C# 应用程序中使用 Shell32?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5708434/