When the explorer detached the dll which is for shell namespace extension on win Xp?

StackOverflow https://stackoverflow.com/questions/18354437

  •  25-06-2022
  •  | 
  •  

문제

I found that: the dll was detached(process) when I close the window(opend shell namespace externsion), but sometime didn't.

There are some global object in my dll. so, I want to find out when the dll be detached(process).

도움이 되었습니까?

해결책

If you export the DllCanUnload function from your DLL you will be called when Explorer wants to unload your DLL. You can block it if you want, or perform some clean-up before allowing the unload.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top