diff --git a/App.config b/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/GetKey.csproj b/GetKey.csproj new file mode 100644 index 0000000..826dfa4 --- /dev/null +++ b/GetKey.csproj @@ -0,0 +1,58 @@ + + + + + Debug + AnyCPU + {68F806AC-EB38-4F26-8789-2A6C55A6839F} + Exe + Properties + GetKey + GetKey + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..3b1da58 --- /dev/null +++ b/Program.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.NetworkInformation; +using System.Text; +using System.Threading.Tasks; + +namespace GetKey +{ + class Program + { + static void Main(string[] args) + { + string macAddresses = ""; + var s = NetworkInterface.GetAllNetworkInterfaces(); + foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces()) + { + + if (nic.NetworkInterfaceType == NetworkInterfaceType.Loopback) continue; + macAddresses += nic.GetPhysicalAddress().ToString(); + break; + } + + Console.WriteLine(macAddresses); + Console.Read(); + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f1e08ae --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("GetKey")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GetKey")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9ee5a923-7af0-4de8-9c75-25a779fd0336")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/bin/Debug/GetKey.exe.config b/bin/Debug/GetKey.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/bin/Debug/GetKey.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/bin/Debug/GetKey.vshost.exe.config b/bin/Debug/GetKey.vshost.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/bin/Debug/GetKey.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/bin/Debug/GetKey.vshost.exe.manifest b/bin/Debug/GetKey.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/bin/Debug/GetKey.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/obj/Debug/GetKey.csproj.FileListAbsolute.txt b/obj/Debug/GetKey.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4efcf77 --- /dev/null +++ b/obj/Debug/GetKey.csproj.FileListAbsolute.txt @@ -0,0 +1,5 @@ +E:\sachin\Inventory_X32bit_10-03-2016\GetKey\bin\Debug\GetKey.exe.config +E:\sachin\Inventory_X32bit_10-03-2016\GetKey\bin\Debug\GetKey.exe +E:\sachin\Inventory_X32bit_10-03-2016\GetKey\bin\Debug\GetKey.pdb +E:\sachin\Inventory_X32bit_10-03-2016\GetKey\obj\Debug\GetKey.exe +E:\sachin\Inventory_X32bit_10-03-2016\GetKey\obj\Debug\GetKey.pdb diff --git a/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29