I have sent proposition for this new UDF to Gary today. So here it is. Example: #include <WinAPI.au3> Global $sFile, $hFile, $sText, $nBytes, $tBuffer ; 1) create file and write data to it $sFile = @ScriptDir & '\test.txt' $sText = 'abcdefghijklmnopqrstuvwxyz' $tBuffer = DLLStructCreate("byte[" & StringLen($sText) & "]") DLLStructSetData($tBuffer, 1, $sText) $hFile = _WinAPI_CreateFile($sFile, 1) _WinAPI_WriteFile($hFile, DLLStructGetPtr($tBuffer), StringLen($sText), $nByte