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 ?