A DLL uses the same Ghotz C++ SDK as an EXE. Difference: when you call init() and how you keep the session alive inside the injected module.
Copy auth.hpp, skStr.h, and dependencies into your DLL project. Set API URL:
std::string url = skCrypt("https://keyghotz.space/api/1.2/").decrypt();
api GhotzApp(name, ownerid, version, url, path);
sessionid in a global.GhotzApp.init() — check GhotzApp.response.success.regstr, login, or license.response.success.static bool g_auth_ok = false;
void OnLoginClick(const char* user, const char* pass) {
if (!g_auth_ok) {
GhotzApp.init();
if (!GhotzApp.response.success) {
ShowError(GhotzApp.response.message);
return;
}
}
GhotzApp.login(user, pass);
g_auth_ok = GhotzApp.response.success;
if (g_auth_ok) EnableFeatures();
}
Let the SDK send HWID automatically. Enable HWID lock in dashboard when ready for production.
login before init → always fails.keyghotz.space/api/1.2/.