-->

Exported variable vs exported function in a DLL

2019-08-20 04:19发布

问题:

How to know if the exported symbol from a dll is actually variable or a function ?

One way may be to look whether the destination address of the symbol resides in the .code section or not.
Another method could be to check the memory protection attributes of the selected section.

But all these methods seem to be unreliable.

What is the best way ?