The following functions are defined in native.h and nativcom.h.
AddModuleResourceClassSource | Notifies the virtual machine of a Microsoft® Win32® resource containing class files. |
AddPathClassSource | Adds a path to Microsoft virtual machine's internal class path. |
ArrayAlloc | Creates an array of primitive type objects. |
ArrayCopy | Copies an array using the Java System.ArrayCopy method. |
c2jhook_getexposingclass | Returns the class defining the interface method (Nativcom.h). |
c2jhook_getsizeofuserdata | Gets size of the user data in the MCCustomMethod descriptor (Nativcom.h). |
c2jhook_getuserdata | Gets writable pointer to the user data in the MCCustomMethod descriptor (Nativcom.h). |
Class_CopyConstantPoolItem | Copies a constant pool item. |
Class_GetAttributes | Returns a combination of the ACC_XXX flags for a class as they appear in the Java class file. |
Class_GetConstantPoolCount | Gets a constant pool count. |
Class_GetField | Returns a handle to a field explicitly specified by name. |
Class_GetFieldByIndex | Returns a handle to a field specified by index. |
Class_GetFieldCount | Retrieves the total number of fields in the class, including super and static fields. |
Class_GetInterface | Retrieves an interface specified by index. |
Class_GetInterfaceCount | Retrieves the total number of interfaces that are implemented by the class. |
Class_GetMethod | Returns a handle to a method explicitly specified by name. |
Class_GetMethodByIndex | Returns a handle to a method specified by index. |
Class_GetMethodCount | Retrieves the total number of methods in the class, including super and static methods. |
Class_GetName | Retrieves the class name. |
Class_GetSuperS | Retrieves the superclass name. |
ClassArrayAlloc | Creates an array of objects given the class signature. |
ClassArrayAlloc2 | Creates an array of objects given the class address; added as of versions 2925 through 3167 of the Microsoft virtual machine. |
ClassClassToClassObject | Returns a java.lang.Class object from a ClassClass pointer. |
ClassObjectToClassClass | Returns a ClassClass pointer from a java.lang.Class object. |
convert_IUnknown_to_Java_Object | Returns a Java callable wrapper that can be used to access the specified interface pointer (Nativcom.h). |
convert_IUnknown_to_Java_Object2 | Returns a Java callable wrapper that can be used to access the specified interface pointer (Nativcom.h). |
convert_Java_Object_to_Iunknown | Returns an interface pointer usable from the current COM context (Nativcom.h). |
convert_ptr_to_jcdw | Returns a data wrapper object of the supplied Class type that points at the supplied data pointer (Nativcom.h). |
do_execute_java_method | Calls a Java method or constructor. |
do_execute_java_method64 | Calls a Java method or constructor and returns a 64-bit integer. |
do_execute_java_methodV | Calls a Java method or constructor using a va_list as a parameter instead of ellipses. |
exceptionClear | Clears any pending exceptions. |
exceptionDescribe | Invokes printStackTrace on the pending exception. |
exceptionOccurred | Determines if an exception has occurred in the called Java method without exiting the native code. |
exceptionSet | Sets a pending exception. |
execute_java_constructor | Allocates a new Java object and invokes a constructor. |
execute_java_constructor_method | Invokes a Java constructor method. |
execute_java_constructor_methodV | Calls a Java constructor method using a va_list as a parameter instead of ellipses. |
execute_java_constructorV | Allocates a new Java object and invokes a constructor. This method accepts a va_list argument list as a parameter instead of ellipses. |
execute_java_dynamic_method | Invokes a Java dynamic method. |
execute_java_dynamic_method64 | Invokes a Java dynamic method and returns a 64-bit integer. |
execute_java_dynamic_methodV | Invokes a Java dynamic method using a va_list as a parameter instead of ellipses. |
execute_java_interface_method | Invokes a Java interface method. |
execute_java_interface_method64 | Invokes a Java interface method and returns a 64-bit integer. |
execute_java_interface_methodV | Invokes a Java interface method using a va_list as a parameter instead of ellipses. |
execute_java_static_method | Invokes a Java static method. |
execute_java_static_method64 | Invokes a Java static method and returns a 64-bit integer. |
execute_java_static_methodV | Invokes a Java static method using a va_list as a parameter instead of ellipses. |
field_GetOffset | Returns the offset of dynamic fields in the class. |
Field_GetStaticPtr | Returns a pointer to the static data. |
field_GetXXX | Retrieves the value of the specified field. |
field_SetXXX | Sets the value of the specified field. |
findClass | Retrieves a class object pointer for a named class. |
findClassEx | Retrieves a class object pointer according to specified flags. |
FindClassFromClass | Similar to findClassEx, but adds a parameter for ClassLoader lookups; added as of versions 2925 through 3167 of the Microsoft virtual machine. |
GCDisable | Increments the block count and disables garbage collection. |
GCDisableCount | Returns the current GCDisable count |
GCDisableMultiple | Increments the block count a specified number of times. |
GCEnable | Decrements the block count and enables garbage collection by the Microsoft VM. |
GCEnableCompletely | Decrements the block count to 0 (zero) and enables garbage collection by the virtual machine. |
GCFramePop | Restores the GCFrame with current values for members of the structure. |
GCFramePush | Informs the Microsoft VM garbage collector of a GCFrame to track. |
GCFreeHandle | Frees a strong pointer originally obtained using GCNewHandle. |
GCFreePtr | Frees a pointer originally allocated using GCGetPtr. |
GCGetPtr | Allocates a weak pointer for an object and updates it when garbage collection occurs. |
GCNewHandle | Creates a strong pointer to an object. |
GCSetObjectReferenceForHandle | Garbage collection-safe method for updating contents of a handle. |
GCSetObjectReferenceForObject | Garbage collection-safe method for updating the fields in an object. |
get_methodblock | Retrieves a pointer to a method block structure containing the class name, method name, and parameter and return types of a method. |
GetCurrentJavaTimeMillis | Returns the same result as defined by java.lang.System.currentTimeMillis. |
GetNativeMethodCallersClass | Determines the class type of the caller. |
GetNativeMethodCallersMethodInfo | Gets information about the caller's method. |
GetNativeMethodsClass | Retrieves information about a native method's class; added as of versions 2925 through 3167 of the Microsoft virtual machine. |
GetNativeMethodsMethodInfo | Retrieves information about a native method added as of versions 2925 through 3167 of the Microsoft virtual machine. |
getPendingException | Retrieves a pending exception. |
HresultFromException | Creates an HRESULT return type from a Java exception object. |
ImplementsInterface | Determines if a class type implements the interface represented by the second class type. |
is_instance_of | Determines if an object is an instance of a specified class type. |
is_subclass_of | Determines if a class is a subclass of the second specified class type. |
isInstanceOf | Determines if a specified Java object is an instance of a particular class. |
j2chook_getmethodblock | Returns the method block of the target method (Nativcom.h). |
j2chook_getsizeofuserdata | Gets the size of the user data in the MCCustomMethod descriptor (Nativcom.h). |
j2chook_getuserdata | Gets writable pointer to the user data in the MCCustomMethod descriptor (Nativcom.h). |
j2chook_getvtblindex | Gets the vtable index of the target method (Nativcom.h). |
JavaString2Cstring | Copies the characters of the String object into a C string buffer. |
javaStringLength | Retrieves the length of the Java String object. |
javaStringLengthAsCString | Retrieves the length of the Java String object as a C string. |
javaStringStart | Returns a temporary pointer to the first character of the Java String object. |
jcdw_java_owned | Returns true if the Microsoft VM frees the non—garbage-collected heap memory that this data wrapper contains when the data wrapper is garbage collected (Nativcom.h). |
jcdw_memory_freed_on_gc | Returns true if the virtual machine allocated the non—garbage-collected heap memory contained in the data wrapper (Nativcom.h). |
jcdwClassOffsetOf | Returns the byte offset within the non—garbage-collected heap memory to the specified field name from the supplied java.lang.Class object (Nativcom.h). |
jcdwClassSizeOf | Returns the size of the non-garbage-collected heap memory used by instances of the supplied java.lang.Class object (Nativcom.h). |
jcdwGetData | Returns the data pointer to the non—garbage-collected heap memory contained in the data wrapper object (Nativcom.h). |
jcdwNewData | Replaces the data pointer contained in the data wrapper with a new quantity of heap memory that is not garbage-collected (Nativcom.h). |
jcdwOffsetOf | Returns the byte offset within the non-garbage-collected heap memory to the specified field name (Nativcom.h). |
jcdwPropagateToJava | Propagates field values from the object's associated native memory to the Java object. |
jcdwPropagateToNative | Propagates field values from the Java object to the object's associated native memory. |
jcdwSetData | Replaces the data pointer that this data wrapper represents with the specified data pointer (Nativcom.h). |
jcdwSizeOf | Returns the size of the non—garbage-collected heap memory contained in the data wrapper object (Nativcom.h). |
jio_snprintf | Prints to a string with a buffer limit. |
jio_vsnprintf | Prints to a string with a buffer limit using a va_list macro for arguments. |
MakeByteString | Create and return a new array of bytes initialized from the C string. |
makeJavaString | Returns a string formatted as a Java String object. |
MakeJavaStringFromUtf8 | Creates a new Java String object, initialized from a null-terminated, UTF8-formatted, C string. |
MakeJavaStringW | Constructs a Java string from a Unicode C string. |
MarshalCallToJavaObjectHostThread | Thread marshaling helper that re-executes the RNI method on the apartment thread for the supplied thread ID for the supplied Java object (Nativcom.h). |
MarshalCallToJavaThreadId | Thread marshaling helper that re-executes the RNI method on the supplied thread ID for the supplied Java object (Nativcom.h). |
Member_GetAttributes | Returns a combination of the ACC_XXX flags for a field or method, as they appear in the Java class file. |
Member_GetClass | Retrieves the name of the class that the field or method is implemented in. |
Member_GetName | Retrieves the member name. |
Member_GetSignature | Retrieves the signature of the field or method. |
MonitorEnter | Enters a synchronization object. |
MonitorExit | Exits a synchronization object. |
MonitorNotify | Wakes up a single thread that is waiting on this object's monitor. |
MonitorNotifyAll | Wakes up all threads that are waiting on this object's monitor. |
MonitorWait | Waits to be notified by another thread of a change in this object. |
Object_GetClass | Retrieves the class that the object points to. |
PrepareThreadForJava | Thread entry function for calls into the Microsoft VM. |
PrepareThreadForJavaEx | Extended thread entry function for calls into the Microsoft VM. |
RNIGetCompatibleVersion | Exported by the DLL to allow the Microsoft VM to check compatibility. |
SignalError | Creates a Java exception object, which is thrown when it returns from the native code. |
SignalErrorHResult | Creates a Java exception object from an HRESULT return type. |
SignalErrorPrintf | Creates a Java exception object and specifies format string for exception description to be printed when thrown. |
Thread_IsInterrupted | Checks to see if the current thread is interrupted and optionally resets the interrupt flag. |
UnprepareThreadForJava | Thread exit function for calls into the Microsoft VM. |