provides information about the format and symbols provided in executable and DLL files (Windows).
infolist = dllinfo(filename,option)
:filename a string : a filename .dll or .exe file : :option a string : ‘machine’ , ‘exports’ , ‘imports’ : :infolist a list : infolist(1) : a string : name of dll or
executable. infolist(2) : a string matrix : symbols (imported or exported) or machine type (x86 or x64).
:
This tool provides information about the format and symbols (imported or exported) provided in executable and DLL files.
This tool is based on dumpbin.exe. A tool provided with Visual studio SDK.
if `getos`_() == 'Windows' then
filename = SCI+'\bin\libscilab.dll';
dllinfolist = dllinfo(filename,'machine');
`mprintf`_('Machine destination of %s: %s\n',dllinfolist(1),dllinfolist(2));
dllinfolist = dllinfo(filename,'imports');
`mprintf`_('Dlls dependencies of %s:\n',filename);
for i=1:`size`_(dllinfolist)
`mprintf`_('%s\n',dllinfolist(i)(1));
end
dllinfolist = dllinfo(filename,'exports');
`mprintf`_('Dll exports of %s:\n',filename);
`disp`_(dllinfolist);
end