Microsoft SDK for Java

PrepareThreadForJavaEx

Extended thread entry function for calls into the Microsoft VM.

Syntax

BOOL __cdecl PrepareThreadForJavaEx(PVOID pThreadEntryFrame, DWORD dwFlags);

Parameters

pThreadEntryFrame An instance of a thread entry frame. This pointer is maintained by the Microsoft VM and the same pointer should be used in UnprepareThreadForJava when exiting the Microsoft VM.
dwFlags Flags.

Remarks

Allocate ThreadEntryFrames on the associated thread's stack rather than in the heap. The Microsoft virtual machine treats the ThreadEntryFrame as a stack frame on the associated thread's stack. All other stack frames are internally allocated on the associated thread's stack. Some code assumes that stack frame addresses are in monotonically increasing order. Linking in a ThreadEntryFrame that violates that assumption may cause problems. The ThreadEntryFrame should be a local variable in the method that calls PrepareThreadForJavaEx.

The dwFlags parameter has the PTFJ_DONTINSTALLSTANDARDSECURITY bit defined. If this flag is set, the default security manager is not installed for the first caller that initializes the VM.

PrepareThreadForJavaEx added as of versions 2437 through 2925 of the Microsoft virtual machine.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.