Working with MS VM
 
 

Microsoft VM    PreviousVMNext
Invocation Interfaces     Previous VM Next

 


IJavaExecute2

// IUnknown methods
HRESULT QueryInterface(REFIID riid, LPVOID *ppv);
ULONG   AddRef();
ULONG   Release();

// IJavaExecute methods
HRESULT GetDefaultClassPath(LPOLESTR *ppszClassPath);
HRESULT Execute(LPJAVAEXECUTEINFO pjei, LPERRORINFO *pperrorinfo);

// IJavaExecute2 methods
HRESULT SetSystemProperties(LPENUMJAVAPROPERTY penum);
HRESULT SetClassSource(DWORD dwType, LPVOID pData, DWORD dwLen);

See also IJavaExecute.

IJavaExecute2::SetSystemProperties

HRESULT SetSystemProperties(LPENUMJAVAPROPERTY pEnumJavaProperty)

Sets property values for java.lang.System.

ParameterDescription
pEnumJavaProperty Enumeration object that produces a set of key/value pairs. The SetSystemProperties method will enumerate through the entire collection and map each key to the associated value.

IJavaExecute2::SetClassSource

HRESULT SetClassSource(DWORD dwType, LPVOID pData, DWORD dwLen);

Inserts a special source of classes into the class path. These elements are searched before any other elements in the class path.

ParameterDescription
dwType Type of class source. The following types are recognized.
CLASS_SOURCE_TYPE_MODULERESOURCES
Allows classes to be stored within a Microsoft® Win32® resource.
CLASS_SOURCE_TYPE_ISTORAGE
Not currently implemented.

These values are defined in Javaexec.h

pData Address of an information structure whose format is type dependent.

For CLASS_SOURCE_TYPE_MODULERESOURCES, this is an address of a JAVACLASSRESOURCEINFO structure.

dwLen Size in bytes of the structure pointed to by pData.

Top © 1998 Microsoft Corporation. All rights reserved. Terms of use.