Skip to content

Commit

Permalink
Final cleanup for beta release.
Browse files Browse the repository at this point in the history
  • Loading branch information
basildane committed Oct 22, 2016
1 parent 31e3f89 commit 3c123bc
Show file tree
Hide file tree
Showing 20 changed files with 1,777 additions and 1,110 deletions.
2 changes: 1 addition & 1 deletion AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Imports System.Runtime.InteropServices
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:

<Assembly: AssemblyVersion("2.11.11.10")>
<Assembly: AssemblyVersion("2.11.11.15")>

<Assembly: ComVisibleAttribute(False)>
<Assembly: NeutralResourcesLanguageAttribute("en-US")>
4 changes: 2 additions & 2 deletions Console/WakeOnLanC/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("2.11.11.0")>
<Assembly: AssemblyFileVersion("2.11.11.0")>
<Assembly: AssemblyVersion("2.11.11.15")>
<Assembly: AssemblyFileVersion("2.11.11.15")>

<Assembly: NeutralResourcesLanguageAttribute("en-US")>
12 changes: 3 additions & 9 deletions Machines/Machines.vb
Original file line number Diff line number Diff line change
Expand Up @@ -140,25 +140,19 @@ Imports System.Threading

For Each ipAddress As IPAddress In From IPA1 In Dns.GetHostAddresses(Netbios) Where IPA1.AddressFamily.ToString() = "InterNetwork"
Dim remoteIp As Integer
Dim remoteMac() As Byte = New Byte(6) {}
Dim remoteMac() As Byte = New Byte(5) {}
Dim dWord As Integer
Dim sendInterface As Integer
Dim len As Integer = 6

Try
sendInterface = 0
' sendInterface = ipAddress.Parse(Adapter).GetHashCode()
' TODO: check all interfaces

remoteIp = ipAddress.GetHashCode()
If remoteIp <> 0 Then
dWord = SendARP(remoteIp, sendInterface, remoteMac, len)
dWord = SendARP(remoteIp, 0, remoteMac, remoteMac.Length)
If dWord = 0 Or dWord = 67 Then
'
' we found a matching MAC, the host is officially ONLINE
' 67 = ERROR_BAD_NET_NAME: if host on another subnet, just ignore the error
'
If CompareMac(BitConverter.ToString(remoteMac, 0, len), MAC) = 0 Or dWord = 67 Then
If CompareMac(BitConverter.ToString(remoteMac, 0, remoteMac.Length), MAC) = 0 Or dWord = 67 Then
newStatus = StatusCodes.Online
newIpAddress = ipAddress.ToString()
Exit For
Expand Down
215 changes: 194 additions & 21 deletions Properties.Designer.vb

Large diffs are not rendered by default.

