#include "test.h" #include JNIEXPORT void JNICALL Java_test_top (JNIEnv *env, jclass jc, jint hwnd) { HWND hWnd = (HWND)hwnd; SetWindowPos(hWnd, (HWND)HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); }