Top


定義場所(file name)

jdk/src/share/bin/main.c

説明(description)

(この関数は #ifdef JAVAW である場合用. #ifdef JAVAW でない時には代わりに main() が定義される.)

/*
 * Entry point.
 */
#ifdef JAVAW

char **__initenv;

名前(function name)

int WINAPI
WinMain(HINSTANCE inst, HINSTANCE previnst, LPSTR cmdline, int cmdshow)
{

本体部(body)

  {- -------------------------------------------
  (1) (変数宣言など)
      ---------------------------------------- -}

        int margc;
        char** margv;
        const jboolean const_javaw = JNI_TRUE;

        __initenv = _environ;
        margc = __argc;
        margv = __argv;


    #else /* JAVAW */
    ...
    #endif /* JAVAW */

  {- -------------------------------------------
  (1) JLI_Launch() を呼び出すだけ.
      ---------------------------------------- -}

        return JLI_Launch(margc, margv,
                       sizeof(const_jargs) / sizeof(char *), const_jargs,
                       sizeof(const_appclasspath) / sizeof(char *), const_appclasspath,
                       FULL_VERSION,
                       DOT_VERSION,
                       (const_progname != NULL) ? const_progname : *margv,
                       (const_launcher != NULL) ? const_launcher : *margv,
                       (const_jargs != NULL) ? JNI_TRUE : JNI_FALSE,
                       const_cpwildcard, const_javaw, const_ergo_class);
    }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.