;*************************************************************
Func SetSharedData($shmem_name, $data)
   ;DllCall("DPWriteLibSharedMemory.dll","none:cdecl","SetSharedMemoryCstr","str", $shmem_name, "str", $data)
   DllCall("DPWriteLib-AutoIt.dll","none:cdecl","SetSharedMemoryCstr","str", $shmem_name, "wstr", $data)
   If @error Then
       MsgBox(0,"DPW_Shmem.au3","Error calling SetSharedMemoryCstr")
   EndIf
EndFunc

;*************************************************************
Func SetReturnData($var, $val)
    SetSharedData("AutoIt_ret", $var + ":" + $val)
EndFunc

