Is DLL always have the same Base Address?

后端 未结 3 1608
死守一世寂寞
死守一世寂寞 2021-01-11 21:58

I\'m studying about windows and DLL stuffs and I have some question about it. :)

I made a simple program that loads my own DLL. This DLL has just simple functions, p

3条回答
  •  甜味超标
    2021-01-11 22:14

    The operating system will load your DLL in whatever base address it pleases. You can specify a "preferred" base address, but if that does not happen to be available, (for whatever reason, which may well be completely out of your control,) your DLL will be relocated by the operating system to whatever address the operating system sees fit.

提交回复
热议问题