├── WindowsFormsApp2
├── obj
│ ├── Debug
│ │ ├── WindowsFormsApp2.csproj.CoreCompileInputs.cache
│ │ ├── WindowsFormsApp2.exe
│ │ ├── WindowsFormsApp2.pdb
│ │ ├── WindowsFormsApp2.Form1.resources
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── WindowsFormsApp2.csproj.GenerateResource.cache
│ │ ├── WindowsFormsApp2.csprojAssemblyReference.cache
│ │ ├── WindowsFormsApp2.Properties.Resources.resources
│ │ ├── .NETFramework,Version=v4.7.2.AssemblyAttributes.cs
│ │ ├── WindowsFormsApp2.csproj.FileListAbsolute.txt
│ │ ├── WindowsFormsApp2.application
│ │ └── WindowsFormsApp2.exe.manifest
│ └── Release
│ │ ├── WindowsFormsApp2.csproj.CoreCompileInputs.cache
│ │ ├── GhostNicehash.exe
│ │ ├── GhostNicehash.pdb
│ │ ├── WindowsFormsApp2.Form1.resources
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── TempPE
│ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── WindowsFormsApp2.csproj.GenerateResource.cache
│ │ ├── WindowsFormsApp2.csprojAssemblyReference.cache
│ │ ├── WindowsFormsApp2.Properties.Resources.resources
│ │ ├── .NETFramework,Version=v4.7.2.AssemblyAttributes.cs
│ │ ├── WindowsFormsApp2.csproj.FileListAbsolute.txt
│ │ ├── GhostNicehash.application
│ │ └── GhostNicehash.exe.manifest
├── Resources
│ ├── mining.png
│ ├── start.png
│ └── Spinner-1s-200px.gif
├── bin
│ ├── Debug
│ │ ├── libcurl.dll
│ │ ├── claymore.exe
│ │ ├── msvcr110.dll
│ │ ├── cudart64_80.dll
│ │ ├── 1599574973_log.txt
│ │ ├── 1599575047_log.txt
│ │ ├── 1599576080_log.txt
│ │ ├── 1599576325_log.txt
│ │ ├── 1599576419_log.txt
│ │ ├── WindowsFormsApp2.exe
│ │ ├── WindowsFormsApp2.pdb
│ │ ├── app.publish
│ │ │ └── WindowsFormsApp2.exe
│ │ ├── WindowsFormsApp2.exe.config
│ │ ├── WindowsFormsApp2.application
│ │ └── WindowsFormsApp2.exe.manifest
│ └── Release
│ │ ├── libcurl.dll
│ │ ├── claymore.exe
│ │ ├── msvcr110.dll
│ │ ├── cudart64_80.dll
│ │ ├── GhostNicehash.exe
│ │ ├── GhostNicehash.pdb
│ │ ├── app.publish
│ │ └── GhostNicehash.exe
│ │ ├── GhostNicehash.exe.config
│ │ ├── GhostNicehash.application
│ │ └── GhostNicehash.exe.manifest
├── logo_small_dark (1).ico
├── WindowsFormsApp2_TemporaryKey.pfx
├── App.config
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Program.cs
├── WindowsFormsApp2.csproj.user
├── WindowsFormsApp2.csproj
├── Form1.cs
├── Form1.Designer.cs
└── Keyboard.cs
├── WindowsFormsApp2.sln
├── README.md
└── WindowsFormsApp2.application
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 8069502011d0681850e57a53d5a1673222f430a6
2 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/WindowsFormsApp2.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 313c545e0421cc3e5302ff3fa4aa06570fd09d44
2 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Resources/mining.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/Resources/mining.png
--------------------------------------------------------------------------------
/WindowsFormsApp2/Resources/start.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/Resources/start.png
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/libcurl.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/libcurl.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/claymore.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/claymore.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/msvcr110.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/msvcr110.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/libcurl.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/libcurl.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/logo_small_dark (1).ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/logo_small_dark (1).ico
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/cudart64_80.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/cudart64_80.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/claymore.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/claymore.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/msvcr110.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/msvcr110.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/1599574973_log.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/1599574973_log.txt
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/1599575047_log.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/1599575047_log.txt
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/1599576080_log.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/1599576080_log.txt
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/1599576325_log.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/1599576325_log.txt
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/1599576419_log.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/1599576419_log.txt
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/cudart64_80.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/cudart64_80.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/Resources/Spinner-1s-200px.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/Resources/Spinner-1s-200px.gif
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.pdb
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/GhostNicehash.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/GhostNicehash.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/GhostNicehash.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/GhostNicehash.pdb
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.pdb
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/GhostNicehash.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/GhostNicehash.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/GhostNicehash.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/GhostNicehash.pdb
--------------------------------------------------------------------------------
/WindowsFormsApp2/WindowsFormsApp2_TemporaryKey.pfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/WindowsFormsApp2_TemporaryKey.pfx
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/app.publish/GhostNicehash.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Release/app.publish/GhostNicehash.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/app.publish/WindowsFormsApp2.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/bin/Debug/app.publish/WindowsFormsApp2.exe
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.Form1.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.Form1.resources
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/WindowsFormsApp2.Form1.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/WindowsFormsApp2.Form1.resources
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.csproj.GenerateResource.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.csproj.GenerateResource.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.Properties.Resources.resources
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/WindowsFormsApp2.csproj.GenerateResource.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/WindowsFormsApp2.csproj.GenerateResource.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/WindowsFormsApp2.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/WindowsFormsApp2.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/WindowsFormsApp2.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/afonsosousah/ghostnicehash/HEAD/WindowsFormsApp2/obj/Release/WindowsFormsApp2.Properties.Resources.resources
--------------------------------------------------------------------------------
/WindowsFormsApp2/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/GhostNicehash.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
5 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs:
--------------------------------------------------------------------------------
1 | //
2 | using System;
3 | using System.Reflection;
4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
5 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using System.Windows.Forms;
6 |
7 | namespace WindowsFormsApp2
8 | {
9 | static class Program
10 | {
11 | ///
12 | /// The main entry point for the application.
13 | ///
14 | [STAThread]
15 | static void Main()
16 | {
17 | Application.EnableVisualStyles();
18 | Application.SetCompatibleTextRenderingDefault(false);
19 | Application.Run(new Form1());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/WindowsFormsApp2.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | C:\Users\Jogos\source\repos\WindowsFormsApp2\|publish\
5 | https://filetransfer.io/data-package/pq51jNsj/download/|https://filetransfer.io/data-package/pq51jNsj/
6 |
7 |
8 |
9 |
10 | en-US
11 | false
12 |
13 |
14 | false
15 |
16 |
--------------------------------------------------------------------------------
/WindowsFormsApp2.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30413.136
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp2", "WindowsFormsApp2\WindowsFormsApp2.csproj", "{679804C0-77EC-4C29-82D2-41F506FEAE7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {679804C0-77EC-4C29-82D2-41F506FEAE7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {679804C0-77EC-4C29-82D2-41F506FEAE7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {679804C0-77EC-4C29-82D2-41F506FEAE7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {679804C0-77EC-4C29-82D2-41F506FEAE7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {7A333549-0759-42A5-A038-A18C86A5AF7F}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WindowsFormsApp2.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csprojAssemblyReference.cache
2 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Form1.resources
3 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Properties.Resources.resources
4 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.GenerateResource.cache
5 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.CoreCompileInputs.cache
6 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe.config
7 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe
8 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.pdb
9 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.exe
10 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.pdb
11 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe.manifest
12 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.application
13 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.exe.manifest
14 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.application
15 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/WindowsFormsApp2.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\WindowsFormsApp2.Form1.resources
2 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\WindowsFormsApp2.Properties.Resources.resources
3 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\WindowsFormsApp2.csproj.GenerateResource.cache
4 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\WindowsFormsApp2.csproj.CoreCompileInputs.cache
5 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\WindowsFormsApp2.csprojAssemblyReference.cache
6 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Release\GhostNicehash.exe.config
7 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Release\GhostNicehash.exe.manifest
8 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Release\GhostNicehash.application
9 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Release\GhostNicehash.exe
10 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\bin\Release\GhostNicehash.pdb
11 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\GhostNicehash.exe.manifest
12 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\GhostNicehash.application
13 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\GhostNicehash.exe
14 | C:\Users\Jogos\source\repos\WindowsFormsApp2\WindowsFormsApp2\obj\Release\GhostNicehash.pdb
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 | #
3 | # 
4 |
5 |
6 | ### Mining on restricted environments made easy!
7 | Written in C#, this GUI Miner is using Claymore's Dual Ethereum Miner as it's miner. Easy to use and supports mining to a NiceHash wallet or a normal Ethereum wallet.
8 | #
9 | ### Features
10 | - Easy to use
11 | - Uses the most efficient ethereum miner
12 | - Supports mining to NiceHash wallet and normal wallet
13 | - Launches miner hidden inside main process, making it undetectable in some restricted environments (such as remote VM's, or pc's without admin access)
14 | - Dark mode
15 | #
16 | ### Downloads
17 |
18 | | Version | Download |
19 | | ------ | ------ |
20 | | 1.2 | [Download][1.2] |
21 | | 1.1 | [Download][1.1] |
22 | | 1.0| [Download][1.0] |
23 | #
24 | ### Preview
25 | 
26 | 
27 | 
28 | ### Changelog
29 |
30 | - Added mining directly to ethereum wallet
31 | - Bug fixes
32 |
33 | made by afonsosousah
34 |
35 | [](https://www.afonsosousah.xyz)
36 |
37 | [1.2]:
38 | [1.1]:
39 | [1.0]:
40 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("GhostNicehash")]
9 | [assembly: AssemblyDescription("Nicehash miner, which works undercover")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("afonsosousah")]
12 | [assembly: AssemblyProduct("GhostNicehash")]
13 | [assembly: AssemblyCopyright("Copyright afonsosousah © 2020")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("679804c0-77ec-4c29-82d2-41f506feae7b")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/GhostNicehash.application:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | MeUQGLjEqn7i0mTfMUDiqLCzkdPRue4Jb1hxBsGiDV4=
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/GhostNicehash.application:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | MeUQGLjEqn7i0mTfMUDiqLCzkdPRue4Jb1hxBsGiDV4=
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.application:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | h7XmTTQPfQAbBBRMCrU19QizE+aKZ7ijrUlNMxPcSPY=
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.application:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | h7XmTTQPfQAbBBRMCrU19QizE+aKZ7ijrUlNMxPcSPY=
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Debug/WindowsFormsApp2.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | sWL4Ks2yme2ztISraRGavpYcAovixK7+UKV7413HfWc=
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=
63 |
64 |
65 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Debug/WindowsFormsApp2.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | sWL4Ks2yme2ztISraRGavpYcAovixK7+UKV7413HfWc=
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=
63 |
64 |
65 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/bin/Release/GhostNicehash.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | MJg8cQL4YIivADsq0/vimacR8PTJeNcBIx+PWo4u+WQ=
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | uJZEe0YoActlazzBmR7VottL4n/72/0rfT5p4Yidwhk=
73 |
74 |
75 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/obj/Release/GhostNicehash.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | MJg8cQL4YIivADsq0/vimacR8PTJeNcBIx+PWo4u+WQ=
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | uJZEe0YoActlazzBmR7VottL4n/72/0rfT5p4Yidwhk=
73 |
74 |
75 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WindowsFormsApp2.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApp2.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Looks up a localized resource of type System.Drawing.Bitmap.
65 | ///
66 | internal static System.Drawing.Bitmap mining {
67 | get {
68 | object obj = ResourceManager.GetObject("mining", resourceCulture);
69 | return ((System.Drawing.Bitmap)(obj));
70 | }
71 | }
72 |
73 | ///
74 | /// Looks up a localized resource of type System.Drawing.Bitmap.
75 | ///
76 | internal static System.Drawing.Bitmap Spinner_1s_200px {
77 | get {
78 | object obj = ResourceManager.GetObject("Spinner_1s_200px", resourceCulture);
79 | return ((System.Drawing.Bitmap)(obj));
80 | }
81 | }
82 |
83 | ///
84 | /// Looks up a localized resource of type System.Drawing.Bitmap.
85 | ///
86 | internal static System.Drawing.Bitmap start {
87 | get {
88 | object obj = ResourceManager.GetObject("start", resourceCulture);
89 | return ((System.Drawing.Bitmap)(obj));
90 | }
91 | }
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/WindowsFormsApp2.application:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | yoyWl/vp7xDEsC6s3djSdyUNtDPwk5ej/h/pqynRr9Y=
18 |
19 |
20 |
21 | D/dK851xSx5ptM/RBTDZawDDCK2G5InMh7/anzBemD4=ef4bA7wUTrn5c4CR4sjtomKN/gC7u9xGPZpG5te7y3yVyqiMbeqt2pYHSDqPSUm9p+pJEYCzay9sKlC/s+6gGmHiJlxw1eC4UpZZd8L+u3pkIo6ns3WcBjfn278WwjbiulgShYldrVXZ/mwJWrwtDAa8w+DuxbAmP6rjBKHHIm0=w8xHeVG85SkdpP0GdViVtpTExwB7Ra2reaoG8k0joLmUlSI3aHb++GUM53mrdOZLR/g6GOuzyI/0BgerWdZPe051yCiZ+GnGQ30GiL+VWpexQtZdBqrvpCeaiWutdM7e7TCRzYoY8mkA5AUAQNZxBml+YnQNHJ4ROc1ZaZ34vOU=AQABCN=GAMINGPC\JogossTesrsr7uPy9fgfqjBGMrz7KxB0WyGHgmcisciz2zws=YGLpOgYL9fwyDg9xaHMI1cjKwllYCcJC6AiyB+PKBN8rf/Pi2ResWmKXZGmCWx6wHf+BVTx7CAbRaf+04CkMjBZgyUjdtIu/Lx3iBfasKn/h97ffwqr8WOrkZp4RPF2Vi7RSJriqu6dhYPCc2Jss29ZtLkySTaV+humZOHyuMAg=w8xHeVG85SkdpP0GdViVtpTExwB7Ra2reaoG8k0joLmUlSI3aHb++GUM53mrdOZLR/g6GOuzyI/0BgerWdZPe051yCiZ+GnGQ30GiL+VWpexQtZdBqrvpCeaiWutdM7e7TCRzYoY8mkA5AUAQNZxBml+YnQNHJ4ROc1ZaZ34vOU=AQABMIIB0TCCATqgAwIBAgIQbjllLBpgAYRAzWq1NUStgzANBgkqhkiG9w0BAQsFADAnMSUwIwYDVQQDHhwARwBBAE0ASQBOAEcAUABDAFwASgBvAGcAbwBzMB4XDTIwMDkxMDIxMjIwNFoXDTIxMDkxMTAzMjIwNFowJzElMCMGA1UEAx4cAEcAQQBNAEkATgBHAFAAQwBcAEoAbwBnAG8AczCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAw8xHeVG85SkdpP0GdViVtpTExwB7Ra2reaoG8k0joLmUlSI3aHb++GUM53mrdOZLR/g6GOuzyI/0BgerWdZPe051yCiZ+GnGQ30GiL+VWpexQtZdBqrvpCeaiWutdM7e7TCRzYoY8mkA5AUAQNZxBml+YnQNHJ4ROc1ZaZ34vOUCAwEAATANBgkqhkiG9w0BAQsFAAOBgQCiiKOYWlQVBOnzVZSvH+gGBqO9GV9sHa05CcX6sNOUsajHGCp5uPHibmcuA3Q6y/SOm0qxRUfOgxw33WZkPMWBJN5nbWnMZHvcIWO6GZQdJ5Su+GKgDinVvcjEu1IcIel3esdDrrE2i2tcD/4WjCPZUQqvxBkdrhRR0XfQ/XgkOg==
--------------------------------------------------------------------------------
/WindowsFormsApp2/WindowsFormsApp2.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {679804C0-77EC-4C29-82D2-41F506FEAE7B}
8 | WinExe
9 | WindowsFormsApp2
10 | GhostNicehash
11 | v4.7.2
12 | 512
13 | true
14 | true
15 | false
16 | C:\Users\Jogos\source\repos\WindowsFormsApp2\
17 | true
18 | Disk
19 | false
20 | Foreground
21 | 7
22 | Days
23 | false
24 | false
25 | true
26 | publish.htm
27 | true
28 | 4
29 | 1.0.0.%2a
30 | false
31 | true
32 | true
33 |
34 |
35 | AnyCPU
36 | true
37 | full
38 | false
39 | bin\Debug\
40 | DEBUG;TRACE
41 | prompt
42 | 4
43 |
44 |
45 | AnyCPU
46 | pdbonly
47 | true
48 | bin\Release\
49 | TRACE
50 | prompt
51 | 4
52 |
53 |
54 | 3FE39260B1151FD65BF5679501840C7CDB8F3DF8
55 |
56 |
57 | WindowsFormsApp2_TemporaryKey.pfx
58 |
59 |
60 | true
61 |
62 |
63 | true
64 |
65 |
66 | logo_small_dark %281%29.ico
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 | Form
86 |
87 |
88 | Form1.cs
89 |
90 |
91 |
92 |
93 | Form1.cs
94 |
95 |
96 | ResXFileCodeGenerator
97 | Resources.Designer.cs
98 | Designer
99 |
100 |
101 | True
102 | Resources.resx
103 | True
104 |
105 |
106 | SettingsSingleFileGenerator
107 | Settings.Designer.cs
108 |
109 |
110 | True
111 | Settings.settings
112 | True
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | False
122 | Microsoft .NET Framework 4.7.2 %28x86 and x64%29
123 | true
124 |
125 |
126 | False
127 | .NET Framework 3.5 SP1
128 | false
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 |
122 | ..\Resources\mining.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
123 |
124 |
125 | ..\Resources\Spinner-1s-200px.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
126 |
127 |
128 | ..\Resources\start.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
129 |
130 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Form1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Threading.Tasks;
9 | using System.Windows.Forms;
10 | using System.Net;
11 | using System.Net.Sockets;
12 | using System.Diagnostics;
13 | using System.IO;
14 | using System.Management;
15 | using System.Threading;
16 | using System.Drawing.Configuration;
17 |
18 | namespace WindowsFormsApp2
19 | {
20 | public partial class Form1 : Form
21 | {
22 | [System.Runtime.InteropServices.DllImport("user32.dll")]
23 | static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData,
24 | UIntPtr dwExtraInfo);
25 |
26 | public Form1()
27 | {
28 |
29 | InitializeComponent();
30 |
31 | //Download Claymore v15
32 | if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "claymore.exe") == false)
33 | {
34 | WebClient Client = new WebClient();
35 | Client.DownloadFile("https://cdn.discordapp.com/attachments/754055553470431346/758458942824120350/EthDcrMiner64.exe", AppDomain.CurrentDomain.BaseDirectory + "claymore.exe");
36 | Client.DownloadFile("https://cdn.discordapp.com/attachments/754055553470431346/758458933848834058/msvcr110.dll", AppDomain.CurrentDomain.BaseDirectory + "msvcr110.dll");
37 | Client.DownloadFile("https://cdn.discordapp.com/attachments/754055553470431346/758458940039102484/libcurl.dll", AppDomain.CurrentDomain.BaseDirectory + "libcurl.dll");
38 | Client.DownloadFile("https://cdn.discordapp.com/attachments/754055553470431346/758458937124192266/cudart64_80.dll", AppDomain.CurrentDomain.BaseDirectory + "cudart64_80.dll");
39 | }
40 |
41 | label4.ForeColor = Color.Red;
42 | label4.Text = "Closed";
43 |
44 | this.FormClosed += Form1_FormClosed;
45 |
46 | ManagementObjectSearcher objvide = new ManagementObjectSearcher("select * from Win32_VideoController");
47 |
48 | foreach (ManagementObject obj in objvide.Get())
49 | {
50 | label5.Text = ("GPU: " + obj["Name"]);
51 | }
52 |
53 | }
54 |
55 | private void Form1_FormClosed(object sender, FormClosedEventArgs e)
56 | {
57 | if (Process.GetProcessesByName("claymore").Length > 0 && Process.GetProcessesByName("claymore") != null)
58 | {
59 | Process proc = Process.GetProcessesByName("claymore")[0];
60 | proc.Kill();
61 | }
62 |
63 | }
64 |
65 | private void label2_Click(object sender, EventArgs e)
66 | {
67 |
68 | }
69 |
70 | [System.Runtime.InteropServices.DllImport("user32.dll")]
71 | static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
72 |
73 | private void button1_Click(object sender, EventArgs e)
74 | {
75 | if(label4.Text=="Mining")
76 | {
77 | if (Process.GetProcessesByName("claymore").Length > 0 && Process.GetProcessesByName("claymore") != null)
78 | {
79 | Process proc = Process.GetProcessesByName("claymore")[0];
80 | proc.Kill();
81 | button1.BackgroundImage = WindowsFormsApp2.Properties.Resources.Spinner_1s_200px;
82 | }
83 | }
84 | else
85 | {
86 |
87 | if (label15.Text == "NiceHash Mode")
88 | {
89 | if (textBox1.TextLength == 0)
90 | {
91 | MessageBox.Show("Please add wallet address! (go to options)");
92 | }
93 | else
94 | {
95 | //NiceHash mode
96 | Process process = new Process();
97 | ProcessStartInfo startInfo = new ProcessStartInfo();
98 | startInfo.WindowStyle = ProcessWindowStyle.Hidden;
99 | startInfo.CreateNoWindow = true;
100 | startInfo.FileName = AppDomain.CurrentDomain.BaseDirectory + "claymore.exe";
101 | startInfo.Arguments = "-epool daggerhashimoto.eu.nicehash.com:3353 -ewal " + textBox1.Text.Trim()+ ".Ghostnicehash" + " -li " + trackBar1.Value + " -epsw x -dbg -1 -retrydelay 1 -ftime 55 -tt 79 -ttli 77 -tstop 89 -tstart 85 -fanmin 30 -r 0 -esm 3 -erate 1 -allcoins 1 -allpools 1";
102 | process.StartInfo = startInfo;
103 | process.Start();
104 | SetParent(process.MainWindowHandle, this.Handle);
105 | }
106 |
107 |
108 | }
109 | else if(label15.Text == "Direct Mining Mode")
110 | {
111 | if (textBox2.TextLength == 0)
112 | {
113 | MessageBox.Show("Please add wallet address! (go to options)");
114 | }
115 | if (textBox3.TextLength == 0)
116 | {
117 | MessageBox.Show("Please add pool address! (go to options)");
118 | }
119 | else
120 | {
121 | //Direct mining mode
122 | Process process = new Process();
123 | ProcessStartInfo startInfo = new ProcessStartInfo();
124 | startInfo.WindowStyle = ProcessWindowStyle.Hidden;
125 | startInfo.CreateNoWindow = true;
126 | startInfo.FileName = AppDomain.CurrentDomain.BaseDirectory + "claymore.exe";
127 | startInfo.Arguments = "-epool " + textBox3.Text.Trim() + " -ewal " + textBox2.Text.Trim() + " -eworker afhMiner -li " + trackBar1.Value + " -epsw x -dbg -1 -retrydelay 1 -ftime 55 -tt 79 -ttli 77 -tstop 89 -tstart 85 -fanmin 30 -r 0 -esm 3 -erate 1 -allcoins 1 -allpools 1";
128 | process.StartInfo = startInfo;
129 | process.Start();
130 | SetParent(process.MainWindowHandle, this.Handle);
131 | }
132 |
133 | }
134 |
135 | }
136 |
137 | }
138 |
139 | private void timer1_Tick(object sender, EventArgs e)
140 | {
141 | if (Process.GetProcessesByName("claymore").Length > 0 && Process.GetProcessesByName("claymore") != null)
142 | {
143 |
144 | using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
145 | {
146 | try
147 | {
148 | //reading the hashrate from localhost
149 | var receiveBytes = new byte[256];
150 | socket.Connect("localhost", 3333);
151 | socket.Send(Encoding.ASCII.GetBytes("{\"id\":0,\"jsonrpc\":\"2.0\",\"method\":\"miner_getstat1\"}"));
152 | socket.Receive(receiveBytes, receiveBytes.Length, SocketFlags.None);
153 | var responseJson = Encoding.ASCII.GetString(receiveBytes);
154 | if (responseJson.Split(',')[4].Trim(new char[] { ' ', '"' }) != "" && responseJson.Split(',')[4].Trim(new char[] { ' ', '"' }) != " ")
155 | {
156 | int hashrate = int.Parse(responseJson.Split(',')[5].Trim(new char[] { ' ', '"' }));
157 | label3.Text = String.Format("{0,0:N3}", hashrate / 1000.0) + "MH/s";
158 | }
159 | if (responseJson.Split(',')[5].Trim(new char[] { ' ', '"' }) != "" && responseJson.Split(',')[5].Trim(new char[] { ' ', '"' }) != " ")
160 | {
161 | int hashrate = int.Parse(responseJson.Split(',')[5].Trim(new char[] { ' ', '"' }));
162 | label3.Text = String.Format("{0,0:N3}", hashrate / 1000.0) + "MH/s";
163 | }
164 |
165 | }
166 | catch (Exception)
167 | {
168 |
169 | }
170 |
171 |
172 | timer2.Enabled = true;
173 | label4.ForeColor = Color.Green;
174 | label4.Text = "Mining";
175 |
176 | button1.BackgroundImage = WindowsFormsApp2.Properties.Resources.mining;
177 | }
178 |
179 | }
180 | else
181 | {
182 | timer2.Enabled = false;
183 | label4.ForeColor = Color.Red;
184 | label4.Text = "Closed";
185 | button1.BackgroundImage = WindowsFormsApp2.Properties.Resources.start;
186 | }
187 | }
188 |
189 | private void button3_Click(object sender, EventArgs e)
190 | {
191 | textBox1.Text = "3F1zYbiCB5JKR21GiFgFwzxZoyJzTsk3U2";
192 | }
193 |
194 | private void Form1_Load(object sender, EventArgs e)
195 | {
196 | label15.Text = "NiceHash Mode";
197 | label15.ForeColor = Color.FromArgb(251, 195, 66);
198 | }
199 |
200 | private void label8_Click(object sender, EventArgs e)
201 | {
202 |
203 | }
204 |
205 | private void label9_Click(object sender, EventArgs e)
206 | {
207 |
208 | }
209 |
210 | private void button2_Click(object sender, EventArgs e)
211 | {
212 | if (panel2.Visible == true)
213 | {
214 | label15.Text = "NiceHash Mode";
215 | label15.ForeColor = Color.FromArgb(251, 195, 66);
216 | }
217 | else if (panel3.Visible == true)
218 | {
219 | label15.Text = "Direct Mining Mode";
220 | label15.ForeColor = Color.FromArgb(0, 192, 192);
221 | }
222 |
223 | if (panel1.Visible==false)
224 | {
225 | panel1.Visible = true;
226 | }
227 | else if(panel1.Visible==true)
228 | {
229 | panel1.Visible = false;
230 | }
231 |
232 | }
233 |
234 | private void label1_Click(object sender, EventArgs e)
235 | {
236 |
237 | }
238 |
239 | private void panel1_Paint(object sender, PaintEventArgs e)
240 | {
241 |
242 | }
243 |
244 | private void label9_Click_1(object sender, EventArgs e)
245 | {
246 |
247 | }
248 |
249 | private void button4_Click(object sender, EventArgs e)
250 | {
251 | if(this.BackColor==Color.FromArgb(226, 226, 226))
252 | {
253 | this.BackColor = Color.FromArgb(58, 57, 57);
254 | button4.Text = "Light Mode";
255 | }
256 | else if(this.BackColor == Color.FromArgb(58, 57, 57))
257 | {
258 | this.BackColor = Color.FromArgb(226, 226, 226);
259 | button4.Text = "Dark Mode";
260 | }
261 | }
262 |
263 | private void label12_Click(object sender, EventArgs e)
264 | {
265 |
266 | }
267 |
268 | private void label3_Click(object sender, EventArgs e)
269 | {
270 |
271 | }
272 |
273 | private void label10_Click(object sender, EventArgs e)
274 | {
275 |
276 | }
277 |
278 | private void label6_Click(object sender, EventArgs e)
279 | {
280 |
281 | }
282 |
283 | private void label16_Click(object sender, EventArgs e)
284 | {
285 |
286 | }
287 |
288 | private void label13_Click(object sender, EventArgs e)
289 | {
290 |
291 | }
292 |
293 | private void button5_Click(object sender, EventArgs e)
294 | {
295 | if (panel3.Visible == true)
296 | {
297 | label15.Text = "NiceHash Mode";
298 | label15.ForeColor = Color.FromArgb(251, 195, 66);
299 | }
300 | else if (panel2.Visible == true)
301 | {
302 | label15.Text = "Direct Mining Mode";
303 | label15.ForeColor = Color.FromArgb(0, 192, 192);
304 | }
305 |
306 | if (panel2.Visible == true)
307 | {
308 | panel3.Visible = true;
309 | panel2.Visible = false;
310 | }
311 | else if (panel2.Visible == false)
312 | {
313 | panel3.Visible = false;
314 | panel2.Visible = true;
315 | }
316 | }
317 |
318 | private void button7_Click(object sender, EventArgs e)
319 | {
320 | textBox3.Text = "eu1.ethermine.org:4444";
321 | }
322 |
323 | private void button6_Click(object sender, EventArgs e)
324 | {
325 | textBox2.Text = "0x94b57107c9163c507355C3e7755d3eb6f4306a89";
326 | }
327 |
328 | private void label5_Click(object sender, EventArgs e)
329 | {
330 |
331 | }
332 |
333 | public int showMsgBox = 0;
334 |
335 | private void timer2_Tick(object sender, EventArgs e)
336 | {
337 | try
338 | {
339 | //getting current BTC price
340 | string btcJson;
341 |
342 | using (var web = new System.Net.WebClient())
343 | {
344 | var url = @"https://api.coindesk.com/v1/bpi/currentprice.json";
345 | btcJson = web.DownloadString(url);
346 | }
347 |
348 | string intPrice = btcJson.Split(',')[9].Trim(new char[] { ' ', '"', ':', 'r', 'a', 't', 'e' }) + btcJson.Split(',')[10].Trim(new char[] { ' ', '"', ':', 'r', 'a', 't', 'e' });
349 |
350 | decimal currentPrice = Decimal.Parse(intPrice);
351 |
352 |
353 | //getting current profitability from nicehash
354 | WebClient Client = new WebClient();
355 | var receiveBytesProfit = new byte[256];
356 | Client.DownloadFile("https://api2.nicehash.com/main/api/v2/mining/external/" + textBox1.Text.Trim() + "/rigs/stats/unpaid/", AppDomain.CurrentDomain.BaseDirectory + "nicehash.json");
357 | var json = Encoding.ASCII.GetString(receiveBytesProfit);
358 |
359 | //show current profitability
360 | string profitability = File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "nicehash.json").Truncate(200);
361 |
362 | decimal dec = Decimal.Parse(profitability.Split(',')[10], System.Globalization.NumberStyles.Any);
363 | decimal hashrate = Decimal.Parse(label3.Text.Replace("MH/s", ""), System.Globalization.NumberStyles.Any);
364 |
365 | label1.Text = (dec * currentPrice).ToString().Truncate(4) + "USD/day";
366 |
367 | File.Delete(AppDomain.CurrentDomain.BaseDirectory + "nicehash.json");
368 | }
369 | catch(Exception)
370 | {
371 | showMsgBox = showMsgBox + 1;
372 | if(showMsgBox == 1)
373 | {
374 | MessageBox.Show("Profitability is not working! Be sure that you are using NiceHash address.");
375 | }
376 | }
377 |
378 |
379 | }
380 | }
381 |
382 | public static class StringExt
383 | {
384 | public static string Truncate(this string value, int maxLength)
385 | {
386 | if (string.IsNullOrEmpty(value)) return value;
387 | return value.Length <= maxLength ? value : value.Substring(0, maxLength);
388 | }
389 | }
390 | }
391 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace WindowsFormsApp2
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.components = new System.ComponentModel.Container();
32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
33 | this.button1 = new System.Windows.Forms.Button();
34 | this.textBox1 = new System.Windows.Forms.TextBox();
35 | this.label2 = new System.Windows.Forms.Label();
36 | this.label3 = new System.Windows.Forms.Label();
37 | this.timer1 = new System.Windows.Forms.Timer(this.components);
38 | this.label4 = new System.Windows.Forms.Label();
39 | this.label5 = new System.Windows.Forms.Label();
40 | this.button3 = new System.Windows.Forms.Button();
41 | this.trackBar1 = new System.Windows.Forms.TrackBar();
42 | this.label6 = new System.Windows.Forms.Label();
43 | this.label7 = new System.Windows.Forms.Label();
44 | this.label8 = new System.Windows.Forms.Label();
45 | this.panel1 = new System.Windows.Forms.Panel();
46 | this.panel3 = new System.Windows.Forms.Panel();
47 | this.button7 = new System.Windows.Forms.Button();
48 | this.textBox3 = new System.Windows.Forms.TextBox();
49 | this.label18 = new System.Windows.Forms.Label();
50 | this.textBox2 = new System.Windows.Forms.TextBox();
51 | this.label13 = new System.Windows.Forms.Label();
52 | this.label14 = new System.Windows.Forms.Label();
53 | this.button6 = new System.Windows.Forms.Button();
54 | this.label16 = new System.Windows.Forms.Label();
55 | this.panel2 = new System.Windows.Forms.Panel();
56 | this.label12 = new System.Windows.Forms.Label();
57 | this.label9 = new System.Windows.Forms.Label();
58 | this.button5 = new System.Windows.Forms.Button();
59 | this.label15 = new System.Windows.Forms.Label();
60 | this.button4 = new System.Windows.Forms.Button();
61 | this.label11 = new System.Windows.Forms.Label();
62 | this.label10 = new System.Windows.Forms.Label();
63 | this.button2 = new System.Windows.Forms.Button();
64 | this.label1 = new System.Windows.Forms.Label();
65 | this.timer2 = new System.Windows.Forms.Timer(this.components);
66 | ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
67 | this.panel1.SuspendLayout();
68 | this.panel3.SuspendLayout();
69 | this.panel2.SuspendLayout();
70 | this.SuspendLayout();
71 | //
72 | // button1
73 | //
74 | this.button1.BackgroundImage = global::WindowsFormsApp2.Properties.Resources.start;
75 | this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
76 | this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
77 | this.button1.FlatAppearance.BorderSize = 0;
78 | this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
79 | this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
80 | this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
81 | this.button1.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
82 | this.button1.Location = new System.Drawing.Point(207, 99);
83 | this.button1.Name = "button1";
84 | this.button1.Size = new System.Drawing.Size(105, 100);
85 | this.button1.TabIndex = 0;
86 | this.button1.UseVisualStyleBackColor = true;
87 | this.button1.Click += new System.EventHandler(this.button1_Click);
88 | //
89 | // textBox1
90 | //
91 | this.textBox1.BackColor = System.Drawing.SystemColors.ControlDark;
92 | this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
93 | this.textBox1.Location = new System.Drawing.Point(54, 26);
94 | this.textBox1.Name = "textBox1";
95 | this.textBox1.Size = new System.Drawing.Size(283, 20);
96 | this.textBox1.TabIndex = 1;
97 | //
98 | // label2
99 | //
100 | this.label2.AutoSize = true;
101 | this.label2.Font = new System.Drawing.Font("Ubuntu", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
102 | this.label2.Location = new System.Drawing.Point(5, 27);
103 | this.label2.Name = "label2";
104 | this.label2.Size = new System.Drawing.Size(48, 17);
105 | this.label2.TabIndex = 3;
106 | this.label2.Text = "Wallet";
107 | this.label2.Click += new System.EventHandler(this.label2_Click);
108 | //
109 | // label3
110 | //
111 | this.label3.AutoSize = true;
112 | this.label3.Font = new System.Drawing.Font("Ubuntu", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
113 | this.label3.Location = new System.Drawing.Point(12, 331);
114 | this.label3.Name = "label3";
115 | this.label3.Size = new System.Drawing.Size(72, 19);
116 | this.label3.TabIndex = 4;
117 | this.label3.Text = "waiting...";
118 | this.label3.Click += new System.EventHandler(this.label3_Click);
119 | //
120 | // timer1
121 | //
122 | this.timer1.Enabled = true;
123 | this.timer1.Interval = 1000;
124 | this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
125 | //
126 | // label4
127 | //
128 | this.label4.AutoSize = true;
129 | this.label4.Font = new System.Drawing.Font("Ubuntu", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
130 | this.label4.Location = new System.Drawing.Point(234, 206);
131 | this.label4.Name = "label4";
132 | this.label4.Size = new System.Drawing.Size(52, 19);
133 | this.label4.TabIndex = 5;
134 | this.label4.Text = "status";
135 | //
136 | // label5
137 | //
138 | this.label5.AutoSize = true;
139 | this.label5.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
140 | this.label5.Location = new System.Drawing.Point(281, 331);
141 | this.label5.Name = "label5";
142 | this.label5.Size = new System.Drawing.Size(31, 16);
143 | this.label5.TabIndex = 7;
144 | this.label5.Text = "GPU";
145 | this.label5.Click += new System.EventHandler(this.label5_Click);
146 | //
147 | // button3
148 | //
149 | this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
150 | this.button3.Location = new System.Drawing.Point(343, 23);
151 | this.button3.Name = "button3";
152 | this.button3.Size = new System.Drawing.Size(142, 23);
153 | this.button3.TabIndex = 9;
154 | this.button3.Text = "DeveloperAddress";
155 | this.button3.UseVisualStyleBackColor = true;
156 | this.button3.Click += new System.EventHandler(this.button3_Click);
157 | //
158 | // trackBar1
159 | //
160 | this.trackBar1.Location = new System.Drawing.Point(45, 254);
161 | this.trackBar1.Maximum = 20;
162 | this.trackBar1.Name = "trackBar1";
163 | this.trackBar1.Size = new System.Drawing.Size(440, 45);
164 | this.trackBar1.TabIndex = 10;
165 | //
166 | // label6
167 | //
168 | this.label6.AutoSize = true;
169 | this.label6.Font = new System.Drawing.Font("Ubuntu", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
170 | this.label6.Location = new System.Drawing.Point(225, 230);
171 | this.label6.Name = "label6";
172 | this.label6.Size = new System.Drawing.Size(68, 20);
173 | this.label6.TabIndex = 11;
174 | this.label6.Text = "Intensity";
175 | this.label6.Click += new System.EventHandler(this.label6_Click);
176 | //
177 | // label7
178 | //
179 | this.label7.AutoSize = true;
180 | this.label7.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
181 | this.label7.Location = new System.Drawing.Point(42, 286);
182 | this.label7.Name = "label7";
183 | this.label7.Size = new System.Drawing.Size(29, 16);
184 | this.label7.TabIndex = 12;
185 | this.label7.Text = "Max";
186 | //
187 | // label8
188 | //
189 | this.label8.AutoSize = true;
190 | this.label8.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
191 | this.label8.Location = new System.Drawing.Point(461, 286);
192 | this.label8.Name = "label8";
193 | this.label8.Size = new System.Drawing.Size(26, 16);
194 | this.label8.TabIndex = 13;
195 | this.label8.Text = "Min";
196 | this.label8.Click += new System.EventHandler(this.label8_Click);
197 | //
198 | // panel1
199 | //
200 | this.panel1.Controls.Add(this.panel3);
201 | this.panel1.Controls.Add(this.panel2);
202 | this.panel1.Controls.Add(this.button5);
203 | this.panel1.Controls.Add(this.label6);
204 | this.panel1.Controls.Add(this.label15);
205 | this.panel1.Controls.Add(this.button4);
206 | this.panel1.Controls.Add(this.label11);
207 | this.panel1.Controls.Add(this.label10);
208 | this.panel1.Controls.Add(this.label8);
209 | this.panel1.Controls.Add(this.label7);
210 | this.panel1.Controls.Add(this.trackBar1);
211 | this.panel1.Location = new System.Drawing.Point(-1, -1);
212 | this.panel1.Name = "panel1";
213 | this.panel1.Size = new System.Drawing.Size(531, 360);
214 | this.panel1.TabIndex = 14;
215 | this.panel1.Visible = false;
216 | this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
217 | //
218 | // panel3
219 | //
220 | this.panel3.Controls.Add(this.button7);
221 | this.panel3.Controls.Add(this.textBox3);
222 | this.panel3.Controls.Add(this.label18);
223 | this.panel3.Controls.Add(this.textBox2);
224 | this.panel3.Controls.Add(this.label13);
225 | this.panel3.Controls.Add(this.label14);
226 | this.panel3.Controls.Add(this.button6);
227 | this.panel3.Controls.Add(this.label16);
228 | this.panel3.Location = new System.Drawing.Point(16, 78);
229 | this.panel3.Name = "panel3";
230 | this.panel3.Size = new System.Drawing.Size(498, 154);
231 | this.panel3.TabIndex = 22;
232 | this.panel3.Visible = false;
233 | //
234 | // button7
235 | //
236 | this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
237 | this.button7.Location = new System.Drawing.Point(323, 74);
238 | this.button7.Name = "button7";
239 | this.button7.Size = new System.Drawing.Size(162, 23);
240 | this.button7.TabIndex = 23;
241 | this.button7.Text = "Ethermine";
242 | this.button7.UseVisualStyleBackColor = true;
243 | this.button7.Click += new System.EventHandler(this.button7_Click);
244 | //
245 | // textBox3
246 | //
247 | this.textBox3.BackColor = System.Drawing.SystemColors.ControlDark;
248 | this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
249 | this.textBox3.Location = new System.Drawing.Point(54, 76);
250 | this.textBox3.Name = "textBox3";
251 | this.textBox3.Size = new System.Drawing.Size(263, 20);
252 | this.textBox3.TabIndex = 22;
253 | //
254 | // label18
255 | //
256 | this.label18.AutoSize = true;
257 | this.label18.Font = new System.Drawing.Font("Ubuntu", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
258 | this.label18.Location = new System.Drawing.Point(5, 79);
259 | this.label18.Name = "label18";
260 | this.label18.Size = new System.Drawing.Size(36, 17);
261 | this.label18.TabIndex = 21;
262 | this.label18.Text = "Pool";
263 | //
264 | // textBox2
265 | //
266 | this.textBox2.BackColor = System.Drawing.SystemColors.ControlDark;
267 | this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
268 | this.textBox2.Location = new System.Drawing.Point(54, 26);
269 | this.textBox2.Name = "textBox2";
270 | this.textBox2.Size = new System.Drawing.Size(263, 20);
271 | this.textBox2.TabIndex = 1;
272 | //
273 | // label13
274 | //
275 | this.label13.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
276 | this.label13.Location = new System.Drawing.Point(317, 47);
277 | this.label13.Name = "label13";
278 | this.label13.Size = new System.Drawing.Size(171, 17);
279 | this.label13.TabIndex = 19;
280 | this.label13.Text = "Help me by mining to my address";
281 | this.label13.Click += new System.EventHandler(this.label13_Click);
282 | //
283 | // label14
284 | //
285 | this.label14.AutoSize = true;
286 | this.label14.Font = new System.Drawing.Font("Ubuntu", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
287 | this.label14.Location = new System.Drawing.Point(5, 27);
288 | this.label14.Name = "label14";
289 | this.label14.Size = new System.Drawing.Size(48, 17);
290 | this.label14.TabIndex = 3;
291 | this.label14.Text = "Wallet";
292 | //
293 | // button6
294 | //
295 | this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
296 | this.button6.Location = new System.Drawing.Point(323, 23);
297 | this.button6.Name = "button6";
298 | this.button6.Size = new System.Drawing.Size(162, 23);
299 | this.button6.TabIndex = 9;
300 | this.button6.Text = "DeveloperAddress";
301 | this.button6.UseVisualStyleBackColor = true;
302 | this.button6.Click += new System.EventHandler(this.button6_Click);
303 | //
304 | // label16
305 | //
306 | this.label16.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
307 | this.label16.Location = new System.Drawing.Point(51, 46);
308 | this.label16.Name = "label16";
309 | this.label16.Size = new System.Drawing.Size(282, 18);
310 | this.label16.TabIndex = 16;
311 | this.label16.Text = "Paste here your Ethereum address";
312 | this.label16.Click += new System.EventHandler(this.label16_Click);
313 | //
314 | // panel2
315 | //
316 | this.panel2.Controls.Add(this.textBox1);
317 | this.panel2.Controls.Add(this.label12);
318 | this.panel2.Controls.Add(this.label2);
319 | this.panel2.Controls.Add(this.button3);
320 | this.panel2.Controls.Add(this.label9);
321 | this.panel2.Location = new System.Drawing.Point(16, 78);
322 | this.panel2.Name = "panel2";
323 | this.panel2.Size = new System.Drawing.Size(498, 154);
324 | this.panel2.TabIndex = 21;
325 | //
326 | // label12
327 | //
328 | this.label12.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
329 | this.label12.Location = new System.Drawing.Point(338, 53);
330 | this.label12.Name = "label12";
331 | this.label12.Size = new System.Drawing.Size(147, 40);
332 | this.label12.TabIndex = 19;
333 | this.label12.Text = "Help me by mining to my address";
334 | this.label12.Click += new System.EventHandler(this.label12_Click);
335 | //
336 | // label9
337 | //
338 | this.label9.Font = new System.Drawing.Font("Ubuntu", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
339 | this.label9.Location = new System.Drawing.Point(50, 53);
340 | this.label9.Name = "label9";
341 | this.label9.Size = new System.Drawing.Size(282, 40);
342 | this.label9.TabIndex = 16;
343 | this.label9.Text = "Create an account on nicehash, and paste here your nicehash wallet address";
344 | this.label9.Click += new System.EventHandler(this.label9_Click_1);
345 | //
346 | // button5
347 | //
348 | this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
349 | this.button5.Location = new System.Drawing.Point(181, 44);
350 | this.button5.Name = "button5";
351 | this.button5.Size = new System.Drawing.Size(152, 23);
352 | this.button5.TabIndex = 20;
353 | this.button5.Text = "Mine to Ethereum wallet";
354 | this.button5.UseVisualStyleBackColor = true;
355 | this.button5.Click += new System.EventHandler(this.button5_Click);
356 | //
357 | // label15
358 | //
359 | this.label15.AutoSize = true;
360 | this.label15.Font = new System.Drawing.Font("Ubuntu", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
361 | this.label15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(195)))), ((int)(((byte)(66)))));
362 | this.label15.Location = new System.Drawing.Point(351, 43);
363 | this.label15.Name = "label15";
364 | this.label15.Size = new System.Drawing.Size(118, 20);
365 | this.label15.TabIndex = 11;
366 | this.label15.Text = "Nicehash Mode";
367 | //
368 | // button4
369 | //
370 | this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
371 | this.button4.Location = new System.Drawing.Point(92, 44);
372 | this.button4.Name = "button4";
373 | this.button4.Size = new System.Drawing.Size(75, 23);
374 | this.button4.TabIndex = 18;
375 | this.button4.Text = "Dark Mode";
376 | this.button4.UseVisualStyleBackColor = true;
377 | this.button4.Click += new System.EventHandler(this.button4_Click);
378 | //
379 | // label11
380 | //
381 | this.label11.AutoSize = true;
382 | this.label11.Font = new System.Drawing.Font("Ubuntu", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
383 | this.label11.Location = new System.Drawing.Point(13, 328);
384 | this.label11.Name = "label11";
385 | this.label11.Size = new System.Drawing.Size(428, 17);
386 | this.label11.TabIndex = 17;
387 | this.label11.Text = "GhostNicehash v1.2 by afonsosousah Discord: Afonso1234#0128";
388 | //
389 | // label10
390 | //
391 | this.label10.AutoSize = true;
392 | this.label10.Font = new System.Drawing.Font("Ubuntu", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
393 | this.label10.Location = new System.Drawing.Point(216, 9);
394 | this.label10.Name = "label10";
395 | this.label10.Size = new System.Drawing.Size(87, 26);
396 | this.label10.TabIndex = 15;
397 | this.label10.Text = "Options";
398 | this.label10.Click += new System.EventHandler(this.label10_Click);
399 | //
400 | // button2
401 | //
402 | this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
403 | this.button2.Location = new System.Drawing.Point(466, 326);
404 | this.button2.Name = "button2";
405 | this.button2.Size = new System.Drawing.Size(54, 23);
406 | this.button2.TabIndex = 15;
407 | this.button2.Text = "Options";
408 | this.button2.UseVisualStyleBackColor = true;
409 | this.button2.Click += new System.EventHandler(this.button2_Click);
410 | //
411 | // label1
412 | //
413 | this.label1.AutoSize = true;
414 | this.label1.Font = new System.Drawing.Font("Ubuntu", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
415 | this.label1.Location = new System.Drawing.Point(128, 331);
416 | this.label1.Name = "label1";
417 | this.label1.Size = new System.Drawing.Size(88, 19);
418 | this.label1.TabIndex = 16;
419 | this.label1.Text = "profitability";
420 | //
421 | // timer2
422 | //
423 | this.timer2.Interval = 5000;
424 | this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
425 | //
426 | // Form1
427 | //
428 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
429 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
430 | this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));
431 | this.ClientSize = new System.Drawing.Size(525, 355);
432 | this.Controls.Add(this.button2);
433 | this.Controls.Add(this.panel1);
434 | this.Controls.Add(this.label3);
435 | this.Controls.Add(this.button1);
436 | this.Controls.Add(this.label5);
437 | this.Controls.Add(this.label4);
438 | this.Controls.Add(this.label1);
439 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
440 | this.KeyPreview = true;
441 | this.Name = "Form1";
442 | this.Text = "GhostNicehash";
443 | this.Load += new System.EventHandler(this.Form1_Load);
444 | ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
445 | this.panel1.ResumeLayout(false);
446 | this.panel1.PerformLayout();
447 | this.panel3.ResumeLayout(false);
448 | this.panel3.PerformLayout();
449 | this.panel2.ResumeLayout(false);
450 | this.panel2.PerformLayout();
451 | this.ResumeLayout(false);
452 | this.PerformLayout();
453 |
454 | }
455 |
456 | #endregion
457 |
458 | private System.Windows.Forms.Button button1;
459 | private System.Windows.Forms.TextBox textBox1;
460 | private System.Windows.Forms.Label label2;
461 | private System.Windows.Forms.Label label3;
462 | private System.Windows.Forms.Timer timer1;
463 | private System.Windows.Forms.Label label4;
464 | private System.Windows.Forms.Label label5;
465 | private System.Windows.Forms.Button button3;
466 | private System.Windows.Forms.TrackBar trackBar1;
467 | private System.Windows.Forms.Label label6;
468 | private System.Windows.Forms.Label label7;
469 | private System.Windows.Forms.Label label8;
470 | private System.Windows.Forms.Panel panel1;
471 | private System.Windows.Forms.Label label10;
472 | private System.Windows.Forms.Button button2;
473 | private System.Windows.Forms.Label label9;
474 | private System.Windows.Forms.Label label11;
475 | private System.Windows.Forms.Button button4;
476 | private System.Windows.Forms.Label label12;
477 | private System.Windows.Forms.Panel panel2;
478 | private System.Windows.Forms.Panel panel3;
479 | private System.Windows.Forms.TextBox textBox2;
480 | private System.Windows.Forms.Label label14;
481 | private System.Windows.Forms.Label label15;
482 | private System.Windows.Forms.Button button6;
483 | private System.Windows.Forms.Label label16;
484 | private System.Windows.Forms.Button button5;
485 | private System.Windows.Forms.Label label13;
486 | private System.Windows.Forms.Button button7;
487 | private System.Windows.Forms.TextBox textBox3;
488 | private System.Windows.Forms.Label label18;
489 | private System.Windows.Forms.Label label1;
490 | private System.Windows.Forms.Timer timer2;
491 | }
492 | }
493 |
494 |
--------------------------------------------------------------------------------
/WindowsFormsApp2/Keyboard.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Runtime.InteropServices;
7 |
8 | namespace WindowsFormsApp2
9 | {
10 | public class Keyboard
11 | {
12 | public static void Send(ScanCodeShort a)
13 | {
14 | INPUT[] Inputs = new INPUT[1];
15 | INPUT Input = new INPUT();
16 | Input.type = 1; // 1 = Keyboard Input
17 | Input.U.ki.wScan = a;
18 | Input.U.ki.dwFlags = KEYEVENTF.SCANCODE;
19 | Inputs[0] = Input;
20 | SendInput(1, Inputs, INPUT.Size);
21 | }
22 |
23 | ///
24 | /// Declaration of external SendInput method
25 | ///
26 | [DllImport("user32.dll")]
27 | internal static extern uint SendInput(
28 | uint nInputs,
29 | [MarshalAs(UnmanagedType.LPArray), In] INPUT[] pInputs,
30 | int cbSize);
31 |
32 |
33 | // Declare the INPUT struct
34 | [StructLayout(LayoutKind.Sequential)]
35 | public struct INPUT
36 | {
37 | public uint type;
38 | public InputUnion U;
39 | public static int Size
40 | {
41 | get { return Marshal.SizeOf(typeof(INPUT)); }
42 | }
43 | }
44 |
45 | // Declare the InputUnion struct
46 | [StructLayout(LayoutKind.Explicit)]
47 | public struct InputUnion
48 | {
49 | [FieldOffset(0)]
50 | internal MOUSEINPUT mi;
51 | [FieldOffset(0)]
52 | internal KEYBDINPUT ki;
53 | [FieldOffset(0)]
54 | internal HARDWAREINPUT hi;
55 | }
56 |
57 | [StructLayout(LayoutKind.Sequential)]
58 | public struct MOUSEINPUT
59 | {
60 | internal int dx;
61 | internal int dy;
62 | internal MouseEventDataXButtons mouseData;
63 | internal MOUSEEVENTF dwFlags;
64 | internal uint time;
65 | internal UIntPtr dwExtraInfo;
66 | }
67 |
68 | [Flags]
69 | public enum MouseEventDataXButtons : uint
70 | {
71 | Nothing = 0x00000000,
72 | XBUTTON1 = 0x00000001,
73 | XBUTTON2 = 0x00000002
74 | }
75 |
76 | [Flags]
77 | public enum MOUSEEVENTF : uint
78 | {
79 | ABSOLUTE = 0x8000,
80 | HWHEEL = 0x01000,
81 | MOVE = 0x0001,
82 | MOVE_NOCOALESCE = 0x2000,
83 | LEFTDOWN = 0x0002,
84 | LEFTUP = 0x0004,
85 | RIGHTDOWN = 0x0008,
86 | RIGHTUP = 0x0010,
87 | MIDDLEDOWN = 0x0020,
88 | MIDDLEUP = 0x0040,
89 | VIRTUALDESK = 0x4000,
90 | WHEEL = 0x0800,
91 | XDOWN = 0x0080,
92 | XUP = 0x0100
93 | }
94 |
95 | [StructLayout(LayoutKind.Sequential)]
96 | public struct KEYBDINPUT
97 | {
98 | internal VirtualKeyShort wVk;
99 | internal ScanCodeShort wScan;
100 | internal KEYEVENTF dwFlags;
101 | internal int time;
102 | internal UIntPtr dwExtraInfo;
103 | }
104 |
105 | [Flags]
106 | public enum KEYEVENTF : uint
107 | {
108 | EXTENDEDKEY = 0x0001,
109 | KEYUP = 0x0002,
110 | SCANCODE = 0x0008,
111 | UNICODE = 0x0004
112 | }
113 |
114 | public enum VirtualKeyShort : short
115 | {
116 | ///
117 | ///Left mouse button
118 | ///
119 | LBUTTON = 0x01,
120 | ///
121 | ///Right mouse button
122 | ///
123 | RBUTTON = 0x02,
124 | ///
125 | ///Control-break processing
126 | ///
127 | CANCEL = 0x03,
128 | ///
129 | ///Middle mouse button (three-button mouse)
130 | ///
131 | MBUTTON = 0x04,
132 | ///
133 | ///Windows 2000/XP: X1 mouse button
134 | ///
135 | XBUTTON1 = 0x05,
136 | ///
137 | ///Windows 2000/XP: X2 mouse button
138 | ///
139 | XBUTTON2 = 0x06,
140 | ///
141 | ///BACKSPACE key
142 | ///
143 | BACK = 0x08,
144 | ///
145 | ///TAB key
146 | ///
147 | TAB = 0x09,
148 | ///
149 | ///CLEAR key
150 | ///
151 | CLEAR = 0x0C,
152 | ///
153 | ///ENTER key
154 | ///
155 | RETURN = 0x0D,
156 | ///
157 | ///SHIFT key
158 | ///
159 | SHIFT = 0x10,
160 | ///
161 | ///CTRL key
162 | ///
163 | CONTROL = 0x11,
164 | ///
165 | ///ALT key
166 | ///
167 | MENU = 0x12,
168 | ///
169 | ///PAUSE key
170 | ///
171 | PAUSE = 0x13,
172 | ///
173 | ///CAPS LOCK key
174 | ///
175 | CAPITAL = 0x14,
176 | ///
177 | ///Input Method Editor (IME) Kana mode
178 | ///
179 | KANA = 0x15,
180 | ///
181 | ///IME Hangul mode
182 | ///
183 | HANGUL = 0x15,
184 | ///
185 | ///IME Junja mode
186 | ///
187 | JUNJA = 0x17,
188 | ///
189 | ///IME final mode
190 | ///
191 | FINAL = 0x18,
192 | ///
193 | ///IME Hanja mode
194 | ///
195 | HANJA = 0x19,
196 | ///
197 | ///IME Kanji mode
198 | ///
199 | KANJI = 0x19,
200 | ///
201 | ///ESC key
202 | ///
203 | ESCAPE = 0x1B,
204 | ///
205 | ///IME convert
206 | ///
207 | CONVERT = 0x1C,
208 | ///
209 | ///IME nonconvert
210 | ///
211 | NONCONVERT = 0x1D,
212 | ///
213 | ///IME accept
214 | ///
215 | ACCEPT = 0x1E,
216 | ///
217 | ///IME mode change request
218 | ///
219 | MODECHANGE = 0x1F,
220 | ///
221 | ///SPACEBAR
222 | ///
223 | SPACE = 0x20,
224 | ///
225 | ///PAGE UP key
226 | ///
227 | PRIOR = 0x21,
228 | ///
229 | ///PAGE DOWN key
230 | ///
231 | NEXT = 0x22,
232 | ///
233 | ///END key
234 | ///
235 | END = 0x23,
236 | ///
237 | ///HOME key
238 | ///
239 | HOME = 0x24,
240 | ///
241 | ///LEFT ARROW key
242 | ///
243 | LEFT = 0x25,
244 | ///
245 | ///UP ARROW key
246 | ///
247 | UP = 0x26,
248 | ///
249 | ///RIGHT ARROW key
250 | ///
251 | RIGHT = 0x27,
252 | ///
253 | ///DOWN ARROW key
254 | ///
255 | DOWN = 0x28,
256 | ///
257 | ///SELECT key
258 | ///
259 | SELECT = 0x29,
260 | ///
261 | ///PRINT key
262 | ///
263 | PRINT = 0x2A,
264 | ///
265 | ///EXECUTE key
266 | ///
267 | EXECUTE = 0x2B,
268 | ///
269 | ///PRINT SCREEN key
270 | ///
271 | SNAPSHOT = 0x2C,
272 | ///
273 | ///INS key
274 | ///
275 | INSERT = 0x2D,
276 | ///
277 | ///DEL key
278 | ///
279 | DELETE = 0x2E,
280 | ///
281 | ///HELP key
282 | ///
283 | HELP = 0x2F,
284 | ///
285 | ///0 key
286 | ///
287 | KEY_0 = 0x30,
288 | ///
289 | ///1 key
290 | ///
291 | KEY_1 = 0x31,
292 | ///
293 | ///2 key
294 | ///
295 | KEY_2 = 0x32,
296 | ///
297 | ///3 key
298 | ///
299 | KEY_3 = 0x33,
300 | ///
301 | ///4 key
302 | ///
303 | KEY_4 = 0x34,
304 | ///
305 | ///5 key
306 | ///
307 | KEY_5 = 0x35,
308 | ///
309 | ///6 key
310 | ///
311 | KEY_6 = 0x36,
312 | ///
313 | ///7 key
314 | ///
315 | KEY_7 = 0x37,
316 | ///
317 | ///8 key
318 | ///
319 | KEY_8 = 0x38,
320 | ///
321 | ///9 key
322 | ///
323 | KEY_9 = 0x39,
324 | ///
325 | ///A key
326 | ///
327 | KEY_A = 0x41,
328 | ///
329 | ///B key
330 | ///
331 | KEY_B = 0x42,
332 | ///
333 | ///C key
334 | ///
335 | KEY_C = 0x43,
336 | ///
337 | ///D key
338 | ///
339 | KEY_D = 0x44,
340 | ///
341 | ///E key
342 | ///
343 | KEY_E = 0x45,
344 | ///
345 | ///F key
346 | ///
347 | KEY_F = 0x46,
348 | ///
349 | ///G key
350 | ///
351 | KEY_G = 0x47,
352 | ///
353 | ///H key
354 | ///
355 | KEY_H = 0x48,
356 | ///
357 | ///I key
358 | ///
359 | KEY_I = 0x49,
360 | ///
361 | ///J key
362 | ///
363 | KEY_J = 0x4A,
364 | ///
365 | ///K key
366 | ///
367 | KEY_K = 0x4B,
368 | ///
369 | ///L key
370 | ///
371 | KEY_L = 0x4C,
372 | ///
373 | ///M key
374 | ///
375 | KEY_M = 0x4D,
376 | ///
377 | ///N key
378 | ///
379 | KEY_N = 0x4E,
380 | ///
381 | ///O key
382 | ///
383 | KEY_O = 0x4F,
384 | ///
385 | ///P key
386 | ///
387 | KEY_P = 0x50,
388 | ///
389 | ///Q key
390 | ///
391 | KEY_Q = 0x51,
392 | ///
393 | ///R key
394 | ///
395 | KEY_R = 0x52,
396 | ///
397 | ///S key
398 | ///
399 | KEY_S = 0x53,
400 | ///
401 | ///T key
402 | ///
403 | KEY_T = 0x54,
404 | ///
405 | ///U key
406 | ///
407 | KEY_U = 0x55,
408 | ///
409 | ///V key
410 | ///
411 | KEY_V = 0x56,
412 | ///
413 | ///W key
414 | ///
415 | KEY_W = 0x57,
416 | ///
417 | ///X key
418 | ///
419 | KEY_X = 0x58,
420 | ///
421 | ///Y key
422 | ///
423 | KEY_Y = 0x59,
424 | ///
425 | ///Z key
426 | ///
427 | KEY_Z = 0x5A,
428 | ///
429 | ///Left Windows key (Microsoft Natural keyboard)
430 | ///
431 | LWIN = 0x5B,
432 | ///
433 | ///Right Windows key (Natural keyboard)
434 | ///
435 | RWIN = 0x5C,
436 | ///
437 | ///Applications key (Natural keyboard)
438 | ///
439 | APPS = 0x5D,
440 | ///
441 | ///Computer Sleep key
442 | ///
443 | SLEEP = 0x5F,
444 | ///
445 | ///Numeric keypad 0 key
446 | ///
447 | NUMPAD0 = 0x60,
448 | ///
449 | ///Numeric keypad 1 key
450 | ///
451 | NUMPAD1 = 0x61,
452 | ///
453 | ///Numeric keypad 2 key
454 | ///
455 | NUMPAD2 = 0x62,
456 | ///
457 | ///Numeric keypad 3 key
458 | ///
459 | NUMPAD3 = 0x63,
460 | ///
461 | ///Numeric keypad 4 key
462 | ///
463 | NUMPAD4 = 0x64,
464 | ///
465 | ///Numeric keypad 5 key
466 | ///
467 | NUMPAD5 = 0x65,
468 | ///
469 | ///Numeric keypad 6 key
470 | ///
471 | NUMPAD6 = 0x66,
472 | ///
473 | ///Numeric keypad 7 key
474 | ///
475 | NUMPAD7 = 0x67,
476 | ///
477 | ///Numeric keypad 8 key
478 | ///
479 | NUMPAD8 = 0x68,
480 | ///
481 | ///Numeric keypad 9 key
482 | ///
483 | NUMPAD9 = 0x69,
484 | ///
485 | ///Multiply key
486 | ///
487 | MULTIPLY = 0x6A,
488 | ///
489 | ///Add key
490 | ///
491 | ADD = 0x6B,
492 | ///
493 | ///Separator key
494 | ///
495 | SEPARATOR = 0x6C,
496 | ///
497 | ///Subtract key
498 | ///
499 | SUBTRACT = 0x6D,
500 | ///
501 | ///Decimal key
502 | ///
503 | DECIMAL = 0x6E,
504 | ///
505 | ///Divide key
506 | ///
507 | DIVIDE = 0x6F,
508 | ///
509 | ///F1 key
510 | ///
511 | F1 = 0x70,
512 | ///
513 | ///F2 key
514 | ///
515 | F2 = 0x71,
516 | ///
517 | ///F3 key
518 | ///
519 | F3 = 0x72,
520 | ///
521 | ///F4 key
522 | ///
523 | F4 = 0x73,
524 | ///
525 | ///F5 key
526 | ///
527 | F5 = 0x74,
528 | ///
529 | ///F6 key
530 | ///
531 | F6 = 0x75,
532 | ///
533 | ///F7 key
534 | ///
535 | F7 = 0x76,
536 | ///
537 | ///F8 key
538 | ///
539 | F8 = 0x77,
540 | ///
541 | ///F9 key
542 | ///
543 | F9 = 0x78,
544 | ///
545 | ///F10 key
546 | ///
547 | F10 = 0x79,
548 | ///
549 | ///F11 key
550 | ///
551 | F11 = 0x7A,
552 | ///
553 | ///F12 key
554 | ///
555 | F12 = 0x7B,
556 | ///
557 | ///F13 key
558 | ///
559 | F13 = 0x7C,
560 | ///
561 | ///F14 key
562 | ///
563 | F14 = 0x7D,
564 | ///
565 | ///F15 key
566 | ///
567 | F15 = 0x7E,
568 | ///
569 | ///F16 key
570 | ///
571 | F16 = 0x7F,
572 | ///
573 | ///F17 key
574 | ///
575 | F17 = 0x80,
576 | ///
577 | ///F18 key
578 | ///
579 | F18 = 0x81,
580 | ///
581 | ///F19 key
582 | ///
583 | F19 = 0x82,
584 | ///
585 | ///F20 key
586 | ///
587 | F20 = 0x83,
588 | ///
589 | ///F21 key
590 | ///
591 | F21 = 0x84,
592 | ///
593 | ///F22 key, (PPC only) Key used to lock device.
594 | ///
595 | F22 = 0x85,
596 | ///
597 | ///F23 key
598 | ///
599 | F23 = 0x86,
600 | ///
601 | ///F24 key
602 | ///
603 | F24 = 0x87,
604 | ///
605 | ///NUM LOCK key
606 | ///
607 | NUMLOCK = 0x90,
608 | ///
609 | ///SCROLL LOCK key
610 | ///
611 | SCROLL = 0x91,
612 | ///
613 | ///Left SHIFT key
614 | ///
615 | LSHIFT = 0xA0,
616 | ///
617 | ///Right SHIFT key
618 | ///
619 | RSHIFT = 0xA1,
620 | ///
621 | ///Left CONTROL key
622 | ///
623 | LCONTROL = 0xA2,
624 | ///
625 | ///Right CONTROL key
626 | ///
627 | RCONTROL = 0xA3,
628 | ///
629 | ///Left MENU key
630 | ///
631 | LMENU = 0xA4,
632 | ///
633 | ///Right MENU key
634 | ///
635 | RMENU = 0xA5,
636 | ///
637 | ///Windows 2000/XP: Browser Back key
638 | ///
639 | BROWSER_BACK = 0xA6,
640 | ///
641 | ///Windows 2000/XP: Browser Forward key
642 | ///
643 | BROWSER_FORWARD = 0xA7,
644 | ///
645 | ///Windows 2000/XP: Browser Refresh key
646 | ///
647 | BROWSER_REFRESH = 0xA8,
648 | ///
649 | ///Windows 2000/XP: Browser Stop key
650 | ///
651 | BROWSER_STOP = 0xA9,
652 | ///
653 | ///Windows 2000/XP: Browser Search key
654 | ///
655 | BROWSER_SEARCH = 0xAA,
656 | ///
657 | ///Windows 2000/XP: Browser Favorites key
658 | ///
659 | BROWSER_FAVORITES = 0xAB,
660 | ///
661 | ///Windows 2000/XP: Browser Start and Home key
662 | ///
663 | BROWSER_HOME = 0xAC,
664 | ///
665 | ///Windows 2000/XP: Volume Mute key
666 | ///
667 | VOLUME_MUTE = 0xAD,
668 | ///
669 | ///Windows 2000/XP: Volume Down key
670 | ///
671 | VOLUME_DOWN = 0xAE,
672 | ///
673 | ///Windows 2000/XP: Volume Up key
674 | ///
675 | VOLUME_UP = 0xAF,
676 | ///
677 | ///Windows 2000/XP: Next Track key
678 | ///
679 | MEDIA_NEXT_TRACK = 0xB0,
680 | ///
681 | ///Windows 2000/XP: Previous Track key
682 | ///
683 | MEDIA_PREV_TRACK = 0xB1,
684 | ///
685 | ///Windows 2000/XP: Stop Media key
686 | ///
687 | MEDIA_STOP = 0xB2,
688 | ///
689 | ///Windows 2000/XP: Play/Pause Media key
690 | ///
691 | MEDIA_PLAY_PAUSE = 0xB3,
692 | ///
693 | ///Windows 2000/XP: Start Mail key
694 | ///
695 | LAUNCH_MAIL = 0xB4,
696 | ///
697 | ///Windows 2000/XP: Select Media key
698 | ///
699 | LAUNCH_MEDIA_SELECT = 0xB5,
700 | ///
701 | ///Windows 2000/XP: Start Application 1 key
702 | ///
703 | LAUNCH_APP1 = 0xB6,
704 | ///
705 | ///Windows 2000/XP: Start Application 2 key
706 | ///
707 | LAUNCH_APP2 = 0xB7,
708 | ///
709 | ///Used for miscellaneous characters; it can vary by keyboard.
710 | ///
711 | OEM_1 = 0xBA,
712 | ///
713 | ///Windows 2000/XP: For any country/region, the '+' key
714 | ///
715 | OEM_PLUS = 0xBB,
716 | ///
717 | ///Windows 2000/XP: For any country/region, the ',' key
718 | ///
719 | OEM_COMMA = 0xBC,
720 | ///
721 | ///Windows 2000/XP: For any country/region, the '-' key
722 | ///
723 | OEM_MINUS = 0xBD,
724 | ///
725 | ///Windows 2000/XP: For any country/region, the '.' key
726 | ///
727 | OEM_PERIOD = 0xBE,
728 | ///
729 | ///Used for miscellaneous characters; it can vary by keyboard.
730 | ///
731 | OEM_2 = 0xBF,
732 | ///
733 | ///Used for miscellaneous characters; it can vary by keyboard.
734 | ///
735 | OEM_3 = 0xC0,
736 | ///
737 | ///Used for miscellaneous characters; it can vary by keyboard.
738 | ///
739 | OEM_4 = 0xDB,
740 | ///
741 | ///Used for miscellaneous characters; it can vary by keyboard.
742 | ///
743 | OEM_5 = 0xDC,
744 | ///
745 | ///Used for miscellaneous characters; it can vary by keyboard.
746 | ///
747 | OEM_6 = 0xDD,
748 | ///
749 | ///Used for miscellaneous characters; it can vary by keyboard.
750 | ///
751 | OEM_7 = 0xDE,
752 | ///
753 | ///Used for miscellaneous characters; it can vary by keyboard.
754 | ///
755 | OEM_8 = 0xDF,
756 | ///
757 | ///Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard
758 | ///
759 | OEM_102 = 0xE2,
760 | ///
761 | ///Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key
762 | ///
763 | PROCESSKEY = 0xE5,
764 | ///
765 | ///Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes.
766 | ///The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information,
767 | ///see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP
768 | ///
769 | PACKET = 0xE7,
770 | ///
771 | ///Attn key
772 | ///
773 | ATTN = 0xF6,
774 | ///
775 | ///CrSel key
776 | ///
777 | CRSEL = 0xF7,
778 | ///
779 | ///ExSel key
780 | ///
781 | EXSEL = 0xF8,
782 | ///
783 | ///Erase EOF key
784 | ///
785 | EREOF = 0xF9,
786 | ///
787 | ///Play key
788 | ///
789 | PLAY = 0xFA,
790 | ///
791 | ///Zoom key
792 | ///
793 | ZOOM = 0xFB,
794 | ///
795 | ///Reserved
796 | ///
797 | NONAME = 0xFC,
798 | ///
799 | ///PA1 key
800 | ///
801 | PA1 = 0xFD,
802 | ///
803 | ///Clear key
804 | ///
805 | OEM_CLEAR = 0xFE
806 | }
807 |
808 | public enum ScanCodeShort : short
809 | {
810 | LBUTTON = 0,
811 | RBUTTON = 0,
812 | CANCEL = 70,
813 | MBUTTON = 0,
814 | XBUTTON1 = 0,
815 | XBUTTON2 = 0,
816 | BACK = 14,
817 | TAB = 15,
818 | CLEAR = 76,
819 | RETURN = 28,
820 | SHIFT = 42,
821 | CONTROL = 29,
822 | MENU = 56,
823 | PAUSE = 0,
824 | CAPITAL = 58,
825 | KANA = 0,
826 | HANGUL = 0,
827 | JUNJA = 0,
828 | FINAL = 0,
829 | HANJA = 0,
830 | KANJI = 0,
831 | ESCAPE = 1,
832 | CONVERT = 0,
833 | NONCONVERT = 0,
834 | ACCEPT = 0,
835 | MODECHANGE = 0,
836 | SPACE = 57,
837 | PRIOR = 73,
838 | NEXT = 81,
839 | END = 79,
840 | HOME = 71,
841 | LEFT = 75,
842 | UP = 72,
843 | RIGHT = 77,
844 | DOWN = 80,
845 | SELECT = 0,
846 | PRINT = 0,
847 | EXECUTE = 0,
848 | SNAPSHOT = 84,
849 | INSERT = 82,
850 | DELETE = 83,
851 | HELP = 99,
852 | KEY_0 = 11,
853 | KEY_1 = 2,
854 | KEY_2 = 3,
855 | KEY_3 = 4,
856 | KEY_4 = 5,
857 | KEY_5 = 6,
858 | KEY_6 = 7,
859 | KEY_7 = 8,
860 | KEY_8 = 9,
861 | KEY_9 = 10,
862 | KEY_A = 30,
863 | KEY_B = 48,
864 | KEY_C = 46,
865 | KEY_D = 32,
866 | KEY_E = 18,
867 | KEY_F = 33,
868 | KEY_G = 34,
869 | KEY_H = 35,
870 | KEY_I = 23,
871 | KEY_J = 36,
872 | KEY_K = 37,
873 | KEY_L = 38,
874 | KEY_M = 50,
875 | KEY_N = 49,
876 | KEY_O = 24,
877 | KEY_P = 25,
878 | KEY_Q = 16,
879 | KEY_R = 19,
880 | KEY_S = 31,
881 | KEY_T = 20,
882 | KEY_U = 22,
883 | KEY_V = 47,
884 | KEY_W = 17,
885 | KEY_X = 45,
886 | KEY_Y = 21,
887 | KEY_Z = 44,
888 | LWIN = 91,
889 | RWIN = 92,
890 | APPS = 93,
891 | SLEEP = 95,
892 | NUMPAD0 = 82,
893 | NUMPAD1 = 79,
894 | NUMPAD2 = 80,
895 | NUMPAD3 = 81,
896 | NUMPAD4 = 75,
897 | NUMPAD5 = 76,
898 | NUMPAD6 = 77,
899 | NUMPAD7 = 71,
900 | NUMPAD8 = 72,
901 | NUMPAD9 = 73,
902 | MULTIPLY = 55,
903 | ADD = 78,
904 | SEPARATOR = 0,
905 | SUBTRACT = 74,
906 | DECIMAL = 83,
907 | DIVIDE = 53,
908 | F1 = 59,
909 | F2 = 60,
910 | F3 = 61,
911 | F4 = 62,
912 | F5 = 63,
913 | F6 = 64,
914 | F7 = 65,
915 | F8 = 66,
916 | F9 = 67,
917 | F10 = 68,
918 | F11 = 87,
919 | F12 = 88,
920 | F13 = 100,
921 | F14 = 101,
922 | F15 = 102,
923 | F16 = 103,
924 | F17 = 104,
925 | F18 = 105,
926 | F19 = 106,
927 | F20 = 107,
928 | F21 = 108,
929 | F22 = 109,
930 | F23 = 110,
931 | F24 = 118,
932 | NUMLOCK = 69,
933 | SCROLL = 70,
934 | LSHIFT = 42,
935 | RSHIFT = 54,
936 | LCONTROL = 29,
937 | RCONTROL = 29,
938 | LMENU = 56,
939 | RMENU = 56,
940 | BROWSER_BACK = 106,
941 | BROWSER_FORWARD = 105,
942 | BROWSER_REFRESH = 103,
943 | BROWSER_STOP = 104,
944 | BROWSER_SEARCH = 101,
945 | BROWSER_FAVORITES = 102,
946 | BROWSER_HOME = 50,
947 | VOLUME_MUTE = 32,
948 | VOLUME_DOWN = 46,
949 | VOLUME_UP = 48,
950 | MEDIA_NEXT_TRACK = 25,
951 | MEDIA_PREV_TRACK = 16,
952 | MEDIA_STOP = 36,
953 | MEDIA_PLAY_PAUSE = 34,
954 | LAUNCH_MAIL = 108,
955 | LAUNCH_MEDIA_SELECT = 109,
956 | LAUNCH_APP1 = 107,
957 | LAUNCH_APP2 = 33,
958 | OEM_1 = 39,
959 | OEM_PLUS = 13,
960 | OEM_COMMA = 51,
961 | OEM_MINUS = 12,
962 | OEM_PERIOD = 52,
963 | OEM_2 = 53,
964 | OEM_3 = 41,
965 | OEM_4 = 26,
966 | OEM_5 = 43,
967 | OEM_6 = 27,
968 | OEM_7 = 40,
969 | OEM_8 = 0,
970 | OEM_102 = 86,
971 | PROCESSKEY = 0,
972 | PACKET = 0,
973 | ATTN = 0,
974 | CRSEL = 0,
975 | EXSEL = 0,
976 | EREOF = 93,
977 | PLAY = 0,
978 | ZOOM = 98,
979 | NONAME = 0,
980 | PA1 = 0,
981 | OEM_CLEAR = 0,
982 | }
983 |
984 | ///
985 | /// Define HARDWAREINPUT struct
986 | ///
987 | [StructLayout(LayoutKind.Sequential)]
988 | public struct HARDWAREINPUT
989 | {
990 | internal int uMsg;
991 | internal short wParamL;
992 | internal short wParamH;
993 | }
994 | }
995 | }
996 |
--------------------------------------------------------------------------------