The purpose of this function is to retrieve values that have been stored using MSJavaSetObjectKey; developers should read the documentation of that API in order to understand more about why this one exists and how it should be used.

void *MSJavaGetObjectKey(JNIEnv *jni, jobject object, MSJavaObjectKey key);
Parameter Description
jni JNI environment used to interpret object argument.
object JNI reference to object storing the keyed value.
key Opaque pointer to use as a lookup key for value.
return Opaque pointer stored on this object for this key.
JNIEnv *jni = /* ... */;
jobject object = /* ... */;
MSJavaObjectKey key = /* ... */;

void *value = MSJavaGetObjectKey(jni, object, &key);