Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactor names

  • Loading branch information...
commit 3addc6bee67ea00159f6061f3a8e454e8d5eaf40 1 parent fc62e4d
@rocketdawg rocketdawg authored
Showing with 14 additions and 16 deletions.
  1. +11 −12 AdapterInformation.cs
  2. +3 −4 IoctlNdis.cs
View
23 AdapterInformation.cs
@@ -20,7 +20,6 @@
#endregion Header
-
////////////////////////////////////////////////////////////////
using System.Text;
@@ -34,9 +33,9 @@ public class AdapterInformation
{
#region Fields
- private string _description;
- private string _serviceName;
- private string _title;
+ private string _itsDescription;
+ private string _itsServiceName;
+ private string _itsTitle;
#endregion Fields
@@ -63,9 +62,9 @@ public class AdapterInformation
/// <summary>
/// Gets or sets the service name for the network adapter.
/// </summary>
- public string ServiceName
+ public string ItsServiceName
{
- get { return _serviceName; }
+ get { return _itsServiceName; }
}
#endregion Properties
@@ -87,9 +86,9 @@ public AdapterInformation()
/// <param name="serviceName">service name of the network adapter</param>
public AdapterInformation(string description, string title, string serviceName)
{
- _description = description;
- _title = title;
- _serviceName = serviceName;
+ _itsDescription = description;
+ _itsTitle = title;
+ _itsServiceName = serviceName;
}
#endregion Constructors
@@ -103,9 +102,9 @@ public AdapterInformation(string description, string title, string serviceName)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("Description: " + _description + "\n");
- sb.Append("Service Name: " + _serviceName + "\n");
- sb.Append("Title: " + _title + "\n");
+ sb.Append("Description: " + _itsDescription + "\n");
+ sb.Append("Service Name: " + _itsServiceName + "\n");
+ sb.Append("Title: " + _itsTitle + "\n");
return ( sb.ToString());
}
View
7 IoctlNdis.cs
@@ -261,12 +261,12 @@ public class IoctlNdis
#region Properties
- public Guid InterfaceGuid
+ public String InterfaceDecription
{
get; set;
}
- public String InterfaceDecription
+ public Guid InterfaceGuid
{
get; set;
}
@@ -575,7 +575,6 @@ public bool Scan(NetworkInterface adapter)
return result;
}
*/
-
[DllImport("Kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)]
private static extern bool CloseHandle(
[In] IntPtr handle);
@@ -725,7 +724,7 @@ private IntPtr OpenDevice(string serviceName)
/// <returns></returns>
public AuthenticationMode QueryAuthenticationMode(AdapterInformation adapter) {
AuthenticationMode authMode = AuthenticationMode.Ndis80211AuthModeWpaNone;
- IntPtr deviceHandle = OpenDevice(adapter.ServiceName);
+ IntPtr deviceHandle = OpenDevice(adapter.ItsServiceName);
try {
IntPtr authModePtr = Marshal.AllocHGlobal(sizeof(int));
try {
Please sign in to comment.
Something went wrong with that request. Please try again.