30 changes: 6 additions & 24 deletions Properties.ar-JO.resx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<value>خصائص العرض</value>
</data>
<data name="cbKeepAlive.Location" type="System.Drawing.Point, System.Drawing">
<value>307, 222</value>
<value>308, 140</value>
</data>
<data name="cbKeepAlive.Size" type="System.Drawing.Size, System.Drawing">
<value>77, 18</value>
Expand All @@ -199,27 +199,8 @@
<data name="tHostURI.Location" type="System.Drawing.Point, System.Drawing">
<value>97, 112</value>
</data>
<data name="ComboBoxAdapters.Location" type="System.Drawing.Point, System.Drawing">
<value>97, 166</value>
</data>
<data name="ComboBoxAdapters.Size" type="System.Drawing.Size, System.Drawing">
<value>320, 22</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="LabelInterfaces.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="LabelInterfaces.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 149</value>
</data>
<data name="LabelInterfaces.Size" type="System.Drawing.Size, System.Drawing">
<value>321, 14</value>
</data>
<data name="LabelInterfaces.Text" xml:space="preserve">
<value>واجهة</value>
</data>
<data name="lbUDP.Location" type="System.Drawing.Point, System.Drawing">
<value>232, 223</value>
<value>233, 141</value>
</data>
<data name="lbUDP.Size" type="System.Drawing.Size, System.Drawing">
<value>47, 14</value>
Expand All @@ -228,7 +209,7 @@
<value>منفذ UDP</value>
</data>
<data name="lbTTL.Location" type="System.Drawing.Point, System.Drawing">
<value>233, 251</value>
<value>234, 169</value>
</data>
<data name="lbTTL.Size" type="System.Drawing.Size, System.Drawing">
<value>30, 14</value>
Expand Down Expand Up @@ -294,13 +275,13 @@
<value>TTL غير صالحة</value>
</data>
<data name="TTL.Location" type="System.Drawing.Point, System.Drawing">
<value>97, 248</value>
<value>98, 166</value>
</data>
<data name="UDPPort.ErrorMessage" xml:space="preserve">
<value>UDP غير صالح</value>
</data>
<data name="UDPPort.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 220</value>
<value>97, 138</value>
</data>
<data name="Broadcast.ErrorMessage" xml:space="preserve">
<value>عنوان IP غير صالح. استخدام ###.###.###.###</value>
Expand Down Expand Up @@ -500,6 +481,7 @@
<data name="TabControl1.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 13</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="TabControl1.RightToLeftLayout" type="System.Boolean, mscorlib">
<value>True</value>
</data>
Expand Down
8 changes: 1 addition & 7 deletions Properties.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,8 @@
<data name="tHostURI.ErrorMessage" xml:space="preserve">
<value>Nombre del equipo no válido</value>
</data>
<data name="LabelInterfaces.Size" type="System.Drawing.Size, System.Drawing">
<value>42, 13</value>
</data>
<data name="LabelInterfaces.Text" xml:space="preserve">
<value>Interfaz</value>
</data>
<data name="lbUDP.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 207</value>
<value>16, 133</value>
</data>
<data name="lbUDP.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 13</value>
Expand Down
4 changes: 2 additions & 2 deletions Properties.fi.resx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
<value>Virheellinen tietokoneen nimi</value>
</data>
<data name="lbUDP.Location" type="System.Drawing.Point, System.Drawing">
<value>34, 207</value>
<value>35, 133</value>
</data>
<data name="lbUDP.Size" type="System.Drawing.Size, System.Drawing">
<value>56, 13</value>
Expand All @@ -158,7 +158,7 @@
<value>UDP-portti</value>
</data>
<data name="lbTTL.Location" type="System.Drawing.Point, System.Drawing">
<value>5, 230</value>
<value>5, 159</value>
</data>
<data name="lbTTL.Size" type="System.Drawing.Size, System.Drawing">
<value>86, 13</value>
Expand Down
7 changes: 2 additions & 5 deletions Properties.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,11 @@
<data name="tHostURI.ErrorMessage" xml:space="preserve">
<value>Nom d'ordinateur invalide</value>
</data>
<data name="lbUDP.Location" type="System.Drawing.Point, System.Drawing">
<value>39, 207</value>
</data>
<data name="lbUDP.Text" xml:space="preserve">
<value>Port UDP</value>
</data>
<data name="lbTTL.Location" type="System.Drawing.Point, System.Drawing">
<value>63, 230</value>
<value>63, 159</value>
</data>
<data name="lbMAC.Text" xml:space="preserve">
<value>Adresse MAC</value>
Expand Down Expand Up @@ -213,7 +210,7 @@
<value>TTL invalide</value>
</data>
<data name="TTL.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 230</value>
<value>96, 156</value>
</data>
<data name="UDPPort.ErrorMessage" xml:space="preserve">
<value>UDP invalide</value>
Expand Down
2 changes: 1 addition & 1 deletion Properties.nl.resx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<value>Ongeldige computernaam</value>
</data>
<data name="lbUDP.Location" type="System.Drawing.Point, System.Drawing">
<value>33, 207</value>
<value>34, 133</value>
</data>
<data name="lbUDP.Size" type="System.Drawing.Size, System.Drawing">
<value>57, 13</value>
Expand Down
Loading

0 comments on commit 3c123bc

Please sign in to comment.