Inside Agent_OnLoad method:
jvmtiEnv* jvmti; /* Get JVMTI environment */ vm->GetEnv(reinterpret_cast<void **>(&jvmti), JVMTI_VERSION);