Guide
C++ / ImGui Integration
Full working example for integrating Authorized into a C++ application with an ImGui login screen.
Example Repository
github.com/authorized-lol/C-ImGui-Example →Clone this repo for a complete working ImGui login screen with license authentication.
Initialize
cpp
// Initialize with license key and HWID
std::string session = Authorized.Init(
"your_api_key",
license_key_input,
GetHWID()
);Download a File
cpp
// Download a file by its ID from the dashboard
bool ok = Authorized.DownloadFile(
"abc-123-file-id",
"C:\\Users\\User\\AppData\\Local\\MyApp\\update.exe"
);
if (ok) {
// Launch or load the file
ShellExecuteA(NULL, "open", dest_path.c_str(), NULL, NULL, SW_SHOW);
}Heartbeat
cpp
// Call in a background thread every 5 minutes
std::thread([&]() {
while (running) {
Authorized.Heartbeat(api_key, session_token);
std::this_thread::sleep_for(std::chrono::minutes(5));
}
}).detach();Note:The C++ ImGui example is available to VIP subscribers. Upgrade from your dashboard to access it.