Hi there everybody, i'am Starting a new UDF. here is the code i have so far. Global $packet_dll = @SystemDir & "\packet.dll" ConsoleWrite(_PcapPacketGetAdapterNames() & @CRLF) Func _PcapPacketGetAdapterNames() If Not FileExists($packet_dll) Then SetError(1) $pStr = DllStructCreate("str") If @error <> 0 Then SetError(2) EndIf $success = DllCall($packet_dll, "bool", "PacketGetAdapterNames","ptr",DllStructGetPtr($pStr), "ulong", DllStructGetSize($pStr)) I