JohnOne,
It is in the one I have - here you go:
Func __Init($bData)
Local $tData, $Ret, $Lenght
$Lenght = BinaryLen($bData)
$Ret = DllCall('kernel32.dll', 'ptr', 'VirtualAlloc', 'ptr', 0, 'ulong_ptr', $Lenght, 'dword', 0x00001000, 'dword', 0x00000040)
If (@error) Or (Not $Ret[0]) Then
__FatalExit(1, 'Error allocating memory.')
EndIf
$tData = DllStructCreate('byte[' & $Lenght & "]", $Ret[0])
DllStructSetData($tData, 1, $bData)
Return $Ret[0]
EndFunc ;==>__Init
Func __FatalExit($iCode, $sText = '')
If $sText Then
_WinAPI_MsgBox(0x00040010, 'AutoIt', $sText)
EndIf
_WinAPI_FatalExit($iCode)
EndFunc ;==>__FatalExit
Func _WinAPI_FatalExit($iCode)
DllCall('kernel32.dll', 'none', 'FatalExit', 'int', $iCode)
EndFunc ;==>_WinAPI_FatalExit
And belated apologies for having cheered on Oldham last night - although I did not really expect a different result.
M23