EXE & C++ integration

Windows .exe with Ghotz Auth at https://keyghotz.space/api/1.2/.

C++ manual — easy step-by-step → Add with AI (prompt)

↓ Download C++ SDK (ZIP) — ready-made ghotz_auth + example main.cpp.

← Full tutorial · DLL guide

1. Dashboard

  1. Create app → copy name, ownerid, set version (e.g. 1.0).
  2. Enable Login, Register, and/or License in Function Management.
  3. Create a test license key.

2. Files to add (Visual Studio)

Download ghotz-cpp.zip or browse ghotz-cpp/. Included files:

FilePurpose
include/ghotz_auth.hMain API class
src/ghotz_auth.cppHTTP (WinHTTP)
include/ghotz_config.hYour app name, ownerid, version
example/main.cppSample login / register / license

3. Credentials & URL

ghotz::Auth app("YOUR_APP", "YOUR_OWNERID", "1.0", "https://keyghotz.space/api/1.2/");
// Or use ghotz_config.h — see downloads/ghotz-cpp/README.txt

Search the project for any old host and replace with keyghotz.space.

4. Required call order

init() — always first

app.init();
if (!app.response.success) {
    std::cout << app.response.message;
    exit(1);
}

Register (new user + license key)

app.regstr(username, password, licenseKey, ghotz::Auth::hwid());

Login (returning user)

app.login(username, password, ghotz::Auth::hwid());

License only (key auth)

app.license(licenseKey, ghotz::Auth::hwid());

On success

if (app.response.success) {
    // Start your program
}

5. Extra API methods

MethodPurpose
GhotzApp.var("x")App variable from dashboard
GhotzApp.log("msg")Send log line
GhotzApp.webhook(id, params)Trigger webhook
GhotzApp.checkblack()Blacklist check

6. Dear ImGui (login window)

Typical flow for a PC tool with ImGui:

  1. Before your main menu, show a login window with username / password / license fields.
  2. On button click: init() then login(), regstr(), or license().
  3. Only open the main ImGui UI when response.success is true; show response.message on failure.
  4. Run HTTP on startup or a worker thread — do not freeze ImGui::Render during requests.

In the dashboard use Manage Apps → Copy AI prompt for a ready-made prompt for Cursor/ChatGPT.

7. Build tips

DLL → · C# → · API →