To Register a Product With a UPI Code

Products that use Autodesk's integrated UPI must specify the path to the application's UPI XML file.

Example:
#include <Chronicle/Chronicle.h>

const wchar_t *path = L"C:\\Program Files (x86)\\Autodesk\\Autodesk Design Review\\UPI\\upiconfig.xml";
Chronicle::Waypoint *waypoint = Chronicle::Facade::Waypoints::registerProductFromUPIConfigFile(path);

// Report the product language by specifying a valid IETF BCP 47 language tag

Chronicle::Facade::Waypoints::productLanguage(waypoint, L"en-US");

// Although not required, it is recommended to specify the human-readable product name

waypoint->addAttribute(Chronicle::Metadata::toString(Chronicle::Metadata::ProductName), L"Autodesk Design Review");
Chronicle::Error err = Chronicle::Facade::waypointReached(waypoint);