Trong Posted March 2, 2015 Posted March 2, 2015 How to Determine if Application is Compiled for DOS/16/32-bit or 64-bit with AutoIt? Regards,
orbs Posted March 2, 2015 Posted March 2, 2015 hope you have a good reason for limiting yourself... personally i find this very useful: https://technet.microsoft.com/en-us/sysinternals/bb897441.aspx Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Solution UEZ Posted March 2, 2015 Solution Posted March 2, 2015 Check out _WinAPI_GetBinaryType Br, UEZ Trong 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Trong Posted March 2, 2015 Author Posted March 2, 2015 (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 March 2, 2015 by Trong Regards,
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now