#include <iostream>
#include "HWID_Engine.h"
using namespace std;
int main()
{
CHWID_Engine hwid_engine;
hwid_engine.setAppName("********"); // Here is your application name (same from config.php on your server)
string username, password;
// Ask for the username
cout << "Username : ";
cin >> username;
// Ask for the password
cout << "Password : ";
cin >> password;
hwid_engine.setUsername(username); // register the username
hwid_engine.setPassword(password); // register the password
hwid_engine.setDomain("api.ceriselabs.com"); // Link to the web api (no sub folder)
HWID_ENGINE_MSG stmt = hwid_engine.login(); // login method return the message
/*
Possibility :
HWID_ENGINE_LOGIN_ERROR
HWID_ENGINE_HWID_ERROR
HWID_ENGINE_HTTP_ERROR
HWID_ENGINE_OK
HWID_ENGINE_NO
*/
if (stmt == HWID_ENGINE_OK)
{
cout << "Welcome" << endl;
}
else if (stmt == HWID_ENGINE_LOGIN_ERROR)
{
cout << "The username / password combination is wrong" << endl;
}
else if (stmt == HWID_ENGINE_HWID_ERROR)
{
cout << "Wrong hwid" << endl;
}
else if (stmt == HWID_ENGINE_NO)
{
cout << "No active subscription";
}
else
{
cout << "Http request failled";
}
system("pause");
return EXIT_SUCCESS;
}

.

www.api.ceriselabs.com/admin username: infslash password: password