Does LoadLibrary create distinct instances?

前端 未结 3 507
星月不相逢
星月不相逢 2020-12-17 08:48

If I use the Win32 API LoadLibrary to load the same DLL 3 times in a row it should return 3 distinct handles and the functions in each library should all have diffe

3条回答
  •  隐瞒了意图╮
    2020-12-17 09:32

    No, it doesn't. To get around this, you can copy the .dll to a temporary file (as many times as you need to load the .dll) and then delete the files once you're done.

提交回复
热议问题