//////////////////// win_version.java ////////////////////
class win_version
{
public static void main(String args[])
{
System.loadLibrary("win_version");
windowsVersion();
}
public static native void windowsVersion();
}
////////////////////////////////////////////////////////////
//////////////////// win_0005fversion.h ////////////////////
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class win_0005fversion */
#ifndef _Included_win_0005fversion
#define _Included_win_0005fversion
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: win_0005fversion
* Method: windowsVersion
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_win_1version_windowsVersion
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif
////////////////////////////////////////////////////////////
//////////////////// win_version.cpp ////////////////////
#include <windows.h>
#include "win_0005fversion.h"
JNIEXPORT void JNICALL Java_win_1version_windowsVersion(JNIEnv *jni_env, jclass j_class)
{
ShellAbout(NULL, "Version Info Dialog from Java!", "Version Info Dialog from Java!", NULL);
}
////////////////////////////////////////////////////////////
Source is here. (ZIP Format, 24380Byte, Shift-JIS)