Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: New thinBasic_exe.dll module

  1. #1

    New thinBasic_exe.dll module

    We started a new module development, the thinBasic_exe.dll.
    Main purpose of this module is provide easyeexecutables files management.
    It starts with the following functions (two are already present in the FILE module) four functions:

    • EXE_PE_GetSubsystem()
    • EXE_PE_GetSubsystemName()
    • EXE_GetVersion()
    • EXE_GetVersionString()


    but soon other functions will be added.
    Module will be in distribution next week, but here is a preview with an interesting script for analyse the subsytem type of executables contained into the Windows folders and sub folders.
    Also you found here two screen shot of analysys.
    to run the script unzip the attached file thinBasic_Exe.zip into the ThinBASIC modules folder.

    Regards,
    Roberto

    Attached Images Attached Images
    Attached Files Attached Files
    http://www.thinbasic.com

  2. #2
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: New thinBasic_exe.dll module

    That is really neat. I feel like an IT guy with a nice report like that. Thanks, impressive to see it work like that!
    Attached Images Attached Images
    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

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: New thinBasic_exe.dll module

    Hi,

    this is very nice module !
    It is also interesting to see Vista has so many times more files to analyze than XPs ???

    Bye,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4

    Re: New thinBasic_exe.dll module

    Here are my results:
    Attached Images Attached Images

  5. #5

    Re: New thinBasic_exe.dll module

    Thanks for sharing your data.
    It's always very iteresting make comparative studies between one Windows release and another.
    From this point of view I think that ThinBASIC has many even still unexpressed possibilities, so if you are sightseeing like me please stay tuned because more functions will arrive in order to satisfy your curiosity .

    Ciao,
    Robert
    http://www.thinbasic.com

  6. #6

    Re: New thinBasic_exe.dll module

    I will for sure!

  7. #7

    Re: New thinBasic_exe.dll module

    In order to detect the executable type I added the followings two functions:

    • EXE_GetType()
    • EXE_GetTypeName()


    Here is a new interesting script (RecurseExeType.tBasic) that try to detect the executable type (I mean MZ, LE, PE) of exe files contained into the Windows folders and sub folders.
    Please note that I also changed some ThinBasic_EXEs' constant, so attached to this post you'll find the updated version of RecurseExeSubsystem.tBasic.

    Regards,
    Roberto
    Attached Images Attached Images
    Attached Files Attached Files
    http://www.thinbasic.com

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: New thinBasic_exe.dll module

    Roberto,

    just few minor changes.

    [code=thinbasic]

    ListDir("c:\windows\", "*.*", "*.EXE")

    [/code]

    should be changed to
    [code=thinbasic]

    ListDir(OS_GetWindowsDir, "*.*", "*.EXE")

    [/code]
    in both examples in order to be sure about windows directory.

    Also add a -20 to RMC_SetCtrlSize to keep aspect ratio otherwise chart is right/bottom a little bit outside client area.
    [code=thinbasic]

    RMC_SetCtrlSize( %ID_RMC1, nDlgW-20, nDlgH-20)

    [/code]

    Nice, nice code!
    Thanks a lot
    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

  9. #9
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: New thinBasic_exe.dll module

    Neat, but I have no idea what PE or LE is? I guess I could look it up, but wanted to post to say thanks TOO.
    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

  10. #10

    Re: New thinBasic_exe.dll module

    Kryton,

    for your info, PE means Portable Executable file format that's the Win32-based systems: (from Windows NT, Win32s, and Windows 95 up to Windows Vista.
    Instead LE stands for Linear Executable file format and it was used by OS/2 and by Windows 95 device drivers, it's the first 32 bit executable file format born when Microsoft still working closed to IBM.
    NE means for New Executable, back when Windows was "new" (and DOS was "old") It was a 16 bit executable.
    So when you speaking about executable file format you can easly identify the type, and platform just say the signature MZ, PE, NE and LE.
    I forgot to say what MZ means, the DOS signature AKA the legendary Mark Zbikowski that you found as stub in both PE and NE executables files.

    Eros,
    you (and your cosmetics update) are welcome!
    Now it's really good code.

    Ciao,
    Roberto
    http://www.thinbasic.com

Page 1 of 2 12 LastLast

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •