try
{
ChangeImagePathName("explorer.exe");
PinUnpinTaskbar(tempFilePath, true);
}
finally
{
RestoreImagePathName();
}
Now in my code i have used this segment of code. However it is in multi-thread mode. If multi-thread execute this segment of code, my application will hang on the PinUnpinTaskbar(tempFilePath, true) function.
Is there any advice?