Where does DLLImport look for unmanaged DLLs?

前端 未结 2 1594
抹茶落季
抹茶落季 2021-02-14 07:45

A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime look to resolve that DLL dependency? Would I have to dump the DLL and all of its

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-14 08:38

    I think it is working like LoadLibrary.

    Maybe Windows path searching in LoadLibrary with manifest will be helpfull.

    Edit Dynamic-Link Library Search Order is probably what you want.

提交回复
热议问题