Ticket #92: DllStructTrunc.au3

File DllStructTrunc.au3, 263 bytes (added by Valik, 16 years ago)
Line 
1Local Const $sSource = "12345678"
2Local $p_VS_String = DllStructCreate("wchar   szKey[8]" )
3DllStructSetData($p_VS_String,"szKey", $sSource)
4MsgBox(4096, "", "Expected:" & @TAB & $sSource & @CRLF & "Received:" & @TAB & DllStructGetData($p_VS_String,"szKey"))