Documentation · SoftActivate Licensing

Native API reference

The native SDK surface lives in two public headers - softactivate/sws.h (transport and errors) and softactivate/sws_licensing.h (the licensing domain). Both expose a stable C-style ABI (sws_* interface structs plus extern "C" factories) wrapped by header-only C++ RAII classes in the sws::licensing namespace. The C++ quickstart shows the canonical usage; the statuses reference covers every result you can get back.

The headers themselves are the reference: the C++ surface is header-only, so every class, method, and constant is right there in the SDK package you install. Landmarks:

  • sws::licensing::client - the wrapper you'll actually use: create, configure (vendor id, license key, the optional set_product_id product binding, trusted roots), validate, deactivate, and the offline activation pair.
  • sws::licensing::license / license_request - the license artifact (serialize, dates, ids, sandbox and timestamp state, plus the product-binding readers: get_license_scope / get_license_scope_value(path) and get_license_metadata / get_license_metadata_value(path) — dot-separated paths, integer segments index arrays) and the offline-request artifact.
  • sws_licensing_client and friends - the underlying ABI interfaces, for integrations that prefer the low-level form.
  • sws.h constants - SWS_OK/SWS_E* call results and the SWS_LICENSE_STATUS_* table.