2021-04-24 06:17 PM - last edited on 2021-09-14 09:39 AM by Noemi Balogh
Solved! Go to Solution.
2021-04-26 04:22 PM
API_GetParamsType getParams; BNZeroMemory (&getParams, sizeof (API_GetParamsType)); err = ACAPI_Goodies (APIAny_GetActParametersID, &getParams); if (err == NoError) { UInt32 nParams = BMGetHandleSize ((GSHandle) getParams.params) / sizeof (API_AddParType); for (UInt32 ii = 0; ii < nParams; ++ii) { const API_AddParType& actParam = (*getParams.params)[ii]; DBPrintf ("%-3u. param: \"%s\" (%s)\n", ii, actParam.name, (actParam.flags & API_ParFlg_Disabled) != 0 ? "disabled" : ""); } } ACAPI_Goodies (APIAny_CloseParametersID); ACAPI_DisposeAddParHdl (&getParams.params);
2021-04-26 04:22 PM
API_GetParamsType getParams; BNZeroMemory (&getParams, sizeof (API_GetParamsType)); err = ACAPI_Goodies (APIAny_GetActParametersID, &getParams); if (err == NoError) { UInt32 nParams = BMGetHandleSize ((GSHandle) getParams.params) / sizeof (API_AddParType); for (UInt32 ii = 0; ii < nParams; ++ii) { const API_AddParType& actParam = (*getParams.params)[ii]; DBPrintf ("%-3u. param: \"%s\" (%s)\n", ii, actParam.name, (actParam.flags & API_ParFlg_Disabled) != 0 ? "disabled" : ""); } } ACAPI_Goodies (APIAny_CloseParametersID); ACAPI_DisposeAddParHdl (&getParams.params);
2021-04-26 06:41 PM
UInt32 nParams = BMGetHandleSize ((GSHandle) getParams.params) / sizeof (API_AddParType);was exactly what I was looking for. Don't know how I missed it but I did.