标签: c#
try { ChangeImagePathName("explorer.exe"); PinUnpinTaskbar(tempFilePath, true); } finally { RestoreImagePathName(); }
现在在我的代码中我使用了这段代码。但是它处于多线程模式。如果多线程执行这段代码,我的应用程序将挂在 PinUnpinTaskbar(tempFilePath,true)函数上。
有什么建议吗?