How to Get Function argument names in mangle data?
-
Hi I am using UnDecorateSymbolName() method get function name and argument data type. but i want actual argument variable name? i try this code like void ExtractCppSymbol(char *szDecoratedName) { char szFunc[512]; if ( UnDecorateSymbolName(szDecoratedName, szFunc, 512, UNDNAME_COMPLETE > 0 )) { cout<
-
Hi I am using UnDecorateSymbolName() method get function name and argument data type. but i want actual argument variable name? i try this code like void ExtractCppSymbol(char *szDecoratedName) { char szFunc[512]; if ( UnDecorateSymbolName(szDecoratedName, szFunc, 512, UNDNAME_COMPLETE > 0 )) { cout<
As far as I know the argument names aren't in the decorated name, so there is NO way to extract them. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
As far as I know the argument names aren't in the decorated name, so there is NO way to extract them. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]i am using input mangled data from VC++ MAP file. This MAP file contains all details. i parse MAP file and pass to UnDecorateSymbolName() method. OR how to pass input for argument name with mangle data?
-
i am using input mangled data from VC++ MAP file. This MAP file contains all details. i parse MAP file and pass to UnDecorateSymbolName() method. OR how to pass input for argument name with mangle data?
The function and method names are decorated accordingly to the used calling convention, anyway what you can extract from a decorated name is, at most, the type of the formal parameters of a function (e.g.
int
,char *
,struct MyStruct &
, etc.), but not the name used in the source code.