Initialize TAPI
The following code example demonstrates creation of the TAPI object.
const auto result = ITTAPI::Initialize();
if (result != S_OK) {
switch (result) {
case S_FALSE: {
std::cerr << "TAPI has already been initialized.\n";
} break;
[[fallthrough]]
case E_OUTOFMEMORY: {
std::cerr << "Insufficient memory exists to perform the operation.\n";
}
default: {
// TODO: Handle unrecoverable error here
}
}
}
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for