VIP

How to check if a Application .exe file is 16-bit/ 32-bit or 64-bit Type

4 posts in this topic

How to Determine if Application is Compiled for DOS/16/32-bit or 64-bit with AutoIt?
 


Regards,
 

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

I've found a few applications that allow determination.

But I want to make by AutoIt without 3rd party applications.
 

Thanks UEZ

; #FUNCTION# ====================================================================================================================
; Author.........: Yashied
; Modified.......: jpm
; ===============================================================================================================================
Func _WinAPI_GetBinaryType($sPath)
    Local $aRet = DllCall('kernel32.dll', 'int', 'GetBinaryTypeW', 'wstr', $sPath, 'dword*', 0)
    If @error Then Return SetError(@error, @extended, 0)
    If Not $aRet[0] Then $aRet[2] = 0

    Return SetExtended($aRet[2], $aRet[0])
EndFunc   ;==>_WinAPI_GetBinaryType
Edited by Trong

Regards,
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now