In Solution Explorer, right-click the project node and click Add Reference. And add the
coinstash_windows.dll to your project.
Import the headers into your code where you are going to use framework
Then you can initialise the miner... we'll discuss the various settings later.
Coinstash.startMining(int port, "<WORKER_ID>:<YOUR_COINSTASH_ACCOUNT_USER>", int coresCount, slowMemory, currency, Authorization, GPU);
Here's an example with values
Coinstash.startMining(3333, "email@example.com:1a2b3c456789", 4, "warning", "monero7", "<AUTHORIZATION KEY>", "none");
Worth pointing out at this point, this is how you stop the miner now you've started it.... VERY IMPORTANT to consider this within your product's lifecycle events to ensure that the miner doesn't keep running when the user doesn't want it to or if your app terminates or something...