Oh my gosh so much to play with in the new release. TOo bad no time at the moment, but wow this will very great tool!! Thanks so much!
Roberto,
a nice addition to EXE module can be a function returning a TAB (or whatever) separated string listing all exported procedures giving an exe or dll file name. Something like:
[code=thinbasic]
FUNCTION EXE_ListExportedProcedcures(ExeOrDllName [, StringSeparator]) AS STRING
[/code]
Here some code can help to start:
http://www.powerbasic.com/support/fo...ML/001212.html
http://www.powerbasic.com/support/fo...ML/000821.html
Do you like?
Ciao
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Oh my gosh so much to play with in the new release. TOo bad no time at the moment, but wow this will very great tool!! Thanks so much!
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
Hey Ken, not yet developed but just asked.
But I'm pretty sure Roberto will add it. I think there are differences between OS versions but we will see.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks Eros.
Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server
Added EXE_PE_GetExportList() and EXE_PE_GetImportList() functioons.
Here is an example of use:
[code=thinbasic] USES "UI"
USES "EXE"
USES "File"
DIM sFile as string
DIM sSeparator AS STRING
DIM sFilter AS STRING
DIM sImport as string
DIM sExport as string
sSeparator = ", "
sFilter = "Executables files (*.exe, *.dll)|*.exe;*.dll|"
sFilter += "All Files (*.*)|*.*"
sFile = Dialog_OpenFile(0, "Please select an executable file", DIR_GetCurrent, sFilter, "exe", %OFN_FILEMUSTEXIST OR %OFN_HIDEREADONLY or %OFN_ENABLESIZING)
if len(sFile) > 0 then
sImport = EXE_PE_GetImportList(sFile, sSeparator)
sExport = EXE_PE_GetExportList(sFile, sSeparator)
Msgbox 0, "FILE: " + sFile + $CRLF + "IMPORTED FUNCTIONS:" + $CRLF + sImport + $CRLF + "EXPORTED FUNCTIONS:" + $CRLF + sExport
end if
[/code]
Regards,
Roberto
http://www.thinbasic.com
Mmmh, do I read this correctly? I will be able to get the module functions including their parameters?
Here are a screenshots of output of above script runned on my Windows 98 PC.
Ciao,
Roberto
http://www.thinbasic.com
Sorry, only the name of functions imported or exported by the PE executable.
Roberto
http://www.thinbasic.com
Thanks. I thought that it would be that way, but somehow I also thought that you guys foudn a way for thinbasic modules.
That remain a dream :'(Originally Posted by MikeHart
As you know, there is no way to detect function parameters in exported fucntions from DLLs.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks