char * GetMyinfoVar(char *var) { unsigned int idx = NULL; if (strcmp(var, "name") == 0) idx = cinfo->name; else if (strcmp(var, "description") == 0) idx = cinfo->description; else if (strcmp(var, "author") == 0) idx = cinfo->author; else if (strcmp(var, "version") == 0) idx = cinfo->version; else if (strcmp(var, "url") == 0) idx = cinfo->url; char *value = new char[512]; IPluginContext *ctx = g_Plugin->GetDefaultContext(); ctx->LocalToString(idx, (char **)&value); return value; }