Microsoft SDK for Java

JAVASYSTEMEXITPROC

This structure provides the opportunity for custom shutdown logic.

void JAVASYSTEMEXITPROC(int ExitCode);



Members

ExitCode The exit code passed to System.exit, by which the Microsoft VM invokes JAVASYSTEMEXITPROC.

Remarks

JAVASYSTEMEXITPROC is called if the Java application calls java.lang.System.exit. JAVASYSTEMEXITPROC is not called if the Java application drops out of its main method and returns to the Microsoft VM. If this function returns, the Microsoft® Win32® ExitProcess function is called; application shutdown cannot be canceled. Multiple threads may call System.exit at once; the Microsoft VM does not serialize calls to this function. The function is not called in a mode where Raw Native Interface (RNI) functions can be directly used. PrepareThreadForJava can be used, however, to enter a mode where RNI can be used.

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