BinaryData.au3 #Include <WinAPI.au3> Opt('MustDeclareVars', 1) Func FileToBinaryFunc($filename,$FuncName,$Outfilename) Local $nBytes Local $hFile = _WinAPI_CreateFile($filename, 2,2) if Not $hFile Then Return -1 Local $tSize = FileGetSize($filename) + 1 Local $DATA = DllStructCreate("byte[" & $tSize & "]") _WinAPI_ReadFile($hFile, DllStructGetPtr($DATA), $tSize, $nBytes) if @error Then _WinAPI_CloseHandle($hFile) return -2 EndIf _WinAPI_CloseHandle($hFile) Local $Binary = Stri