blob: bd5ea9b96723703a44848cc48c6eead07f289950 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
#include "swt.h"
#include "os_structs.h"
#define OS_NATIVE(func) Java_org_eclipse_swt_internal_win32_OS_##func
#ifndef NO_AbortDoc
JNIEXPORT jint JNICALL OS_NATIVE(AbortDoc)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "AbortDoc\n")
rc = (jint)AbortDoc((HDC)arg0);
NATIVE_EXIT(env, that, "AbortDoc\n")
return rc;
}
#endif
#ifndef NO_ActivateKeyboardLayout
JNIEXPORT jint JNICALL OS_NATIVE(ActivateKeyboardLayout)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc;
NATIVE_ENTER(env, that, "ActivateKeyboardLayout\n")
rc = (jint)ActivateKeyboardLayout((HKL)arg0, arg1);
NATIVE_EXIT(env, that, "ActivateKeyboardLayout\n")
return rc;
}
#endif
#ifndef NO_AdjustWindowRectEx
JNIEXPORT jboolean JNICALL OS_NATIVE(AdjustWindowRectEx)
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jboolean arg2, jint arg3)
{
RECT _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "AdjustWindowRectEx\n")
if (arg0) lparg0 = getRECTFields(env, arg0, &_arg0);
rc = (jboolean)AdjustWindowRectEx(lparg0, arg1, arg2, arg3);
if (arg0) setRECTFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "AdjustWindowRectEx\n")
return rc;
}
#endif
#ifndef NO_Arc
JNIEXPORT jboolean JNICALL OS_NATIVE(Arc)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8)
{
jboolean rc;
NATIVE_ENTER(env, that, "Arc\n")
rc = (jboolean)Arc((HDC)arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
NATIVE_EXIT(env, that, "Arc\n")
return rc;
}
#endif
#ifndef NO_BeginDeferWindowPos
JNIEXPORT jint JNICALL OS_NATIVE(BeginDeferWindowPos)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "BeginDeferWindowPos\n")
rc = (jint)BeginDeferWindowPos(arg0);
NATIVE_EXIT(env, that, "BeginDeferWindowPos\n")
return rc;
}
#endif
#ifndef NO_BeginPaint
JNIEXPORT jint JNICALL OS_NATIVE(BeginPaint)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
PAINTSTRUCT _arg1, *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "BeginPaint\n")
if (arg1) lparg1 = getPAINTSTRUCTFields(env, arg1, &_arg1);
rc = (jint)BeginPaint((HWND)arg0, lparg1);
if (arg1) setPAINTSTRUCTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "BeginPaint\n")
return rc;
}
#endif
#ifndef NO_BitBlt
JNIEXPORT jboolean JNICALL OS_NATIVE(BitBlt)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8)
{
jboolean rc;
NATIVE_ENTER(env, that, "BitBlt\n")
rc = (jboolean)BitBlt((HDC)arg0, arg1, arg2, arg3, arg4, (HDC)arg5, arg6, arg7, arg8);
NATIVE_EXIT(env, that, "BitBlt\n")
return rc;
}
#endif
#ifndef NO_BringWindowToTop
JNIEXPORT jboolean JNICALL OS_NATIVE(BringWindowToTop)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "BringWindowToTop\n")
rc = (jboolean)BringWindowToTop((HWND)arg0);
NATIVE_EXIT(env, that, "BringWindowToTop\n")
return rc;
}
#endif
#ifndef NO_CallNextHookEx
JNIEXPORT jint JNICALL OS_NATIVE(CallNextHookEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "CallNextHookEx\n")
rc = (jint)CallNextHookEx((HHOOK)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
NATIVE_EXIT(env, that, "CallNextHookEx\n")
return rc;
}
#endif
#ifndef NO_CallWindowProcA
JNIEXPORT jint JNICALL OS_NATIVE(CallWindowProcA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc;
NATIVE_ENTER(env, that, "CallWindowProcA\n")
rc = (jint)CallWindowProcA((WNDPROC)arg0, (HWND)arg1, arg2, arg3, arg4);
NATIVE_EXIT(env, that, "CallWindowProcA\n")
return rc;
}
#endif
#ifndef NO_CallWindowProcW
JNIEXPORT jint JNICALL OS_NATIVE(CallWindowProcW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc;
NATIVE_ENTER(env, that, "CallWindowProcW\n")
rc = (jint)CallWindowProcW((WNDPROC)arg0, (HWND)arg1, arg2, arg3, arg4);
NATIVE_EXIT(env, that, "CallWindowProcW\n")
return rc;
}
#endif
#ifndef NO_CharLowerA
JNIEXPORT jshort JNICALL OS_NATIVE(CharLowerA)
(JNIEnv *env, jclass that, jshort arg0)
{
jshort rc;
NATIVE_ENTER(env, that, "CharLowerA\n")
rc = (jshort)CharLowerA((LPSTR)arg0);
NATIVE_EXIT(env, that, "CharLowerA\n")
return rc;
}
#endif
#ifndef NO_CharLowerW
JNIEXPORT jshort JNICALL OS_NATIVE(CharLowerW)
(JNIEnv *env, jclass that, jshort arg0)
{
jshort rc;
NATIVE_ENTER(env, that, "CharLowerW\n")
rc = (jshort)CharLowerW((LPWSTR)arg0);
NATIVE_EXIT(env, that, "CharLowerW\n")
return rc;
}
#endif
#ifndef NO_CharUpperA
JNIEXPORT jshort JNICALL OS_NATIVE(CharUpperA)
(JNIEnv *env, jclass that, jshort arg0)
{
jshort rc;
NATIVE_ENTER(env, that, "CharUpperA\n")
rc = (jshort)CharUpperA((LPSTR)arg0);
NATIVE_EXIT(env, that, "CharUpperA\n")
return rc;
}
#endif
#ifndef NO_CharUpperW
JNIEXPORT jshort JNICALL OS_NATIVE(CharUpperW)
(JNIEnv *env, jclass that, jshort arg0)
{
jshort rc;
NATIVE_ENTER(env, that, "CharUpperW\n")
rc = (jshort)CharUpperW((LPWSTR)arg0);
NATIVE_EXIT(env, that, "CharUpperW\n")
return rc;
}
#endif
#ifndef NO_CheckMenuItem
JNIEXPORT jboolean JNICALL OS_NATIVE(CheckMenuItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jboolean rc;
NATIVE_ENTER(env, that, "CheckMenuItem\n")
rc = (jboolean)CheckMenuItem((HMENU)arg0, (UINT)arg1, (UINT)arg2);
NATIVE_EXIT(env, that, "CheckMenuItem\n")
return rc;
}
#endif
#ifndef NO_ChooseColorA
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseColorA)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSECOLOR _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ChooseColorA\n")
if (arg0) lparg0 = getCHOOSECOLORFields(env, arg0, &_arg0);
rc = (jboolean)ChooseColorA(lparg0);
if (arg0) setCHOOSECOLORFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "ChooseColorA\n")
return rc;
}
#endif
#ifndef NO_ChooseColorW
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseColorW)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSECOLOR _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ChooseColorW\n")
if (arg0) lparg0 = getCHOOSECOLORFields(env, arg0, &_arg0);
rc = (jboolean)ChooseColorW((LPCHOOSECOLORW)lparg0);
if (arg0) setCHOOSECOLORFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "ChooseColorW\n")
return rc;
}
#endif
#ifndef NO_ChooseFontA
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseFontA)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSEFONT _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ChooseFontA\n")
if (arg0) lparg0 = getCHOOSEFONTFields(env, arg0, &_arg0);
rc = (jboolean)ChooseFontA(lparg0);
if (arg0) setCHOOSEFONTFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "ChooseFontA\n")
return rc;
}
#endif
#ifndef NO_ChooseFontW
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseFontW)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSEFONT _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ChooseFontW\n")
if (arg0) lparg0 = getCHOOSEFONTFields(env, arg0, &_arg0);
rc = (jboolean)ChooseFontW((LPCHOOSEFONTW)lparg0);
if (arg0) setCHOOSEFONTFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "ChooseFontW\n")
return rc;
}
#endif
#ifndef NO_ClientToScreen
JNIEXPORT jboolean JNICALL OS_NATIVE(ClientToScreen)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
POINT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ClientToScreen\n")
if (arg1) lparg1 = getPOINTFields(env, arg1, &_arg1);
rc = (jboolean)ClientToScreen((HWND)arg0, lparg1);
if (arg1) setPOINTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "ClientToScreen\n")
return rc;
}
#endif
#ifndef NO_CloseClipboard
JNIEXPORT jboolean JNICALL OS_NATIVE(CloseClipboard)
(JNIEnv *env, jclass that)
{
jboolean rc;
NATIVE_ENTER(env, that, "CloseClipboard\n")
rc = (jboolean)CloseClipboard();
NATIVE_EXIT(env, that, "CloseClipboard\n")
return rc;
}
#endif
#ifndef NO_CombineRgn
JNIEXPORT jint JNICALL OS_NATIVE(CombineRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "CombineRgn\n")
rc = (jint)CombineRgn((HRGN)arg0, (HRGN)arg1, (HRGN)arg2, arg3);
NATIVE_EXIT(env, that, "CombineRgn\n")
return rc;
}
#endif
#ifndef NO_CommDlgExtendedError
JNIEXPORT jint JNICALL OS_NATIVE(CommDlgExtendedError)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "CommDlgExtendedError\n")
rc = (jint)CommDlgExtendedError();
NATIVE_EXIT(env, that, "CommDlgExtendedError\n")
return rc;
}
#endif
#ifndef NO_CommandBar_1AddAdornments
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1AddAdornments)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jboolean rc;
NATIVE_ENTER(env, that, "CommandBar_1AddAdornments\n")
rc = (jboolean)CommandBar_AddAdornments((HWND)arg0, arg1, arg2);
NATIVE_EXIT(env, that, "CommandBar_1AddAdornments\n")
return rc;
}
#endif
#ifndef NO_CommandBar_1Create
JNIEXPORT jint JNICALL OS_NATIVE(CommandBar_1Create)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc;
NATIVE_ENTER(env, that, "CommandBar_1Create\n")
rc = (jint)CommandBar_Create((HINSTANCE)arg0, (HWND)arg1, arg2);
NATIVE_EXIT(env, that, "CommandBar_1Create\n")
return rc;
}
#endif
#ifndef NO_CommandBar_1Destroy
JNIEXPORT void JNICALL OS_NATIVE(CommandBar_1Destroy)
(JNIEnv *env, jclass that, jint arg0)
{
NATIVE_ENTER(env, that, "CommandBar_1Destroy\n")
CommandBar_Destroy((HWND)arg0);
NATIVE_EXIT(env, that, "CommandBar_1Destroy\n")
}
#endif
#ifndef NO_CommandBar_1DrawMenuBar
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1DrawMenuBar)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jboolean rc;
NATIVE_ENTER(env, that, "CommandBar_1DrawMenuBar\n")
rc = (jboolean)CommandBar_DrawMenuBar((HWND)arg0, (WORD)arg1);
NATIVE_EXIT(env, that, "CommandBar_1DrawMenuBar\n")
return rc;
}
#endif
#ifndef NO_CommandBar_1Height
JNIEXPORT jint JNICALL OS_NATIVE(CommandBar_1Height)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "CommandBar_1Height\n")
rc = (jint)CommandBar_Height((HWND)arg0);
NATIVE_EXIT(env, that, "CommandBar_1Height\n")
return rc;
}
#endif
#ifndef NO_CommandBar_1InsertMenubarEx
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1InsertMenubarEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jboolean rc;
NATIVE_ENTER(env, that, "CommandBar_1InsertMenubarEx\n")
rc = (jboolean)CommandBar_InsertMenubarEx((HWND)arg0, (HINSTANCE)arg1, (LPTSTR)arg2, (WORD)arg3);
NATIVE_EXIT(env, that, "CommandBar_1InsertMenubarEx\n")
return rc;
}
#endif
#ifndef NO_CommandBar_1Show
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1Show)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
jboolean rc;
NATIVE_ENTER(env, that, "CommandBar_1Show\n")
rc = (jboolean)CommandBar_Show((HWND)arg0, (BOOL)arg1);
NATIVE_EXIT(env, that, "CommandBar_1Show\n")
return rc;
}
#endif
#ifndef NO_CopyImage
JNIEXPORT jint JNICALL OS_NATIVE(CopyImage)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc;
NATIVE_ENTER(env, that, "CopyImage\n")
rc = (jint)CopyImage((HANDLE)arg0, arg1, arg2, arg3, arg4);
NATIVE_EXIT(env, that, "CopyImage\n")
return rc;
}
#endif
#ifndef NO_CreateAcceleratorTableA
JNIEXPORT jint JNICALL OS_NATIVE(CreateAcceleratorTableA)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1)
{
jbyte *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateAcceleratorTableA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)CreateAcceleratorTableA((LPACCEL)lparg0, arg1);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
NATIVE_EXIT(env, that, "CreateAcceleratorTableA\n")
return rc;
}
#endif
#ifndef NO_CreateAcceleratorTableW
JNIEXPORT jint JNICALL OS_NATIVE(CreateAcceleratorTableW)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1)
{
jbyte *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateAcceleratorTableW\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)CreateAcceleratorTableW((LPACCEL)lparg0, arg1);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
NATIVE_EXIT(env, that, "CreateAcceleratorTableW\n")
return rc;
}
#endif
#ifndef NO_CreateBitmap
JNIEXPORT jint JNICALL OS_NATIVE(CreateBitmap)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jbyteArray arg4)
{
jbyte *lparg4=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateBitmap\n")
if (arg4) lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL);
rc = (jint)CreateBitmap(arg0, arg1, arg2, arg3, (CONST VOID *)lparg4);
if (arg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0);
NATIVE_EXIT(env, that, "CreateBitmap\n")
return rc;
}
#endif
#ifndef NO_CreateCaret
JNIEXPORT jboolean JNICALL OS_NATIVE(CreateCaret)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jboolean rc;
NATIVE_ENTER(env, that, "CreateCaret\n")
rc = (jboolean)CreateCaret((HWND)arg0, (HBITMAP)arg1, arg2, arg3);
NATIVE_EXIT(env, that, "CreateCaret\n")
return rc;
}
#endif
#ifndef NO_CreateCompatibleBitmap
JNIEXPORT jint JNICALL OS_NATIVE(CreateCompatibleBitmap)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc;
NATIVE_ENTER(env, that, "CreateCompatibleBitmap\n")
rc = (jint)CreateCompatibleBitmap((HDC)arg0, arg1, arg2);
NATIVE_EXIT(env, that, "CreateCompatibleBitmap\n")
return rc;
}
#endif
#ifndef NO_CreateCompatibleDC
JNIEXPORT jint JNICALL OS_NATIVE(CreateCompatibleDC)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "CreateCompatibleDC\n")
rc = (jint)CreateCompatibleDC((HDC)arg0);
NATIVE_EXIT(env, that, "CreateCompatibleDC\n")
return rc;
}
#endif
#ifndef NO_CreateCursor
JNIEXPORT jint JNICALL OS_NATIVE(CreateCursor)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jbyteArray arg5, jbyteArray arg6)
{
jbyte *lparg5=NULL;
jbyte *lparg6=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateCursor\n")
if (arg5) lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL);
if (arg6) lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL);
rc = (jint)CreateCursor((HINSTANCE)arg0, arg1, arg2, arg3, arg4, (CONST VOID *)lparg5, (CONST VOID *)lparg6);
if (arg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0);
if (arg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0);
NATIVE_EXIT(env, that, "CreateCursor\n")
return rc;
}
#endif
#ifndef NO_CreateDCA
JNIEXPORT jint JNICALL OS_NATIVE(CreateDCA)
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1, jint arg2, jint arg3)
{
jbyte *lparg0=NULL;
jbyte *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateDCA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)CreateDCA((LPSTR)lparg0, (LPSTR)lparg1, (LPSTR)arg2, (CONST DEVMODE *)arg3);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "CreateDCA\n")
return rc;
}
#endif
#ifndef NO_CreateDCW
JNIEXPORT jint JNICALL OS_NATIVE(CreateDCW)
(JNIEnv *env, jclass that, jcharArray arg0, jcharArray arg1, jint arg2, jint arg3)
{
jchar *lparg0=NULL;
jchar *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateDCW\n")
if (arg0) lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL);
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
rc = (jint)CreateDCW((LPWSTR)lparg0, (LPWSTR)lparg1, (LPWSTR)arg2, (CONST DEVMODEW *)arg3);
if (arg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "CreateDCW\n")
return rc;
}
#endif
#ifndef NO_CreateDIBSection
JNIEXPORT jint JNICALL OS_NATIVE(CreateDIBSection)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jintArray arg3, jint arg4, jint arg5)
{
jbyte *lparg1=NULL;
jint *lparg3=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateDIBSection\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jint)CreateDIBSection((HDC)arg0, (BITMAPINFO *)lparg1, arg2, (VOID **)lparg3, (HANDLE)arg4, arg5);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "CreateDIBSection\n")
return rc;
}
#endif
#ifndef NO_CreateFontIndirectA__I
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectA__I)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "CreateFontIndirectA__I\n")
rc = (jint)CreateFontIndirectA((LPLOGFONTA)arg0);
NATIVE_EXIT(env, that, "CreateFontIndirectA__I\n")
return rc;
}
#endif
#ifndef NO_CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONTA_2
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONTA_2)
(JNIEnv *env, jclass that, jobject arg0)
{
LOGFONTA _arg0, *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONTA_2\n")
if (arg0) lparg0 = getLOGFONTAFields(env, arg0, &_arg0);
rc = (jint)CreateFontIndirectA(lparg0);
if (arg0) setLOGFONTAFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONTA_2\n")
return rc;
}
#endif
#ifndef NO_CreateFontIndirectW__I
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectW__I)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "CreateFontIndirectW__I\n")
rc = (jint)CreateFontIndirectW((LPLOGFONTW)arg0);
NATIVE_EXIT(env, that, "CreateFontIndirectW__I\n")
return rc;
}
#endif
#ifndef NO_CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONTW_2
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONTW_2)
(JNIEnv *env, jclass that, jobject arg0)
{
LOGFONTW _arg0, *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONTW_2\n")
if (arg0) lparg0 = getLOGFONTWFields(env, arg0, &_arg0);
rc = (jint)CreateFontIndirectW(lparg0);
if (arg0) setLOGFONTWFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONTW_2\n")
return rc;
}
#endif
#ifndef NO_CreateIconIndirect
JNIEXPORT jint JNICALL OS_NATIVE(CreateIconIndirect)
(JNIEnv *env, jclass that, jobject arg0)
{
ICONINFO _arg0, *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateIconIndirect\n")
if (arg0) lparg0 = getICONINFOFields(env, arg0, &_arg0);
rc = (jint)CreateIconIndirect(lparg0);
if (arg0) setICONINFOFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "CreateIconIndirect\n")
return rc;
}
#endif
#ifndef NO_CreateMenu
JNIEXPORT jint JNICALL OS_NATIVE(CreateMenu)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "CreateMenu\n")
rc = (jint)CreateMenu();
NATIVE_EXIT(env, that, "CreateMenu\n")
return rc;
}
#endif
#ifndef NO_CreatePalette
JNIEXPORT jint JNICALL OS_NATIVE(CreatePalette)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreatePalette\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)CreatePalette((LOGPALETTE *)lparg0);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
NATIVE_EXIT(env, that, "CreatePalette\n")
return rc;
}
#endif
#ifndef NO_CreatePatternBrush
JNIEXPORT jint JNICALL OS_NATIVE(CreatePatternBrush)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "CreatePatternBrush\n")
rc = (jint)CreatePatternBrush((HBITMAP)arg0);
NATIVE_EXIT(env, that, "CreatePatternBrush\n")
return rc;
}
#endif
#ifndef NO_CreatePen
JNIEXPORT jint JNICALL OS_NATIVE(CreatePen)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc;
NATIVE_ENTER(env, that, "CreatePen\n")
rc = (jint)CreatePen(arg0, arg1, (COLORREF)arg2);
NATIVE_EXIT(env, that, "CreatePen\n")
return rc;
}
#endif
#ifndef NO_CreatePopupMenu
JNIEXPORT jint JNICALL OS_NATIVE(CreatePopupMenu)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "CreatePopupMenu\n")
rc = (jint)CreatePopupMenu();
NATIVE_EXIT(env, that, "CreatePopupMenu\n")
return rc;
}
#endif
#ifndef NO_CreateRectRgn
JNIEXPORT jint JNICALL OS_NATIVE(CreateRectRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "CreateRectRgn\n")
rc = (jint)CreateRectRgn(arg0, arg1, arg2, arg3);
NATIVE_EXIT(env, that, "CreateRectRgn\n")
return rc;
}
#endif
#ifndef NO_CreateSolidBrush
JNIEXPORT jint JNICALL OS_NATIVE(CreateSolidBrush)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "CreateSolidBrush\n")
rc = (jint)CreateSolidBrush((COLORREF)arg0);
NATIVE_EXIT(env, that, "CreateSolidBrush\n")
return rc;
}
#endif
#ifndef NO_CreateWindowExA
JNIEXPORT jint JNICALL OS_NATIVE(CreateWindowExA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jbyteArray arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8, jint arg9, jint arg10, jobject arg11)
{
jbyte *lparg1=NULL;
jbyte *lparg2=NULL;
CREATESTRUCT _arg11, *lparg11=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateWindowExA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
if (arg2) lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL);
if (arg11) lparg11 = getCREATESTRUCTFields(env, arg11, &_arg11);
rc = (jint)CreateWindowExA(arg0, (LPSTR)lparg1, lparg2, arg3, arg4, arg5, arg6, arg7, (HWND)arg8, (HMENU)arg9, (HINSTANCE)arg10, lparg11);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
if (arg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0);
if (arg11) setCREATESTRUCTFields(env, arg11, lparg11);
NATIVE_EXIT(env, that, "CreateWindowExA\n")
return rc;
}
#endif
#ifndef NO_CreateWindowExW
JNIEXPORT jint JNICALL OS_NATIVE(CreateWindowExW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jcharArray arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8, jint arg9, jint arg10, jobject arg11)
{
jchar *lparg1=NULL;
jchar *lparg2=NULL;
CREATESTRUCT _arg11, *lparg11=NULL;
jint rc;
NATIVE_ENTER(env, that, "CreateWindowExW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
if (arg2) lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL);
if (arg11) lparg11 = getCREATESTRUCTFields(env, arg11, &_arg11);
rc = (jint)CreateWindowExW(arg0, (LPWSTR)lparg1, (LPWSTR)lparg2, arg3, arg4, arg5, arg6, arg7, (HWND)arg8, (HMENU)arg9, (HINSTANCE)arg10, lparg11);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
if (arg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
if (arg11) setCREATESTRUCTFields(env, arg11, lparg11);
NATIVE_EXIT(env, that, "CreateWindowExW\n")
return rc;
}
#endif
#ifndef NO_DefFrameProcA
JNIEXPORT jint JNICALL OS_NATIVE(DefFrameProcA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc;
NATIVE_ENTER(env, that, "DefFrameProcA\n")
rc = (jint)DefFrameProcA((HWND)arg0, (HWND)arg1, arg2, (WPARAM)arg3, (LPARAM)arg4);
NATIVE_EXIT(env, that, "DefFrameProcA\n")
return rc;
}
#endif
#ifndef NO_DefFrameProcW
JNIEXPORT jint JNICALL OS_NATIVE(DefFrameProcW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc;
NATIVE_ENTER(env, that, "DefFrameProcW\n")
rc = (jint)DefFrameProcW((HWND)arg0, (HWND)arg1, arg2, (WPARAM)arg3, (LPARAM)arg4);
NATIVE_EXIT(env, that, "DefFrameProcW\n")
return rc;
}
#endif
#ifndef NO_DefMDIChildProcA
JNIEXPORT jint JNICALL OS_NATIVE(DefMDIChildProcA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "DefMDIChildProcA\n")
rc = (jint)DefMDIChildProcA((HWND)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
NATIVE_EXIT(env, that, "DefMDIChildProcA\n")
return rc;
}
#endif
#ifndef NO_DefMDIChildProcW
JNIEXPORT jint JNICALL OS_NATIVE(DefMDIChildProcW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "DefMDIChildProcW\n")
rc = (jint)DefMDIChildProcW((HWND)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
NATIVE_EXIT(env, that, "DefMDIChildProcW\n")
return rc;
}
#endif
#ifndef NO_DefWindowProcA
JNIEXPORT jint JNICALL OS_NATIVE(DefWindowProcA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "DefWindowProcA\n")
rc = (jint)DefWindowProcA((HWND)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
NATIVE_EXIT(env, that, "DefWindowProcA\n")
return rc;
}
#endif
#ifndef NO_DefWindowProcW
JNIEXPORT jint JNICALL OS_NATIVE(DefWindowProcW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc;
NATIVE_ENTER(env, that, "DefWindowProcW\n")
rc = (jint)DefWindowProcW((HWND)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
NATIVE_EXIT(env, that, "DefWindowProcW\n")
return rc;
}
#endif
#ifndef NO_DeferWindowPos
JNIEXPORT jint JNICALL OS_NATIVE(DeferWindowPos)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7)
{
jint rc;
NATIVE_ENTER(env, that, "DeferWindowPos\n")
rc = (jint)DeferWindowPos((HDWP)arg0, (HWND)arg1, (HWND)arg2, arg3, arg4, arg5, arg6, arg7);
NATIVE_EXIT(env, that, "DeferWindowPos\n")
return rc;
}
#endif
#ifndef NO_DeleteDC
JNIEXPORT jboolean JNICALL OS_NATIVE(DeleteDC)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DeleteDC\n")
rc = (jboolean)DeleteDC((HDC)arg0);
NATIVE_EXIT(env, that, "DeleteDC\n")
return rc;
}
#endif
#ifndef NO_DeleteMenu
JNIEXPORT jboolean JNICALL OS_NATIVE(DeleteMenu)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jboolean rc;
NATIVE_ENTER(env, that, "DeleteMenu\n")
rc = (jboolean)DeleteMenu((HMENU)arg0, arg1, arg2);
NATIVE_EXIT(env, that, "DeleteMenu\n")
return rc;
}
#endif
#ifndef NO_DeleteObject
JNIEXPORT jboolean JNICALL OS_NATIVE(DeleteObject)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DeleteObject\n")
rc = (jboolean)DeleteObject((HGDIOBJ)arg0);
NATIVE_EXIT(env, that, "DeleteObject\n")
return rc;
}
#endif
#ifndef NO_DestroyAcceleratorTable
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyAcceleratorTable)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DestroyAcceleratorTable\n")
rc = (jboolean)DestroyAcceleratorTable((HACCEL)arg0);
NATIVE_EXIT(env, that, "DestroyAcceleratorTable\n")
return rc;
}
#endif
#ifndef NO_DestroyCaret
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyCaret)
(JNIEnv *env, jclass that)
{
jboolean rc;
NATIVE_ENTER(env, that, "DestroyCaret\n")
rc = (jboolean)DestroyCaret();
NATIVE_EXIT(env, that, "DestroyCaret\n")
return rc;
}
#endif
#ifndef NO_DestroyCursor
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyCursor)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DestroyCursor\n")
rc = (jboolean)DestroyCursor((HCURSOR)arg0);
NATIVE_EXIT(env, that, "DestroyCursor\n")
return rc;
}
#endif
#ifndef NO_DestroyIcon
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyIcon)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DestroyIcon\n")
rc = (jboolean)DestroyIcon((HICON)arg0);
NATIVE_EXIT(env, that, "DestroyIcon\n")
return rc;
}
#endif
#ifndef NO_DestroyMenu
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyMenu)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DestroyMenu\n")
rc = (jboolean)DestroyMenu((HMENU)arg0);
NATIVE_EXIT(env, that, "DestroyMenu\n")
return rc;
}
#endif
#ifndef NO_DestroyWindow
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyWindow)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DestroyWindow\n")
rc = (jboolean)DestroyWindow((HWND)arg0);
NATIVE_EXIT(env, that, "DestroyWindow\n")
return rc;
}
#endif
#ifndef NO_DispatchMessageA
JNIEXPORT jint JNICALL OS_NATIVE(DispatchMessageA)
(JNIEnv *env, jclass that, jobject arg0)
{
MSG _arg0, *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "DispatchMessageA\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
rc = (jint)DispatchMessageA(lparg0);
if (arg0) setMSGFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "DispatchMessageA\n")
return rc;
}
#endif
#ifndef NO_DispatchMessageW
JNIEXPORT jint JNICALL OS_NATIVE(DispatchMessageW)
(JNIEnv *env, jclass that, jobject arg0)
{
MSG _arg0, *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "DispatchMessageW\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
rc = (jint)DispatchMessageW(lparg0);
if (arg0) setMSGFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "DispatchMessageW\n")
return rc;
}
#endif
#ifndef NO_DragDetect
JNIEXPORT jboolean JNICALL OS_NATIVE(DragDetect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
POINT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "DragDetect\n")
if (arg1) lparg1 = getPOINTFields(env, arg1, &_arg1);
rc = (jboolean)DragDetect((HWND)arg0, *lparg1);
if (arg1) setPOINTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "DragDetect\n")
return rc;
}
#endif
#ifndef NO_DragFinish
JNIEXPORT void JNICALL OS_NATIVE(DragFinish)
(JNIEnv *env, jclass that, jint arg0)
{
NATIVE_ENTER(env, that, "DragFinish\n")
DragFinish((HDROP)arg0);
NATIVE_EXIT(env, that, "DragFinish\n")
}
#endif
#ifndef NO_DragQueryFileA
JNIEXPORT jint JNICALL OS_NATIVE(DragQueryFileA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jint arg3)
{
jbyte *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "DragQueryFileA\n")
if (arg2) lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL);
rc = (jint)DragQueryFileA((HDROP)arg0, arg1, (LPTSTR)lparg2, arg3);
if (arg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0);
NATIVE_EXIT(env, that, "DragQueryFileA\n")
return rc;
}
#endif
#ifndef NO_DragQueryFileW
JNIEXPORT jint JNICALL OS_NATIVE(DragQueryFileW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jint arg3)
{
jchar *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "DragQueryFileW\n")
if (arg2) lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL);
rc = (jint)DragQueryFileW((HDROP)arg0, arg1, (LPWSTR)lparg2, arg3);
if (arg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
NATIVE_EXIT(env, that, "DragQueryFileW\n")
return rc;
}
#endif
#ifndef NO_DrawEdge
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawEdge)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3)
{
RECT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "DrawEdge\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)DrawEdge((HDC)arg0, lparg1, arg2, arg3);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "DrawEdge\n")
return rc;
}
#endif
#ifndef NO_DrawFocusRect
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawFocusRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
RECT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "DrawFocusRect\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)DrawFocusRect((HDC)arg0, lparg1);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "DrawFocusRect\n")
return rc;
}
#endif
#ifndef NO_DrawFrameControl
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawFrameControl)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3)
{
RECT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "DrawFrameControl\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)DrawFrameControl((HDC)arg0, lparg1, arg2, arg3);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "DrawFrameControl\n")
return rc;
}
#endif
#ifndef NO_DrawIconEx
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawIconEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8)
{
jboolean rc;
NATIVE_ENTER(env, that, "DrawIconEx\n")
rc = (jboolean)DrawIconEx((HDC)arg0, arg1, arg2, (HICON)arg3, arg4, arg5, arg6, (HBRUSH)arg7, arg8);
NATIVE_EXIT(env, that, "DrawIconEx\n")
return rc;
}
#endif
#ifndef NO_DrawMenuBar
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawMenuBar)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "DrawMenuBar\n")
rc = (jboolean)DrawMenuBar((HWND)arg0);
NATIVE_EXIT(env, that, "DrawMenuBar\n")
return rc;
}
#endif
#ifndef NO_DrawStateA
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawStateA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8, jint arg9)
{
jboolean rc;
NATIVE_ENTER(env, that, "DrawStateA\n")
rc = (jboolean)DrawStateA((HDC)arg0, (HBRUSH)arg1, (DRAWSTATEPROC)arg2, (LPARAM)arg3, (WPARAM)arg4, arg5, arg6, arg7, arg8, arg9);
NATIVE_EXIT(env, that, "DrawStateA\n")
return rc;
}
#endif
#ifndef NO_DrawStateW
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawStateW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8, jint arg9)
{
jboolean rc;
NATIVE_ENTER(env, that, "DrawStateW\n")
rc = (jboolean)DrawStateW((HDC)arg0, (HBRUSH)arg1, (DRAWSTATEPROC)arg2, (LPARAM)arg3, (WPARAM)arg4, arg5, arg6, arg7, arg8, arg9);
NATIVE_EXIT(env, that, "DrawStateW\n")
return rc;
}
#endif
#ifndef NO_DrawTextA
JNIEXPORT jint JNICALL OS_NATIVE(DrawTextA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jobject arg3, jint arg4)
{
jbyte *lparg1=NULL;
RECT _arg3, *lparg3=NULL;
jint rc;
NATIVE_ENTER(env, that, "DrawTextA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
if (arg3) lparg3 = getRECTFields(env, arg3, &_arg3);
rc = (jint)DrawTextA((HDC)arg0, (LPSTR)lparg1, arg2, lparg3, arg4);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
if (arg3) setRECTFields(env, arg3, lparg3);
NATIVE_EXIT(env, that, "DrawTextA\n")
return rc;
}
#endif
#ifndef NO_DrawTextW
JNIEXPORT jint JNICALL OS_NATIVE(DrawTextW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2, jobject arg3, jint arg4)
{
jchar *lparg1=NULL;
RECT _arg3, *lparg3=NULL;
jint rc;
NATIVE_ENTER(env, that, "DrawTextW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
if (arg3) lparg3 = getRECTFields(env, arg3, &_arg3);
rc = (jint)DrawTextW((HDC)arg0, (LPWSTR)lparg1, arg2, lparg3, arg4);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
if (arg3) setRECTFields(env, arg3, lparg3);
NATIVE_EXIT(env, that, "DrawTextW\n")
return rc;
}
#endif
#ifndef NO_Ellipse
JNIEXPORT jboolean JNICALL OS_NATIVE(Ellipse)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jboolean rc;
NATIVE_ENTER(env, that, "Ellipse\n")
rc = (jboolean)Ellipse((HDC)arg0, arg1, arg2, arg3, arg4);
NATIVE_EXIT(env, that, "Ellipse\n")
return rc;
}
#endif
#ifndef NO_EnableMenuItem
JNIEXPORT jboolean JNICALL OS_NATIVE(EnableMenuItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jboolean rc;
NATIVE_ENTER(env, that, "EnableMenuItem\n")
rc = (jboolean)EnableMenuItem((HMENU)arg0, arg1, arg2);
NATIVE_EXIT(env, that, "EnableMenuItem\n")
return rc;
}
#endif
#ifndef NO_EnableScrollBar
JNIEXPORT jboolean JNICALL OS_NATIVE(EnableScrollBar)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jboolean rc;
NATIVE_ENTER(env, that, "EnableScrollBar\n")
rc = (jboolean)EnableScrollBar((HWND)arg0, arg1, arg2);
NATIVE_EXIT(env, that, "EnableScrollBar\n")
return rc;
}
#endif
#ifndef NO_EnableWindow
JNIEXPORT jboolean JNICALL OS_NATIVE(EnableWindow)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
jboolean rc;
NATIVE_ENTER(env, that, "EnableWindow\n")
rc = (jboolean)EnableWindow((HWND)arg0, arg1);
NATIVE_EXIT(env, that, "EnableWindow\n")
return rc;
}
#endif
#ifndef NO_EndDeferWindowPos
JNIEXPORT jboolean JNICALL OS_NATIVE(EndDeferWindowPos)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "EndDeferWindowPos\n")
rc = (jboolean)EndDeferWindowPos((HDWP)arg0);
NATIVE_EXIT(env, that, "EndDeferWindowPos\n")
return rc;
}
#endif
#ifndef NO_EndDoc
JNIEXPORT jint JNICALL OS_NATIVE(EndDoc)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "EndDoc\n")
rc = (jint)EndDoc((HDC)arg0);
NATIVE_EXIT(env, that, "EndDoc\n")
return rc;
}
#endif
#ifndef NO_EndPage
JNIEXPORT jint JNICALL OS_NATIVE(EndPage)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "EndPage\n")
rc = (jint)EndPage((HDC)arg0);
NATIVE_EXIT(env, that, "EndPage\n")
return rc;
}
#endif
#ifndef NO_EndPaint
JNIEXPORT jint JNICALL OS_NATIVE(EndPaint)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
PAINTSTRUCT _arg1, *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "EndPaint\n")
if (arg1) lparg1 = getPAINTSTRUCTFields(env, arg1, &_arg1);
rc = (jint)EndPaint((HWND)arg0, lparg1);
if (arg1) setPAINTSTRUCTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "EndPaint\n")
return rc;
}
#endif
#ifndef NO_EnumFontFamiliesA
JNIEXPORT jint JNICALL OS_NATIVE(EnumFontFamiliesA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3)
{
jbyte *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "EnumFontFamiliesA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)EnumFontFamiliesA((HDC)arg0, (LPSTR)lparg1, (FONTENUMPROC)arg2, (LPARAM)arg3);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "EnumFontFamiliesA\n")
return rc;
}
#endif
#ifndef NO_EnumFontFamiliesW
JNIEXPORT jint JNICALL OS_NATIVE(EnumFontFamiliesW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2, jint arg3)
{
jchar *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "EnumFontFamiliesW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
rc = (jint)EnumFontFamiliesW((HDC)arg0, (LPCWSTR)lparg1, (FONTENUMPROCW)arg2, (LPARAM)arg3);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "EnumFontFamiliesW\n")
return rc;
}
#endif
#ifndef NO_EnumSystemLocalesA
JNIEXPORT jboolean JNICALL OS_NATIVE(EnumSystemLocalesA)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jboolean rc;
NATIVE_ENTER(env, that, "EnumSystemLocalesA\n")
rc = (jboolean)EnumSystemLocalesA((LOCALE_ENUMPROCA)arg0, arg1);
NATIVE_EXIT(env, that, "EnumSystemLocalesA\n")
return rc;
}
#endif
#ifndef NO_EnumSystemLocalesW
JNIEXPORT jboolean JNICALL OS_NATIVE(EnumSystemLocalesW)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jboolean rc;
NATIVE_ENTER(env, that, "EnumSystemLocalesW\n")
rc = (jboolean)EnumSystemLocalesW((LOCALE_ENUMPROCW)arg0, arg1);
NATIVE_EXIT(env, that, "EnumSystemLocalesW\n")
return rc;
}
#endif
#ifndef NO_EqualRect
JNIEXPORT jboolean JNICALL OS_NATIVE(EqualRect)
(JNIEnv *env, jclass that, jobject arg0, jobject arg1)
{
RECT _arg0, *lparg0=NULL;
RECT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "EqualRect\n")
if (arg0) lparg0 = getRECTFields(env, arg0, &_arg0);
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)EqualRect((CONST RECT *)lparg0, (CONST RECT *)lparg1);
if (arg0) setRECTFields(env, arg0, lparg0);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "EqualRect\n")
return rc;
}
#endif
#ifndef NO_EqualRgn
JNIEXPORT jboolean JNICALL OS_NATIVE(EqualRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jboolean rc;
NATIVE_ENTER(env, that, "EqualRgn\n")
rc = (jboolean)EqualRgn((HRGN)arg0, (HRGN)arg1);
NATIVE_EXIT(env, that, "EqualRgn\n")
return rc;
}
#endif
#ifndef NO_ExpandEnvironmentStringsA
JNIEXPORT jint JNICALL OS_NATIVE(ExpandEnvironmentStringsA)
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1, jint arg2)
{
jbyte *lparg0=NULL;
jbyte *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "ExpandEnvironmentStringsA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)ExpandEnvironmentStringsA(lparg0, lparg1, arg2);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "ExpandEnvironmentStringsA\n")
return rc;
}
#endif
#ifndef NO_ExpandEnvironmentStringsW
JNIEXPORT jint JNICALL OS_NATIVE(ExpandEnvironmentStringsW)
(JNIEnv *env, jclass that, jcharArray arg0, jcharArray arg1, jint arg2)
{
jchar *lparg0=NULL;
jchar *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "ExpandEnvironmentStringsW\n")
if (arg0) lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL);
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
rc = (jint)ExpandEnvironmentStringsW(lparg0, lparg1, arg2);
if (arg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "ExpandEnvironmentStringsW\n")
return rc;
}
#endif
#ifndef NO_ExtTextOutA
JNIEXPORT jboolean JNICALL OS_NATIVE(ExtTextOutA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4, jbyteArray arg5, jint arg6, jintArray arg7)
{
RECT _arg4, *lparg4=NULL;
jbyte *lparg5=NULL;
jint *lparg7=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ExtTextOutA\n")
if (arg4) lparg4 = getRECTFields(env, arg4, &_arg4);
if (arg5) lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL);
if (arg7) lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL);
rc = (jboolean)ExtTextOutA((HDC)arg0, arg1, arg2, arg3, lparg4, (LPSTR)lparg5, arg6, (CONST INT *)lparg7);
if (arg4) setRECTFields(env, arg4, lparg4);
if (arg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0);
if (arg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
NATIVE_EXIT(env, that, "ExtTextOutA\n")
return rc;
}
#endif
#ifndef NO_ExtTextOutW
JNIEXPORT jboolean JNICALL OS_NATIVE(ExtTextOutW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4, jcharArray arg5, jint arg6, jintArray arg7)
{
RECT _arg4, *lparg4=NULL;
jchar *lparg5=NULL;
jint *lparg7=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "ExtTextOutW\n")
if (arg4) lparg4 = getRECTFields(env, arg4, &_arg4);
if (arg5) lparg5 = (*env)->GetCharArrayElements(env, arg5, NULL);
if (arg7) lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL);
rc = (jboolean)ExtTextOutW((HDC)arg0, arg1, arg2, arg3, lparg4, (LPWSTR)lparg5, arg6, (CONST INT *)lparg7);
if (arg4) setRECTFields(env, arg4, lparg4);
if (arg5) (*env)->ReleaseCharArrayElements(env, arg5, lparg5, 0);
if (arg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
NATIVE_EXIT(env, that, "ExtTextOutW\n")
return rc;
}
#endif
#ifndef NO_ExtractIconExA
JNIEXPORT jint JNICALL OS_NATIVE(ExtractIconExA)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jintArray arg2, jintArray arg3, jint arg4)
{
jbyte *lparg0=NULL;
jint *lparg2=NULL;
jint *lparg3=NULL;
jint rc;
NATIVE_ENTER(env, that, "ExtractIconExA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jint)ExtractIconExA((LPSTR)lparg0, arg1, (HICON FAR *)lparg2, (HICON FAR *)lparg3, arg4);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "ExtractIconExA\n")
return rc;
}
#endif
#ifndef NO_ExtractIconExW
JNIEXPORT jint JNICALL OS_NATIVE(ExtractIconExW)
(JNIEnv *env, jclass that, jcharArray arg0, jint arg1, jintArray arg2, jintArray arg3, jint arg4)
{
jchar *lparg0=NULL;
jint *lparg2=NULL;
jint *lparg3=NULL;
jint rc;
NATIVE_ENTER(env, that, "ExtractIconExW\n")
if (arg0) lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL);
if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jint)ExtractIconExW((LPWSTR)lparg0, arg1, (HICON FAR *)lparg2, (HICON FAR *)lparg3, arg4);
if (arg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "ExtractIconExW\n")
return rc;
}
#endif
#ifndef NO_FillRect
JNIEXPORT jint JNICALL OS_NATIVE(FillRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2)
{
RECT _arg1, *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "FillRect\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jint)FillRect((HDC)arg0, lparg1, (HBRUSH)arg2);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "FillRect\n")
return rc;
}
#endif
#ifndef NO_FindWindowA
JNIEXPORT jint JNICALL OS_NATIVE(FindWindowA)
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1)
{
jbyte *lparg0=NULL;
jbyte *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "FindWindowA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)FindWindowA((LPSTR)lparg0, (LPSTR)lparg1);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "FindWindowA\n")
return rc;
}
#endif
#ifndef NO_FindWindowW
JNIEXPORT jint JNICALL OS_NATIVE(FindWindowW)
(JNIEnv *env, jclass that, jcharArray arg0, jcharArray arg1)
{
jchar *lparg0=NULL;
jchar *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "FindWindowW\n")
if (arg0) lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL);
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
rc = (jint)FindWindowW((LPWSTR)lparg0, (LPWSTR)lparg1);
if (arg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "FindWindowW\n")
return rc;
}
#endif
#ifndef NO_FreeLibrary
JNIEXPORT jboolean JNICALL OS_NATIVE(FreeLibrary)
(JNIEnv *env, jclass that, jint arg0)
{
jboolean rc;
NATIVE_ENTER(env, that, "FreeLibrary\n")
rc = (jboolean)FreeLibrary((HMODULE)arg0);
NATIVE_EXIT(env, that, "FreeLibrary\n")
return rc;
}
#endif
#ifndef NO_GetACP
JNIEXPORT jint JNICALL OS_NATIVE(GetACP)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetACP\n")
rc = (jint)GetACP();
NATIVE_EXIT(env, that, "GetACP\n")
return rc;
}
#endif
#ifndef NO_GetActiveWindow
JNIEXPORT jint JNICALL OS_NATIVE(GetActiveWindow)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetActiveWindow\n")
rc = (jint)GetActiveWindow();
NATIVE_EXIT(env, that, "GetActiveWindow\n")
return rc;
}
#endif
#ifndef NO_GetBkColor
JNIEXPORT jint JNICALL OS_NATIVE(GetBkColor)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetBkColor\n")
rc = (jint)GetBkColor((HDC)arg0);
NATIVE_EXIT(env, that, "GetBkColor\n")
return rc;
}
#endif
#ifndef NO_GetCapture
JNIEXPORT jint JNICALL OS_NATIVE(GetCapture)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetCapture\n")
rc = (jint)GetCapture();
NATIVE_EXIT(env, that, "GetCapture\n")
return rc;
}
#endif
#ifndef NO_GetCaretPos
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCaretPos)
(JNIEnv *env, jclass that, jobject arg0)
{
POINT _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetCaretPos\n")
if (arg0) lparg0 = getPOINTFields(env, arg0, &_arg0);
rc = (jboolean)GetCaretPos(lparg0);
if (arg0) setPOINTFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "GetCaretPos\n")
return rc;
}
#endif
#ifndef NO_GetCharABCWidthsA
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCharABCWidthsA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
{
jint *lparg3=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetCharABCWidthsA\n")
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jboolean)GetCharABCWidthsA((HDC)arg0, arg1, arg2, (LPABC)lparg3);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "GetCharABCWidthsA\n")
return rc;
}
#endif
#ifndef NO_GetCharABCWidthsW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCharABCWidthsW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
{
jint *lparg3=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetCharABCWidthsW\n")
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jboolean)GetCharABCWidthsW((HDC)arg0, arg1, arg2, (LPABC)lparg3);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "GetCharABCWidthsW\n")
return rc;
}
#endif
#ifndef NO_GetCharWidthA
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCharWidthA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
{
jint *lparg3=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetCharWidthA\n")
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jboolean)GetCharWidthA((HDC)arg0, arg1, arg2, (LPINT)lparg3);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "GetCharWidthA\n")
return rc;
}
#endif
#ifndef NO_GetCharWidthW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCharWidthW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
{
jint *lparg3=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetCharWidthW\n")
if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
rc = (jboolean)GetCharWidthW((HDC)arg0, arg1, arg2, (LPINT)lparg3);
if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "GetCharWidthW\n")
return rc;
}
#endif
#ifndef NO_GetCharacterPlacementA
JNIEXPORT jint JNICALL OS_NATIVE(GetCharacterPlacementA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3, jobject arg4, jint arg5)
{
jbyte *lparg1=NULL;
GCP_RESULTS _arg4, *lparg4=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetCharacterPlacementA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
if (arg4) lparg4 = getGCP_RESULTSFields(env, arg4, &_arg4);
rc = (jint)GetCharacterPlacementA((HDC)arg0, (LPSTR)lparg1, arg2, arg3, lparg4, arg5);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
if (arg4) setGCP_RESULTSFields(env, arg4, lparg4);
NATIVE_EXIT(env, that, "GetCharacterPlacementA\n")
return rc;
}
#endif
#ifndef NO_GetCharacterPlacementW
JNIEXPORT jint JNICALL OS_NATIVE(GetCharacterPlacementW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2, jint arg3, jobject arg4, jint arg5)
{
jchar *lparg1=NULL;
GCP_RESULTS _arg4, *lparg4=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetCharacterPlacementW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
if (arg4) lparg4 = getGCP_RESULTSFields(env, arg4, &_arg4);
rc = (jint)GetCharacterPlacementW((HDC)arg0, (LPWSTR)lparg1, arg2, arg3, (LPGCP_RESULTSW)lparg4, arg5);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
if (arg4) setGCP_RESULTSFields(env, arg4, lparg4);
NATIVE_EXIT(env, that, "GetCharacterPlacementW\n")
return rc;
}
#endif
#ifndef NO_GetClassInfoA
JNIEXPORT jboolean JNICALL OS_NATIVE(GetClassInfoA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jobject arg2)
{
jbyte *lparg1=NULL;
WNDCLASS _arg2, *lparg2=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetClassInfoA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
if (arg2) lparg2 = getWNDCLASSFields(env, arg2, &_arg2);
rc = (jboolean)GetClassInfoA((HINSTANCE)arg0, (LPSTR)lparg1, lparg2);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
if (arg2) setWNDCLASSFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetClassInfoA\n")
return rc;
}
#endif
#ifndef NO_GetClassInfoW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetClassInfoW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jobject arg2)
{
jchar *lparg1=NULL;
WNDCLASS _arg2, *lparg2=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetClassInfoW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
if (arg2) lparg2 = getWNDCLASSFields(env, arg2, &_arg2);
rc = (jboolean)GetClassInfoW((HINSTANCE)arg0, (LPWSTR)lparg1, (LPWNDCLASSW)lparg2);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
if (arg2) setWNDCLASSFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetClassInfoW\n")
return rc;
}
#endif
#ifndef NO_GetClientRect
JNIEXPORT jboolean JNICALL OS_NATIVE(GetClientRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
RECT _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetClientRect\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)GetClientRect((HWND)arg0, lparg1);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "GetClientRect\n")
return rc;
}
#endif
#ifndef NO_GetClipBox
JNIEXPORT jint JNICALL OS_NATIVE(GetClipBox)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
RECT _arg1, *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetClipBox\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jint)GetClipBox((HDC)arg0, lparg1);
if (arg1) setRECTFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "GetClipBox\n")
return rc;
}
#endif
#ifndef NO_GetClipRgn
JNIEXPORT jint JNICALL OS_NATIVE(GetClipRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc;
NATIVE_ENTER(env, that, "GetClipRgn\n")
rc = (jint)GetClipRgn((HDC)arg0, (HRGN)arg1);
NATIVE_EXIT(env, that, "GetClipRgn\n")
return rc;
}
#endif
#ifndef NO_GetClipboardData
JNIEXPORT jint JNICALL OS_NATIVE(GetClipboardData)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetClipboardData\n")
rc = (jint)GetClipboardData(arg0);
NATIVE_EXIT(env, that, "GetClipboardData\n")
return rc;
}
#endif
#ifndef NO_GetClipboardFormatNameA
JNIEXPORT jint JNICALL OS_NATIVE(GetClipboardFormatNameA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2)
{
jbyte *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetClipboardFormatNameA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)GetClipboardFormatNameA(arg0, lparg1, arg2);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "GetClipboardFormatNameA\n")
return rc;
}
#endif
#ifndef NO_GetClipboardFormatNameW
JNIEXPORT jint JNICALL OS_NATIVE(GetClipboardFormatNameW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2)
{
jchar *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetClipboardFormatNameW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
rc = (jint)GetClipboardFormatNameW(arg0, (LPWSTR)lparg1, arg2);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "GetClipboardFormatNameW\n")
return rc;
}
#endif
#ifndef NO_GetCurrentObject
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentObject)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc;
NATIVE_ENTER(env, that, "GetCurrentObject\n")
rc = (jint)GetCurrentObject((HDC)arg0, arg1);
NATIVE_EXIT(env, that, "GetCurrentObject\n")
return rc;
}
#endif
#ifndef NO_GetCurrentProcessId
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcessId)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetCurrentProcessId\n")
rc = (jint)GetCurrentProcessId();
NATIVE_EXIT(env, that, "GetCurrentProcessId\n")
return rc;
}
#endif
#ifndef NO_GetCurrentThreadId
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentThreadId)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetCurrentThreadId\n")
rc = (jint)GetCurrentThreadId();
NATIVE_EXIT(env, that, "GetCurrentThreadId\n")
return rc;
}
#endif
#ifndef NO_GetCursor
JNIEXPORT jint JNICALL OS_NATIVE(GetCursor)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetCursor\n")
rc = (jint)GetCursor();
NATIVE_EXIT(env, that, "GetCursor\n")
return rc;
}
#endif
#ifndef NO_GetCursorPos
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCursorPos)
(JNIEnv *env, jclass that, jobject arg0)
{
POINT _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetCursorPos\n")
if (arg0) lparg0 = getPOINTFields(env, arg0, &_arg0);
rc = (jboolean)GetCursorPos(lparg0);
if (arg0) setPOINTFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "GetCursorPos\n")
return rc;
}
#endif
#ifndef NO_GetDC
JNIEXPORT jint JNICALL OS_NATIVE(GetDC)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetDC\n")
rc = (jint)GetDC((HWND)arg0);
NATIVE_EXIT(env, that, "GetDC\n")
return rc;
}
#endif
#ifndef NO_GetDCEx
JNIEXPORT jint JNICALL OS_NATIVE(GetDCEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc;
NATIVE_ENTER(env, that, "GetDCEx\n")
rc = (jint)GetDCEx((HWND)arg0, (HRGN)arg1, arg2);
NATIVE_EXIT(env, that, "GetDCEx\n")
return rc;
}
#endif
#ifndef NO_GetDIBColorTable
JNIEXPORT jint JNICALL OS_NATIVE(GetDIBColorTable)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyteArray arg3)
{
jbyte *lparg3=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetDIBColorTable\n")
if (arg3) lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL);
rc = (jint)GetDIBColorTable((HDC)arg0, arg1, arg2, (RGBQUAD *)lparg3);
if (arg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
NATIVE_EXIT(env, that, "GetDIBColorTable\n")
return rc;
}
#endif
#ifndef NO_GetDIBits
JNIEXPORT jint JNICALL OS_NATIVE(GetDIBits)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jbyteArray arg5, jint arg6)
{
jbyte *lparg5=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetDIBits\n")
if (arg5) lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL);
rc = (jint)GetDIBits((HDC)arg0, (HBITMAP)arg1, arg2, arg3, (LPVOID)arg4, (LPBITMAPINFO)lparg5, arg6);
if (arg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0);
NATIVE_EXIT(env, that, "GetDIBits\n")
return rc;
}
#endif
#ifndef NO_GetDesktopWindow
JNIEXPORT jint JNICALL OS_NATIVE(GetDesktopWindow)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetDesktopWindow\n")
rc = (jint)GetDesktopWindow();
NATIVE_EXIT(env, that, "GetDesktopWindow\n")
return rc;
}
#endif
#ifndef NO_GetDeviceCaps
JNIEXPORT jint JNICALL OS_NATIVE(GetDeviceCaps)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc;
NATIVE_ENTER(env, that, "GetDeviceCaps\n")
rc = (jint)GetDeviceCaps((HDC)arg0, arg1);
NATIVE_EXIT(env, that, "GetDeviceCaps\n")
return rc;
}
#endif
#ifndef NO_GetDialogBaseUnits
JNIEXPORT jint JNICALL OS_NATIVE(GetDialogBaseUnits)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetDialogBaseUnits\n")
rc = (jint)GetDialogBaseUnits();
NATIVE_EXIT(env, that, "GetDialogBaseUnits\n")
return rc;
}
#endif
#ifndef NO_GetDlgItem
JNIEXPORT jint JNICALL OS_NATIVE(GetDlgItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc;
NATIVE_ENTER(env, that, "GetDlgItem\n")
rc = (jint)GetDlgItem((HWND)arg0, arg1);
NATIVE_EXIT(env, that, "GetDlgItem\n")
return rc;
}
#endif
#ifndef NO_GetDoubleClickTime
JNIEXPORT jint JNICALL OS_NATIVE(GetDoubleClickTime)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetDoubleClickTime\n")
rc = (jint)GetDoubleClickTime();
NATIVE_EXIT(env, that, "GetDoubleClickTime\n")
return rc;
}
#endif
#ifndef NO_GetFocus
JNIEXPORT jint JNICALL OS_NATIVE(GetFocus)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetFocus\n")
rc = (jint)GetFocus();
NATIVE_EXIT(env, that, "GetFocus\n")
return rc;
}
#endif
#ifndef NO_GetFontLanguageInfo
JNIEXPORT jint JNICALL OS_NATIVE(GetFontLanguageInfo)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetFontLanguageInfo\n")
rc = (jint)GetFontLanguageInfo((HDC)arg0);
NATIVE_EXIT(env, that, "GetFontLanguageInfo\n")
return rc;
}
#endif
#ifndef NO_GetIconInfo
JNIEXPORT jboolean JNICALL OS_NATIVE(GetIconInfo)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
ICONINFO _arg1, *lparg1=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetIconInfo\n")
if (arg1) lparg1 = getICONINFOFields(env, arg1, &_arg1);
rc = (jboolean)GetIconInfo((HICON)arg0, lparg1);
if (arg1) setICONINFOFields(env, arg1, lparg1);
NATIVE_EXIT(env, that, "GetIconInfo\n")
return rc;
}
#endif
#ifndef NO_GetKeyNameTextA
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyNameTextA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2)
{
jbyte *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetKeyNameTextA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)GetKeyNameTextA(arg0, (LPSTR)lparg1, arg2);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "GetKeyNameTextA\n")
return rc;
}
#endif
#ifndef NO_GetKeyNameTextW
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyNameTextW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2)
{
jchar *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetKeyNameTextW\n")
if (arg1) lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL);
rc = (jint)GetKeyNameTextW(arg0, (LPWSTR)lparg1, arg2);
if (arg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "GetKeyNameTextW\n")
return rc;
}
#endif
#ifndef NO_GetKeyState
JNIEXPORT jshort JNICALL OS_NATIVE(GetKeyState)
(JNIEnv *env, jclass that, jint arg0)
{
jshort rc;
NATIVE_ENTER(env, that, "GetKeyState\n")
rc = (jshort)GetKeyState(arg0);
NATIVE_EXIT(env, that, "GetKeyState\n")
return rc;
}
#endif
#ifndef NO_GetKeyboardLayout
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyboardLayout)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetKeyboardLayout\n")
rc = (jint)GetKeyboardLayout(arg0);
NATIVE_EXIT(env, that, "GetKeyboardLayout\n")
return rc;
}
#endif
#ifndef NO_GetKeyboardLayoutList
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyboardLayoutList)
(JNIEnv *env, jclass that, jint arg0, jintArray arg1)
{
jint *lparg1=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetKeyboardLayoutList\n")
if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
rc = (jint)GetKeyboardLayoutList(arg0, (HKL FAR *)lparg1);
if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
NATIVE_EXIT(env, that, "GetKeyboardLayoutList\n")
return rc;
}
#endif
#ifndef NO_GetKeyboardState
JNIEXPORT jboolean JNICALL OS_NATIVE(GetKeyboardState)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetKeyboardState\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jboolean)GetKeyboardState((PBYTE)lparg0);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
NATIVE_EXIT(env, that, "GetKeyboardState\n")
return rc;
}
#endif
#ifndef NO_GetLastActivePopup
JNIEXPORT jint JNICALL OS_NATIVE(GetLastActivePopup)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetLastActivePopup\n")
rc = (jint)GetLastActivePopup((HWND)arg0);
NATIVE_EXIT(env, that, "GetLastActivePopup\n")
return rc;
}
#endif
#ifndef NO_GetLastError
JNIEXPORT jint JNICALL OS_NATIVE(GetLastError)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetLastError\n")
rc = (jint)GetLastError();
NATIVE_EXIT(env, that, "GetLastError\n")
return rc;
}
#endif
#ifndef NO_GetLocaleInfoA
JNIEXPORT jint JNICALL OS_NATIVE(GetLocaleInfoA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2, jint arg3)
{
jbyte *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetLocaleInfoA\n")
if (arg2) lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL);
rc = (jint)GetLocaleInfoA(arg0, arg1, (LPSTR)lparg2, arg3);
if (arg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0);
NATIVE_EXIT(env, that, "GetLocaleInfoA\n")
return rc;
}
#endif
#ifndef NO_GetLocaleInfoW
JNIEXPORT jint JNICALL OS_NATIVE(GetLocaleInfoW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jint arg3)
{
jchar *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetLocaleInfoW\n")
if (arg2) lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL);
rc = (jint)GetLocaleInfoW(arg0, arg1, (LPWSTR)lparg2, arg3);
if (arg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
NATIVE_EXIT(env, that, "GetLocaleInfoW\n")
return rc;
}
#endif
#ifndef NO_GetMenu
JNIEXPORT jint JNICALL OS_NATIVE(GetMenu)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetMenu\n")
rc = (jint)GetMenu((HWND)arg0);
NATIVE_EXIT(env, that, "GetMenu\n")
return rc;
}
#endif
#ifndef NO_GetMenuDefaultItem
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuDefaultItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc;
NATIVE_ENTER(env, that, "GetMenuDefaultItem\n")
rc = (jint)GetMenuDefaultItem((HMENU)arg0, arg1, arg2);
NATIVE_EXIT(env, that, "GetMenuDefaultItem\n")
return rc;
}
#endif
#ifndef NO_GetMenuItemCount
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemCount)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc;
NATIVE_ENTER(env, that, "GetMenuItemCount\n")
rc = (jint)GetMenuItemCount((HMENU)arg0);
NATIVE_EXIT(env, that, "GetMenuItemCount\n")
return rc;
}
#endif
#ifndef NO_GetMenuItemInfoA
JNIEXPORT jboolean JNICALL OS_NATIVE(GetMenuItemInfoA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jobject arg3)
{
MENUITEMINFO _arg3, *lparg3=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetMenuItemInfoA\n")
if (arg3) lparg3 = getMENUITEMINFOFields(env, arg3, &_arg3);
rc = (jboolean)GetMenuItemInfoA((HMENU)arg0, arg1, arg2, lparg3);
if (arg3) setMENUITEMINFOFields(env, arg3, lparg3);
NATIVE_EXIT(env, that, "GetMenuItemInfoA\n")
return rc;
}
#endif
#ifndef NO_GetMenuItemInfoW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetMenuItemInfoW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jobject arg3)
{
MENUITEMINFO _arg3, *lparg3=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetMenuItemInfoW\n")
if (arg3) lparg3 = getMENUITEMINFOFields(env, arg3, &_arg3);
rc = (jboolean)GetMenuItemInfoW((HMENU)arg0, arg1, arg2, (LPMENUITEMINFOW)lparg3);
if (arg3) setMENUITEMINFOFields(env, arg3, lparg3);
NATIVE_EXIT(env, that, "GetMenuItemInfoW\n")
return rc;
}
#endif
#ifndef NO_GetMessageA
JNIEXPORT jboolean JNICALL OS_NATIVE(GetMessageA)
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3)
{
MSG _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetMessageA\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
rc = (jboolean)GetMessageA(lparg0, (HWND)arg1, arg2, arg3);
if (arg0) setMSGFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "GetMessageA\n")
return rc;
}
#endif
#ifndef NO_GetMessagePos
JNIEXPORT jint JNICALL OS_NATIVE(GetMessagePos)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetMessagePos\n")
rc = (jint)GetMessagePos();
NATIVE_EXIT(env, that, "GetMessagePos\n")
return rc;
}
#endif
#ifndef NO_GetMessageTime
JNIEXPORT jint JNICALL OS_NATIVE(GetMessageTime)
(JNIEnv *env, jclass that)
{
jint rc;
NATIVE_ENTER(env, that, "GetMessageTime\n")
rc = (jint)GetMessageTime();
NATIVE_EXIT(env, that, "GetMessageTime\n")
return rc;
}
#endif
#ifndef NO_GetMessageW
JNIEXPORT jboolean JNICALL OS_NATIVE(GetMessageW)
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3)
{
MSG _arg0, *lparg0=NULL;
jboolean rc;
NATIVE_ENTER(env, that, "GetMessageW\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
rc = (jboolean)GetMessageW(lparg0, (HWND)arg1, arg2, arg3);
if (arg0) setMSGFields(env, arg0, lparg0);
NATIVE_EXIT(env, that, "GetMessageW\n")
return rc;
}
#endif
#ifndef NO_GetModuleHandleA
JNIEXPORT jint JNICALL OS_NATIVE(GetModuleHandleA)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetModuleHandleA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)GetModuleHandleA((LPSTR)lparg0);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
NATIVE_EXIT(env, that, "GetModuleHandleA\n")
return rc;
}
#endif
#ifndef NO_GetModuleHandleW
JNIEXPORT jint JNICALL OS_NATIVE(GetModuleHandleW)
(JNIEnv *env, jclass that, jcharArray arg0)
{
jchar *lparg0=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetModuleHandleW\n")
if (arg0) lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL);
rc = (jint)GetModuleHandleW((LPWSTR)lparg0);
if (arg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
NATIVE_EXIT(env, that, "GetModuleHandleW\n")
return rc;
}
#endif
#ifndef NO_GetNearestPaletteIndex
JNIEXPORT jint JNICALL OS_NATIVE(GetNearestPaletteIndex)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc;
NATIVE_ENTER(env, that, "GetNearestPaletteIndex\n")
rc = (jint)GetNearestPaletteIndex((HPALETTE)arg0, (COLORREF)arg1);
NATIVE_EXIT(env, that, "GetNearestPaletteIndex\n")
return rc;
}
#endif
#ifndef NO_GetObjectA__IILorg_eclipse_swt_internal_win32_BITMAP_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectA__IILorg_eclipse_swt_internal_win32_BITMAP_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
BITMAP _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_BITMAP_2\n")
if (arg2) lparg2 = getBITMAPFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setBITMAPFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_BITMAP_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectA__IILorg_eclipse_swt_internal_win32_DIBSECTION_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectA__IILorg_eclipse_swt_internal_win32_DIBSECTION_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
DIBSECTION _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_DIBSECTION_2\n")
if (arg2) lparg2 = getDIBSECTIONFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setDIBSECTIONFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_DIBSECTION_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectA__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
LOGBRUSH _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2\n")
if (arg2) lparg2 = getLOGBRUSHFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setLOGBRUSHFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONTA_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONTA_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
LOGFONTA _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONTA_2\n")
if (arg2) lparg2 = getLOGFONTAFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setLOGFONTAFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONTA_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGPEN_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectA__IILorg_eclipse_swt_internal_win32_LOGPEN_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
LOGPEN _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_LOGPEN_2\n")
if (arg2) lparg2 = getLOGPENFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setLOGPENFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectA__IILorg_eclipse_swt_internal_win32_LOGPEN_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectW__IILorg_eclipse_swt_internal_win32_BITMAP_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectW__IILorg_eclipse_swt_internal_win32_BITMAP_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
BITMAP _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_BITMAP_2\n")
if (arg2) lparg2 = getBITMAPFields(env, arg2, &_arg2);
rc = (jint)GetObjectW((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setBITMAPFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_BITMAP_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectW__IILorg_eclipse_swt_internal_win32_DIBSECTION_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectW__IILorg_eclipse_swt_internal_win32_DIBSECTION_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
DIBSECTION _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_DIBSECTION_2\n")
if (arg2) lparg2 = getDIBSECTIONFields(env, arg2, &_arg2);
rc = (jint)GetObjectW((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setDIBSECTIONFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_DIBSECTION_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectW__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectW__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
LOGBRUSH _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2\n")
if (arg2) lparg2 = getLOGBRUSHFields(env, arg2, &_arg2);
rc = (jint)GetObjectW((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setLOGBRUSHFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectW__IILorg_eclipse_swt_internal_win32_LOGFONTW_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectW__IILorg_eclipse_swt_internal_win32_LOGFONTW_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
LOGFONTW _arg2, *lparg2=NULL;
jint rc;
NATIVE_ENTER(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_LOGFONTW_2\n")
if (arg2) lparg2 = getLOGFONTWFields(env, arg2, &_arg2);
rc = (jint)GetObjectW((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setLOGFONTWFields(env, arg2, lparg2);
NATIVE_EXIT(env, that, "GetObjectW__IILorg_eclipse_swt_internal_win32_LOGFONTW_2\n")
return rc;
}
#endif
#ifndef NO_GetObjectW__IILorg_eclipse_swt_internal_win32_LOGPEN_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectW__IILorg_eclipse_swt_internal_win32_LOGPEN_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1,<