How to use Shell32 within a C# application?

后端 未结 9 1710
野的像风
野的像风 2020-11-27 17:21

What should I include within a C# application in order to make Shell32 work?

Edit:

My application can\'t recognize shell32. What references

9条回答
  •  执念已碎
    2020-11-27 18:18

    Just add a reference to Shell32.dll from the Windows\System32 folder and use it:

    Shell32.Shell shell = new Shell32.Shell();
    shell.MinimizeAll();
    

提交回复
热议问题