blob: bc7017247cd18029845f617134503e3530afa50d [file] [log] [blame]
/*
* Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
* This file is 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
*/
/**
* SWT OS natives implementation.
*/
#include "swt.h"
#include "structs.h"
#ifdef _WIN32_WCE
#define NO_AbortDoc
#define NO_ActivateKeyboardLayout
#define NO_Arc
#define NO_CallNextHookEx
#define NO_CallWindowProcA
#define NO_CharLowerA
#define NO_CharUpperA
#define NO_ChooseColorA
#define NO_ChooseFontA
#define NO_ChooseFontW
#define NO_CopyImage
#define NO_CreateAcceleratorTableA
#define NO_CreateCursor
#define NO_CreateDCA
#define NO_CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONT_2
#define NO_CreateFontIndirectA__I
#define NO_CreateWindowExA
#define NO_DefWindowProcA
#define NO_DestroyCursor
#define NO_DispatchMessageA
#define NO_DragDetect
#define NO_DragFinish
#define NO_DragQueryFileA
#define NO_DragQueryFileW
#define NO_DrawStateA
#define NO_DrawStateW
#define NO_DrawTextA
#define NO_EnableScrollBar
#define NO_EndDoc
#define NO_EndPage
#define NO_EnumFontFamiliesA
#define NO_EnumSystemLanguageGroupsA
#define NO_EnumSystemLanguageGroupsW
#define NO_EnumSystemLocalesA
#define NO_ExpandEnvironmentStringsW
#define NO_ExpandEnvironmentStringsA
#define NO_ExtTextOutA
#define NO_ExtractIconExA
#define NO_FindWindowA
#define NO_GetCharABCWidthsA
#define NO_GetCharABCWidthsW
#define NO_GetCharWidthA
#define NO_GetCharWidthW
#define NO_GetCharacterPlacementA
#define NO_GetCharacterPlacementW
#define NO_GetClassInfoA
#define NO_GetClipboardFormatNameA
#define NO_GetDIBColorTable
#define NO_GetDIBits
#define NO_GetFontLanguageInfo
#define NO_GetIconInfo
#define NO_GetKeyboardLayout
#define NO_GetKeyboardLayoutList
#define NO_GetKeyboardState
#define NO_GetKeyNameTextA
#define NO_GetKeyNameTextW
#define NO_GetLastActivePopup
#define NO_GetLocaleInfoA
#define NO_GetMenu
#define NO_GetMenuDefaultItem
#define NO_GetMenuInfo
#define NO_GetMenuItemCount
#define NO_GetMenuItemInfoA
#define NO_GetMessageA
#define NO_GetMessageTime
#define NO_GetModuleHandleA
#define NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGPEN_2
#define NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONT_2
#define NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGBRUSH_2
#define NO_GetObjectA__IILorg_eclipse_swt_internal_win32_DIBSECTION_2
#define NO_GetObjectA__IILorg_eclipse_swt_internal_win32_BITMAP_2
#define NO_GetOpenFileNameA
#define NO_GetProfileStringA
#define NO_GetProfileStringW
#define NO_GetROP2
#define NO_GetSaveFileNameA
#define NO_GetTextCharset
#define NO_GetTextExtentPoint32A
#define NO_GetTextMetricsA
#define NO_GetVersionExA
#define NO_GetWindowLongA
#define NO_GetWindowPlacement
#define NO_GetWindowTextA
#define NO_GetWindowTextLengthA
#define NO_GradientFill
#define NO_ImmGetCompositionFontA
#define NO_ImmGetCompositionStringA
#define NO_ImmSetCompositionFontA
#define NO_InsertMenuA
#define NO_InsertMenuItemA
#define NO_InsertMenuItemW
#define NO_InvalidateRgn
#define NO_IsIconic
#define NO_IsZoomed
#define NO_LineTo
#define NO_LoadBitmapA
#define NO_LoadCursorA
#define NO_LoadIconA
#define NO_LoadImageA
#define NO_LoadLibraryA
#define NO_MapVirtualKeyA
#define NO_MessageBoxA
#define NO_MoveMemory__ILorg_eclipse_swt_internal_win32_DROPFILES_2I
#define NO_MoveMemory__Lorg_eclipse_swt_internal_win32_NMREBARCHEVRON_2II
#define NO_MoveMemory__Lorg_eclipse_swt_internal_win32_HELPINFO_2II
#define NO_MoveMemory__ILorg_eclipse_swt_internal_win32_TRIVERTEX_2I
#define NO_MoveMemory__ILorg_eclipse_swt_internal_win32_GRADIENT_1RECT_2I
#define NO_MoveMemoryA__Lorg_eclipse_swt_internal_win32_NMTTDISPINFO_2II
#define NO_MoveMemoryW__Lorg_eclipse_swt_internal_win32_NMTTDISPINFO_2II
#define NO_MoveMemoryA__ILorg_eclipse_swt_internal_win32_NMTTDISPINFO_2I
#define NO_MoveMemoryW__ILorg_eclipse_swt_internal_win32_NMTTDISPINFO_2I
#define NO_MoveMemoryA__Lorg_eclipse_swt_internal_win32_LOGFONT_2II
#define NO_MoveMemoryA__ILorg_eclipse_swt_internal_win32_LOGFONT_2I
#define NO_MoveToEx
#define NO_OleInitialize
#define NO_OleUninitialize
#define NO_PeekMessageA
#define NO_Pie
#define NO_PostMessageA
#define NO_PostThreadMessageA
#define NO_PrintDlgA
#define NO_PrintDlgW
#define NO_RedrawWindow
#define NO_RegEnumKeyExA
#define NO_RegOpenKeyExA
#define NO_RegQueryInfoKeyA
#define NO_RegQueryValueExA
#define NO_RegisterClassA
#define NO_RegisterClipboardFormatA
#define NO_SHBrowseForFolderA
#define NO_SHBrowseForFolderW
#define NO_SHGetPathFromIDListA
#define NO_SHGetPathFromIDListW
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TVITEM_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TVINSERTSTRUCT_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TVHITTESTINFO_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TOOLINFO_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TCITEM_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TBBUTTONINFO_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_TBBUTTON_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_RECT_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_REBARBANDINFO_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_LVITEM_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_LVHITTESTINFO_2
#define NO_SendMessageA__IIILorg_eclipse_swt_internal_win32_LVCOLUMN_2
#define NO_SendMessageA__IIII
#define NO_SendMessageA__III_3S
#define NO_SendMessageA__III_3I
#define NO_SendMessageA__III_3B
#define NO_SendMessageA__II_3II
#define NO_SendMessageA__II_3I_3I
#define NO_SendMessageW__IIILorg_eclipse_swt_internal_win32_TOOLINFO_2
#define NO_SetDIBColorTable
#define NO_SetMenu
#define NO_SetMenuDefaultItem
#define NO_SetMenuInfo
#define NO_SetMenuItemInfoA
#define NO_SetStretchBltMode
#define NO_SetTextAlign
#define NO_SetWindowLongA
#define NO_SetWindowPlacement
#define NO_SetWindowTextA
#define NO_SetWindowsHookExA
#define NO_SetWindowsHookExW
#define NO_ShellExecuteExA
#define NO_ShowOwnedPopups
#define NO_ShowScrollBar
#define NO_StartDocA
#define NO_StartDocW
#define NO_StartPage
#define NO_SystemParametersInfoA__IILorg_eclipse_swt_internal_win32_RECT_2I
#define NO_SystemParametersInfoA__IILorg_eclipse_swt_internal_win32_NONCLIENTMETRICS_2I
#define NO_SystemParametersInfoA__II_3II
#define NO_SystemParametersInfoW__IILorg_eclipse_swt_internal_win32_NONCLIENTMETRICS_2I
#define NO_ToAscii
#define NO_ToUnicode
#define NO_TrackMouseEvent
#define NO_TranslateAcceleratorA
#define NO_UnhookWindowsHookEx
#define NO_UnregisterClassA
#define NO_VkKeyScanA
#define NO_VkKeyScanW
#define NO_WaitMessage
#define NO_WindowFromDC
#define ChooseColorW ChooseColor
#define CHOOSECOLORW CHOOSECOLOR
#define LPCHOOSECOLORW LPCHOOSECOLOR
#define FONTENUMPROCW FONTENUMPROC
#define ShellExecuteExW ShellExecuteEx
#define LPSHELLEXECUTEINFOW LPSHELLEXECUTEINFO
#endif /* _WIN32_WCE */
#ifndef WIN32_PLATFORM_HPC2000
#define NO_CommandBar_1AddAdornments
#define NO_CommandBar_1Create
#define NO_CommandBar_1DrawMenuBar
#define NO_CommandBar_1Height
#define NO_CommandBar_1InsertMenubarEx
#define NO_CommandBar_1Show
#endif /* WIN32_PLATFORM_HPC2000 */
#if !defined(WIN32_PLATFORM_PSPC) && !defined(WIN32_PLATFORM_WFSP)
#define NO_SHCreateMenuBar
#define NO_SHSetAppKeyWndAssoc
#endif /* WIN32_PLATFORM_PSPC, WIN32_PLATFORM_WFSP */
#ifdef WIN32_PLATFORM_WFSP
#define NO_CommDlgExtendedError
#define NO_ChooseColorW
#endif /* WIN32_PLATFORM_WFSP */
#ifndef WIN32_PLATFORM_PSPC
#define NO_SHHandleWMSettingChange
#define NO_SHSipPreference
#define NO_SipGetInfo
#endif /* WIN32_PLATFORM_PSPC */
#ifndef WIN32_PLATFORM_WFSP
#define NO_SHSendBackToFocusWindow
#endif /* WIN32_PLATFORM_WFSP */
#ifndef _WIN32_WCE
#define NO_CommandBar_1Destroy
#define NO_TransparentImage
#endif /* _WIN32_WCE */
/* Export the dll version info call */
__declspec(dllexport) HRESULT DllGetVersion(DLLVERSIONINFO *dvi);
HRESULT DllGetVersion(DLLVERSIONINFO *dvi)
{
dvi->dwMajorVersion = SWT_VERSION / 1000;
dvi->dwMinorVersion = SWT_VERSION % 1000;
dvi->dwBuildNumber = SWT_BUILD_NUM;
dvi->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
return 1;
}
/* Cache the handle to the library */
HINSTANCE g_hInstance = NULL;
BOOL WINAPI DllMain(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{
if (dwReason == DLL_PROCESS_ATTACH) {
if (g_hInstance == NULL) g_hInstance = hInstDLL;
}
return TRUE;
}
/* Natives */
#define OS_NATIVE(method) Java_org_eclipse_swt_internal_win32_OS_##method
#ifndef NO_AbortDoc
JNIEXPORT jint JNICALL OS_NATIVE(AbortDoc)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("AbortDoc\n")
return (jint)AbortDoc((HDC)arg0);
}
#endif /* NO_AbortDoc */
#ifndef NO_ActivateKeyboardLayout
JNIEXPORT jint JNICALL OS_NATIVE(ActivateKeyboardLayout)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("ActivateKeyboardLayout\n")
return (jint)ActivateKeyboardLayout((HKL)arg0, arg1);
}
#endif /* NO_ActivateKeyboardLayout */
#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;
DEBUG_CALL("AdjustWindowRectEx\n")
if (arg0) lparg0 = getRECTFields(env, arg0, &_arg0);
rc = (jboolean)AdjustWindowRectEx(lparg0, arg1, arg2, arg3);
if (arg0) setRECTFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_AdjustWindowRectEx */
#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)
{
DEBUG_CALL("Arc\n")
return (jboolean)Arc((HDC)arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
#endif /* NO_Arc */
#ifndef NO_BeginDeferWindowPos
JNIEXPORT jint JNICALL OS_NATIVE(BeginDeferWindowPos)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("BeginDeferWindowPos\n")
return (jint)BeginDeferWindowPos(arg0);
}
#endif /* NO_BeginDeferWindowPos */
#ifndef NO_BeginPaint
JNIEXPORT jint JNICALL OS_NATIVE(BeginPaint)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
PAINTSTRUCT _arg1, *lparg1=NULL;
jint rc;
DEBUG_CALL("BeginPaint\n")
if (arg1) lparg1 = &_arg1;
rc = (jint)BeginPaint((HWND)arg0, lparg1);
if (arg1) setPAINTSTRUCTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_BeginPaint */
#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)
{
DEBUG_CALL("BitBlt\n")
return (jboolean)BitBlt((HDC)arg0, arg1, arg2, arg3, arg4, (HDC)arg5, arg6, arg7, arg8);
}
#endif /* NO_BitBlt */
#ifndef NO_BringWindowToTop
JNIEXPORT jboolean JNICALL OS_NATIVE(BringWindowToTop)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("BringWindowToTop\n")
return (jboolean)BringWindowToTop((HWND)arg0);
}
#endif /* NO_BringWindowToTop */
#ifndef NO_Call
JNIEXPORT jint JNICALL OS_NATIVE(Call)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
DLLVERSIONINFO _arg1, *lparg1=NULL;
jint rc;
DEBUG_CALL("Call\n")
if (arg1) lparg1 = getDLLVERSIONINFOFields(env, arg1, &_arg1);
rc = (jint)((DLLGETVERSIONPROC)arg0)(lparg1);
if (arg1) setDLLVERSIONINFOFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_Call */
#ifndef NO_CallNextHookEx
JNIEXPORT jint JNICALL OS_NATIVE(CallNextHookEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("CallNextHookEx\n")
return (jint)CallNextHookEx((HHOOK)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
}
#endif /* NO_CallNextHookEx */
#ifndef NO_CallWindowProcA
JNIEXPORT jint JNICALL OS_NATIVE(CallWindowProcA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
DEBUG_CALL("CallWindowProcA\n")
return (jint)CallWindowProcA((WNDPROC)arg0, (HWND)arg1, arg2, arg3, arg4);
}
#endif /* NO_CallWindowProcA */
#ifndef NO_CallWindowProcW
JNIEXPORT jint JNICALL OS_NATIVE(CallWindowProcW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
DEBUG_CALL("CallWindowProcW\n")
return (jint)CallWindowProcW((WNDPROC)arg0, (HWND)arg1, arg2, arg3, arg4);
}
#endif /* NO_CallWindowProcW */
#ifndef NO_CharLowerA
JNIEXPORT jshort JNICALL OS_NATIVE(CharLowerA)
(JNIEnv *env, jclass that, jshort arg0)
{
DEBUG_CALL("CharLowerA\n")
return (jshort)CharLowerA((LPSTR)arg0);
}
#endif /* NO_CharLowerA */
#ifndef NO_CharLowerW
JNIEXPORT jshort JNICALL OS_NATIVE(CharLowerW)
(JNIEnv *env, jclass that, jshort arg0)
{
DEBUG_CALL("CharLowerW\n")
return (jshort)CharLowerW((LPWSTR)arg0);
}
#endif /* NO_CharLowerW */
#ifndef NO_CharUpperA
JNIEXPORT jshort JNICALL OS_NATIVE(CharUpperA)
(JNIEnv *env, jclass that, jshort arg0)
{
DEBUG_CALL("CharUpperA\n")
return (jshort)CharUpperA((LPSTR)arg0);
}
#endif /* NO_CharUpperA */
#ifndef NO_CharUpperW
JNIEXPORT jshort JNICALL OS_NATIVE(CharUpperW)
(JNIEnv *env, jclass that, jshort arg0)
{
DEBUG_CALL("CharUpperW\n")
return (jshort)CharUpperW((LPWSTR)arg0);
}
#endif /* NO_CharUpperW */
#ifndef NO_CheckMenuItem
JNIEXPORT jboolean JNICALL OS_NATIVE(CheckMenuItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("CheckMenuItem\n")
return (jboolean)CheckMenuItem((HMENU)arg0, (UINT)arg1, (UINT)arg2);
}
#endif /* NO_CheckMenuItem */
#ifndef NO_ChooseColorA
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseColorA)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSECOLOR _arg0, *lparg0=NULL;
jboolean rc;
DEBUG_CALL("ChooseColorA\n")
if (arg0) lparg0 = getCHOOSECOLORFields(env, arg0, &_arg0);
rc = (jboolean)ChooseColorA(lparg0);
if (arg0) setCHOOSECOLORFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_ChooseColorA */
#ifndef NO_ChooseColorW
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseColorW)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSECOLOR _arg0, *lparg0=NULL;
jboolean rc;
DEBUG_CALL("ChooseColorW\n")
if (arg0) lparg0 = getCHOOSECOLORFields(env, arg0, &_arg0);
rc = (jboolean)ChooseColorW((LPCHOOSECOLORW)lparg0);
if (arg0) setCHOOSECOLORFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_ChooseColorW */
#ifndef NO_ChooseFontA
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseFontA)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSEFONT _arg0, *lparg0=NULL;
jboolean rc;
DEBUG_CALL("ChooseFontA\n")
if (arg0) lparg0 = getCHOOSEFONTFields(env, arg0, &_arg0);
rc = (jboolean)ChooseFontA(lparg0);
if (arg0) setCHOOSEFONTFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_ChooseFontA */
#ifndef NO_ChooseFontW
JNIEXPORT jboolean JNICALL OS_NATIVE(ChooseFontW)
(JNIEnv *env, jclass that, jobject arg0)
{
CHOOSEFONT _arg0, *lparg0=NULL;
jboolean rc;
DEBUG_CALL("ChooseFontW\n")
if (arg0) lparg0 = getCHOOSEFONTFields(env, arg0, &_arg0);
rc = (jboolean)ChooseFontW((LPCHOOSEFONTW)lparg0);
if (arg0) setCHOOSEFONTFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_ChooseFontW */
#ifndef NO_ClientToScreen
JNIEXPORT jboolean JNICALL OS_NATIVE(ClientToScreen)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
POINT _arg1, *lparg1=NULL;
jboolean rc;
DEBUG_CALL("ClientToScreen\n")
if (arg1) lparg1 = getPOINTFields(env, arg1, &_arg1);
rc = (jboolean)ClientToScreen((HWND)arg0, lparg1);
if (arg1) setPOINTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_ClientToScreen */
#ifndef NO_CloseClipboard
JNIEXPORT jboolean JNICALL OS_NATIVE(CloseClipboard)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("CloseClipboard\n")
return (jboolean)CloseClipboard();
}
#endif /* NO_CloseClipboard */
#ifndef NO_CombineRgn
JNIEXPORT jint JNICALL OS_NATIVE(CombineRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("CombineRgn\n")
return (jint)CombineRgn((HRGN)arg0, (HRGN)arg1, (HRGN)arg2, arg3);
}
#endif /* NO_CombineRgn */
#ifndef NO_CommDlgExtendedError
JNIEXPORT jint JNICALL OS_NATIVE(CommDlgExtendedError)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("CommDlgExtendedError\n")
return (jint)CommDlgExtendedError();
}
#endif /* NO_CommDlgExtendedError */
#ifndef NO_CommandBar_1AddAdornments
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1AddAdornments)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("CommandBar_1AddAdornments\n")
return (jboolean)CommandBar_AddAdornments((HWND)arg0, arg1, arg2);
}
#endif /* NO_CommandBar_1AddAdornments */
#ifndef NO_CommandBar_1Create
JNIEXPORT jint JNICALL OS_NATIVE(CommandBar_1Create)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("CommandBar_1Create\n")
return (jint)CommandBar_Create((HINSTANCE)arg0, (HWND)arg1, arg2);
}
#endif /* NO_CommandBar_1Create */
#ifndef NO_CommandBar_1Destroy
JNIEXPORT void JNICALL OS_NATIVE(CommandBar_1Destroy)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CommandBar_1Destroy\n")
CommandBar_Destroy((HWND)arg0);
}
#endif /* NO_CommandBar_1Destroy */
#ifndef NO_CommandBar_1DrawMenuBar
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1DrawMenuBar)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("CommandBar_1DrawMenuBar\n")
return (jboolean)CommandBar_DrawMenuBar((HWND)arg0, (WORD)arg1);
}
#endif /* NO_CommandBar_1DrawMenuBar */
#ifndef NO_CommandBar_1Height
JNIEXPORT jint JNICALL OS_NATIVE(CommandBar_1Height)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CommandBar_1Height\n")
return (jint)CommandBar_Height((HWND)arg0);
}
#endif /* NO_CommandBar_1Height */
#ifndef NO_CommandBar_1InsertMenubarEx
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1InsertMenubarEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("CommandBar_1InsertMenubarEx\n")
return (jboolean)CommandBar_InsertMenubarEx((HWND)arg0, (HINSTANCE)arg1, (LPTSTR)arg2, (WORD)arg3);
}
#endif /* NO_CommandBar_1InsertMenubarEx */
#ifndef NO_CommandBar_1Show
JNIEXPORT jboolean JNICALL OS_NATIVE(CommandBar_1Show)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
DEBUG_CALL("CommandBar_1Show\n")
return (jboolean)CommandBar_Show((HWND)arg0, (BOOL)arg1);
}
#endif /* NO_CommandBar_1Show */
#ifndef NO_CopyImage
JNIEXPORT jint JNICALL OS_NATIVE(CopyImage)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
DEBUG_CALL("CopyImage\n")
return (jint)CopyImage((HANDLE)arg0, arg1, arg2, arg3, arg4);
}
#endif /* NO_CopyImage */
#ifndef NO_CreateAcceleratorTableA
JNIEXPORT jint JNICALL OS_NATIVE(CreateAcceleratorTableA)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1)
{
jbyte *lparg0=NULL;
jint rc;
DEBUG_CALL("CreateAcceleratorTableA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)CreateAcceleratorTableA((LPACCEL)lparg0, arg1);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
return rc;
}
#endif /* NO_CreateAcceleratorTableA */
#ifndef NO_CreateAcceleratorTableW
JNIEXPORT jint JNICALL OS_NATIVE(CreateAcceleratorTableW)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1)
{
jbyte *lparg0=NULL;
jint rc;
DEBUG_CALL("CreateAcceleratorTableW\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)CreateAcceleratorTableW((LPACCEL)lparg0, arg1);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
return rc;
}
#endif /* NO_CreateAcceleratorTableW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateBitmap */
#ifndef NO_CreateCaret
JNIEXPORT jboolean JNICALL OS_NATIVE(CreateCaret)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("CreateCaret\n")
return (jboolean)CreateCaret((HWND)arg0, (HBITMAP)arg1, arg2, arg3);
}
#endif /* NO_CreateCaret */
#ifndef NO_CreateCompatibleBitmap
JNIEXPORT jint JNICALL OS_NATIVE(CreateCompatibleBitmap)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("CreateCompatibleBitmap\n")
return (jint)CreateCompatibleBitmap((HDC)arg0, arg1, arg2);
}
#endif /* NO_CreateCompatibleBitmap */
#ifndef NO_CreateCompatibleDC
JNIEXPORT jint JNICALL OS_NATIVE(CreateCompatibleDC)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CreateCompatibleDC\n")
return (jint)CreateCompatibleDC((HDC)arg0);
}
#endif /* NO_CreateCompatibleDC */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateCursor */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateDCA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateDCW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateDIBSection */
#ifndef NO_CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONT_2
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONT_2)
(JNIEnv *env, jclass that, jobject arg0)
{
LOGFONTA _arg0, *lparg0=NULL;
jint rc;
DEBUG_CALL("CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONT_2\n")
if (arg0) lparg0 = getLOGFONTAFields(env, arg0, &_arg0);
rc = (jint)CreateFontIndirectA(lparg0);
if (arg0) setLOGFONTAFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_CreateFontIndirectA__Lorg_eclipse_swt_internal_win32_LOGFONT_2 */
#ifndef NO_CreateFontIndirectA__I
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectA__I)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CreateFontIndirectA__I\n")
return (jint)CreateFontIndirectA((LPLOGFONTA)arg0);
}
#endif /* NO_CreateFontIndirectA__I */
#ifndef NO_CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONT_2
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONT_2)
(JNIEnv *env, jclass that, jobject arg0)
{
LOGFONTW _arg0, *lparg0=NULL;
jint rc;
DEBUG_CALL("CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONT_2\n")
if (arg0) lparg0 = getLOGFONTWFields(env, arg0, &_arg0);
rc = (jint)CreateFontIndirectW(lparg0);
if (arg0) setLOGFONTWFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_CreateFontIndirectW__Lorg_eclipse_swt_internal_win32_LOGFONT_2 */
#ifndef NO_CreateFontIndirectW__I
JNIEXPORT jint JNICALL OS_NATIVE(CreateFontIndirectW__I)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CreateFontIndirectW__I\n")
return (jint)CreateFontIndirectW((LPLOGFONTW)arg0);
}
#endif /* NO_CreateFontIndirectW__I */
#ifndef NO_CreateIconIndirect
JNIEXPORT jint JNICALL OS_NATIVE(CreateIconIndirect)
(JNIEnv *env, jclass that, jobject arg0)
{
ICONINFO _arg0, *lparg0=NULL;
jint rc;
DEBUG_CALL("CreateIconIndirect\n")
if (arg0) lparg0 = getICONINFOFields(env, arg0, &_arg0);
rc = (jint)CreateIconIndirect(lparg0);
if (arg0) setICONINFOFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_CreateIconIndirect */
#ifndef NO_CreateMenu
JNIEXPORT jint JNICALL OS_NATIVE(CreateMenu)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("CreateMenu\n")
return (jint)CreateMenu();
}
#endif /* NO_CreateMenu */
#ifndef NO_CreatePalette
JNIEXPORT jint JNICALL OS_NATIVE(CreatePalette)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jint rc;
DEBUG_CALL("CreatePalette\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)CreatePalette((LOGPALETTE *)lparg0);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
return rc;
}
#endif /* NO_CreatePalette */
#ifndef NO_CreatePatternBrush
JNIEXPORT jint JNICALL OS_NATIVE(CreatePatternBrush)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CreatePatternBrush\n")
return (jint)CreatePatternBrush((HBITMAP)arg0);
}
#endif /* NO_CreatePatternBrush */
#ifndef NO_CreatePen
JNIEXPORT jint JNICALL OS_NATIVE(CreatePen)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("CreatePen\n")
return (jint)CreatePen(arg0, arg1, (COLORREF)arg2);
}
#endif /* NO_CreatePen */
#ifndef NO_CreatePopupMenu
JNIEXPORT jint JNICALL OS_NATIVE(CreatePopupMenu)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("CreatePopupMenu\n")
return (jint)CreatePopupMenu();
}
#endif /* NO_CreatePopupMenu */
#ifndef NO_CreateRectRgn
JNIEXPORT jint JNICALL OS_NATIVE(CreateRectRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("CreateRectRgn\n")
return (jint)CreateRectRgn(arg0, arg1, arg2, arg3);
}
#endif /* NO_CreateRectRgn */
#ifndef NO_CreateSolidBrush
JNIEXPORT jint JNICALL OS_NATIVE(CreateSolidBrush)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("CreateSolidBrush\n")
return (jint)CreateSolidBrush((COLORREF)arg0);
}
#endif /* NO_CreateSolidBrush */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateWindowExA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_CreateWindowExW */
#ifndef NO_DefWindowProcA
JNIEXPORT jint JNICALL OS_NATIVE(DefWindowProcA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("DefWindowProcA\n")
return (jint)DefWindowProcA((HWND)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
}
#endif /* NO_DefWindowProcA */
#ifndef NO_DefWindowProcW
JNIEXPORT jint JNICALL OS_NATIVE(DefWindowProcW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
DEBUG_CALL("DefWindowProcW\n")
return (jint)DefWindowProcW((HWND)arg0, arg1, (WPARAM)arg2, (LPARAM)arg3);
}
#endif /* NO_DefWindowProcW */
#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)
{
DEBUG_CALL("DeferWindowPos\n")
return (jint)DeferWindowPos((HDWP)arg0, (HWND)arg1, (HWND)arg2, arg3, arg4, arg5, arg6, arg7);
}
#endif /* NO_DeferWindowPos */
#ifndef NO_DeleteDC
JNIEXPORT jboolean JNICALL OS_NATIVE(DeleteDC)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DeleteDC\n")
return (jboolean)DeleteDC((HDC)arg0);
}
#endif /* NO_DeleteDC */
#ifndef NO_DeleteMenu
JNIEXPORT jboolean JNICALL OS_NATIVE(DeleteMenu)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("DeleteMenu\n")
return (jboolean)DeleteMenu((HMENU)arg0, arg1, arg2);
}
#endif /* NO_DeleteMenu */
#ifndef NO_DeleteObject
JNIEXPORT jboolean JNICALL OS_NATIVE(DeleteObject)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DeleteObject\n")
return (jboolean)DeleteObject((HGDIOBJ)arg0);
}
#endif /* NO_DeleteObject */
#ifndef NO_DestroyAcceleratorTable
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyAcceleratorTable)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DestroyAcceleratorTable\n")
return (jboolean)DestroyAcceleratorTable((HACCEL)arg0);
}
#endif /* NO_DestroyAcceleratorTable */
#ifndef NO_DestroyCaret
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyCaret)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("DestroyCaret\n")
return (jboolean)DestroyCaret();
}
#endif /* NO_DestroyCaret */
#ifndef NO_DestroyCursor
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyCursor)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DestroyCursor\n")
return (jboolean)DestroyCursor((HCURSOR)arg0);
}
#endif /* NO_DestroyCursor */
#ifndef NO_DestroyIcon
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyIcon)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DestroyIcon\n")
return (jboolean)DestroyIcon((HICON)arg0);
}
#endif /* NO_DestroyIcon */
#ifndef NO_DestroyMenu
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyMenu)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DestroyMenu\n")
return (jboolean)DestroyMenu((HMENU)arg0);
}
#endif /* NO_DestroyMenu */
#ifndef NO_DestroyWindow
JNIEXPORT jboolean JNICALL OS_NATIVE(DestroyWindow)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DestroyWindow\n")
return (jboolean)DestroyWindow((HWND)arg0);
}
#endif /* NO_DestroyWindow */
#ifndef NO_DispatchMessageA
JNIEXPORT jint JNICALL OS_NATIVE(DispatchMessageA)
(JNIEnv *env, jclass that, jobject arg0)
{
MSG _arg0, *lparg0=NULL;
DEBUG_CALL("DispatchMessageA\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
return (jint)DispatchMessageA(lparg0);
}
#endif /* NO_DispatchMessageA */
#ifndef NO_DispatchMessageW
JNIEXPORT jint JNICALL OS_NATIVE(DispatchMessageW)
(JNIEnv *env, jclass that, jobject arg0)
{
MSG _arg0, *lparg0=NULL;
DEBUG_CALL("DispatchMessageW\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
return (jint)DispatchMessageW(lparg0);
}
#endif /* NO_DispatchMessageW */
#ifndef NO_DragDetect
JNIEXPORT jboolean JNICALL OS_NATIVE(DragDetect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
POINT _arg1, *lparg1=NULL;
DEBUG_CALL("DragDetect\n")
if (arg1) lparg1 = getPOINTFields(env, arg1, &_arg1);
return (jboolean)DragDetect((HWND)arg0, *lparg1);
}
#endif /* NO_DragDetect */
#ifndef NO_DragFinish
JNIEXPORT void JNICALL OS_NATIVE(DragFinish)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DragFinish\n")
DragFinish((HDROP)arg0);
}
#endif /* NO_DragFinish */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_DragQueryFileA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_DragQueryFileW */
#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;
DEBUG_CALL("DrawEdge\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)DrawEdge((HDC)arg0, lparg1, arg2, arg3);
if (arg1) setRECTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_DrawEdge */
#ifndef NO_DrawFocusRect
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawFocusRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
RECT _arg1, *lparg1=NULL;
jboolean rc;
DEBUG_CALL("DrawFocusRect\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)DrawFocusRect((HDC)arg0, lparg1);
if (arg1) setRECTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_DrawFocusRect */
#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;
DEBUG_CALL("DrawFrameControl\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)DrawFrameControl((HDC)arg0, lparg1, arg2, arg3);
if (arg1) setRECTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_DrawFrameControl */
#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)
{
DEBUG_CALL("DrawIconEx\n")
return (jboolean)DrawIconEx((HDC)arg0, arg1, arg2, (HICON)arg3, arg4, arg5, arg6, (HBRUSH)arg7, arg8);
}
#endif /* NO_DrawIconEx */
#ifndef NO_DrawMenuBar
JNIEXPORT jboolean JNICALL OS_NATIVE(DrawMenuBar)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("DrawMenuBar\n")
return (jboolean)DrawMenuBar((HWND)arg0);
}
#endif /* NO_DrawMenuBar */
#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)
{
DEBUG_CALL("DrawStateA\n")
return (jboolean)DrawStateA((HDC)arg0, (HBRUSH)arg1, (DRAWSTATEPROC)arg2, (LPARAM)arg3, (WPARAM)arg4, arg5, arg6, arg7, arg8, arg9);
}
#endif /* NO_DrawStateA */
#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)
{
DEBUG_CALL("DrawStateW\n")
return (jboolean)DrawStateW((HDC)arg0, (HBRUSH)arg1, (DRAWSTATEPROC)arg2, (LPARAM)arg3, (WPARAM)arg4, arg5, arg6, arg7, arg8, arg9);
}
#endif /* NO_DrawStateW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_DrawTextA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_DrawTextW */
#ifndef NO_Ellipse
JNIEXPORT jboolean JNICALL OS_NATIVE(Ellipse)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
DEBUG_CALL("Ellipse\n")
return (jboolean)Ellipse((HDC)arg0, arg1, arg2, arg3, arg4);
}
#endif /* NO_Ellipse */
#ifndef NO_EnableMenuItem
JNIEXPORT jboolean JNICALL OS_NATIVE(EnableMenuItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("EnableMenuItem\n")
return (jboolean)EnableMenuItem((HMENU)arg0, arg1, arg2);
}
#endif /* NO_EnableMenuItem */
#ifndef NO_EnableScrollBar
JNIEXPORT jboolean JNICALL OS_NATIVE(EnableScrollBar)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("EnableScrollBar\n")
return (jboolean)EnableScrollBar((HWND)arg0, arg1, arg2);
}
#endif /* NO_EnableScrollBar */
#ifndef NO_EnableWindow
JNIEXPORT jboolean JNICALL OS_NATIVE(EnableWindow)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
DEBUG_CALL("EnableWindow\n")
return (jboolean)EnableWindow((HWND)arg0, arg1);
}
#endif /* NO_EnableWindow */
#ifndef NO_EndDeferWindowPos
JNIEXPORT jboolean JNICALL OS_NATIVE(EndDeferWindowPos)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("EndDeferWindowPos\n")
return (jboolean)EndDeferWindowPos((HDWP)arg0);
}
#endif /* NO_EndDeferWindowPos */
#ifndef NO_EndDoc
JNIEXPORT jint JNICALL OS_NATIVE(EndDoc)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("EndDoc\n")
return (jint)EndDoc((HDC)arg0);
}
#endif /* NO_EndDoc */
#ifndef NO_EndPage
JNIEXPORT jint JNICALL OS_NATIVE(EndPage)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("EndPage\n")
return (jint)EndPage((HDC)arg0);
}
#endif /* NO_EndPage */
#ifndef NO_EndPaint
JNIEXPORT jint JNICALL OS_NATIVE(EndPaint)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
PAINTSTRUCT _arg1, *lparg1=NULL;
DEBUG_CALL("EndPaint\n")
if (arg1) lparg1 = getPAINTSTRUCTFields(env, arg1, &_arg1);
return (jint)EndPaint((HWND)arg0, lparg1);
}
#endif /* NO_EndPaint */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_EnumFontFamiliesA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_EnumFontFamiliesW */
#ifndef NO_EnumSystemLanguageGroupsA
JNIEXPORT jboolean JNICALL OS_NATIVE(EnumSystemLanguageGroupsA)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
HMODULE hm;
FARPROC fp;
DEBUG_CALL("EnumSystemLanguageGroupsA\n")
/* SPECIAL */
/*
* EnumSystemLanguageGroupsA is a Win2000 or later specific call
* If you link it into swt.dll a system modal entry point not found dialog will
* appear as soon as swt.dll is loaded. Here we check for the entry point and
* only do the call if it exists.
*/
if ((hm=GetModuleHandle("kernel32.dll")) && (fp=GetProcAddress(hm, "EnumSystemLanguageGroupsA"))) {
return (jboolean)(fp)((LANGUAGEGROUP_ENUMPROCA)arg0, arg1, (LONG_PTR)arg2);
// return (jboolean)EnumSystemLanguageGroupsA((LANGUAGEGROUP_ENUMPROCA)arg0, arg1, (LONG_PTR)arg2);
}
return 0;
}
#endif /* NO_EnumSystemLanguageGroupsA */
#ifndef NO_EnumSystemLanguageGroupsW
JNIEXPORT jboolean JNICALL OS_NATIVE(EnumSystemLanguageGroupsW)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
HMODULE hm;
FARPROC fp;
DEBUG_CALL("EnumSystemLanguageGroupsW\n")
/* SPECIAL */
/*
* EnumSystemLanguageGroupsW is a Win2000 or later specific call
* If you link it into swt.dll a system modal entry point not found dialog will
* appear as soon as swt.dll is loaded. Here we check for the entry point and
* only do the call if it exists.
*/
if ((hm=GetModuleHandle("kernel32.dll")) && (fp=GetProcAddress(hm, "EnumSystemLanguageGroupsW"))) {
return (jboolean)(fp)((LANGUAGEGROUP_ENUMPROCW)arg0, arg1, (LONG_PTR)arg2);
// return (jboolean)EnumSystemLanguageGroupsW((LANGUAGEGROUP_ENUMPROCW)arg0, arg1, (LONG_PTR)arg2);
}
return 0;
}
#endif /* NO_EnumSystemLanguageGroupsW */
#ifndef NO_EnumSystemLocalesA
JNIEXPORT jboolean JNICALL OS_NATIVE(EnumSystemLocalesA)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("EnumSystemLocalesA\n")
return (jboolean)EnumSystemLocalesA((LOCALE_ENUMPROCA)arg0, arg1);
}
#endif /* NO_EnumSystemLocalesA */
#ifndef NO_EnumSystemLocalesW
JNIEXPORT jboolean JNICALL OS_NATIVE(EnumSystemLocalesW)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("EnumSystemLocalesW\n")
return (jboolean)EnumSystemLocalesW((LOCALE_ENUMPROCW)arg0, arg1);
}
#endif /* NO_EnumSystemLocalesW */
#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;
DEBUG_CALL("EqualRect\n")
if (arg0) lparg0 = getRECTFields(env, arg0, &_arg0);
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
return (jboolean)EqualRect((CONST RECT *)lparg0, (CONST RECT *)lparg1);
}
#endif /* NO_EqualRect */
#ifndef NO_EqualRgn
JNIEXPORT jboolean JNICALL OS_NATIVE(EqualRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("EqualRgn\n")
return (jboolean)EqualRgn((HRGN)arg0, (HRGN)arg1);
}
#endif /* NO_EqualRgn */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_ExpandEnvironmentStringsA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_ExpandEnvironmentStringsW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_ExtTextOutA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_ExtTextOutW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_ExtractIconExA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_ExtractIconExW */
#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;
DEBUG_CALL("FillRect\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jint)FillRect((HDC)arg0, lparg1, (HBRUSH)arg2);
if (arg1) setRECTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_FillRect */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_FindWindowA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_FindWindowW */
#ifndef NO_FreeLibrary
JNIEXPORT jboolean JNICALL OS_NATIVE(FreeLibrary)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("FreeLibrary\n")
return (jboolean)FreeLibrary((HMODULE)arg0);
}
#endif /* NO_FreeLibrary */
#ifndef NO_GetACP
JNIEXPORT jint JNICALL OS_NATIVE(GetACP)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetACP\n")
return (jint)GetACP();
}
#endif /* NO_GetACP */
#ifndef NO_GetActiveWindow
JNIEXPORT jint JNICALL OS_NATIVE(GetActiveWindow)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetActiveWindow\n")
return (jint)GetActiveWindow();
}
#endif /* NO_GetActiveWindow */
#ifndef NO_GetBkColor
JNIEXPORT jint JNICALL OS_NATIVE(GetBkColor)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetBkColor\n")
return (jint)GetBkColor((HDC)arg0);
}
#endif /* NO_GetBkColor */
#ifndef NO_GetCapture
JNIEXPORT jint JNICALL OS_NATIVE(GetCapture)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetCapture\n")
return (jint)GetCapture();
}
#endif /* NO_GetCapture */
#ifndef NO_GetCaretPos
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCaretPos)
(JNIEnv *env, jclass that, jobject arg0)
{
POINT _arg0, *lparg0=NULL;
jboolean rc;
DEBUG_CALL("GetCaretPos\n")
if (arg0) lparg0 = getPOINTFields(env, arg0, &_arg0);
rc = (jboolean)GetCaretPos(lparg0);
if (arg0) setPOINTFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_GetCaretPos */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetCharABCWidthsA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetCharABCWidthsW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetCharWidthA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetCharWidthW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetCharacterPlacementA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetCharacterPlacementW */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetClassInfoA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetClassInfoW */
#ifndef NO_GetClientRect
JNIEXPORT jboolean JNICALL OS_NATIVE(GetClientRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
RECT _arg1, *lparg1=NULL;
jboolean rc;
DEBUG_CALL("GetClientRect\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jboolean)GetClientRect((HWND)arg0, lparg1);
if (arg1) setRECTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_GetClientRect */
#ifndef NO_GetClipBox
JNIEXPORT jint JNICALL OS_NATIVE(GetClipBox)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
RECT _arg1, *lparg1=NULL;
jint rc;
DEBUG_CALL("GetClipBox\n")
if (arg1) lparg1 = getRECTFields(env, arg1, &_arg1);
rc = (jint)GetClipBox((HDC)arg0, lparg1);
if (arg1) setRECTFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_GetClipBox */
#ifndef NO_GetClipRgn
JNIEXPORT jint JNICALL OS_NATIVE(GetClipRgn)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("GetClipRgn\n")
return (jint)GetClipRgn((HDC)arg0, (HRGN)arg1);
}
#endif /* NO_GetClipRgn */
#ifndef NO_GetClipboardData
JNIEXPORT jint JNICALL OS_NATIVE(GetClipboardData)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetClipboardData\n")
return (jint)GetClipboardData(arg0);
}
#endif /* NO_GetClipboardData */
#ifndef NO_GetClipboardFormatNameA
JNIEXPORT jint JNICALL OS_NATIVE(GetClipboardFormatNameA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2)
{
jbyte *lparg1=NULL;
jint rc;
DEBUG_CALL("GetClipboardFormatNameA\n")
if (arg1) lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL);
rc = (jint)GetClipboardFormatNameA(arg0, lparg1, arg2);
if (arg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
return rc;
}
#endif /* NO_GetClipboardFormatNameA */
#ifndef NO_GetClipboardFormatNameW
JNIEXPORT jint JNICALL OS_NATIVE(GetClipboardFormatNameW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2)
{
jchar *lparg1=NULL;
jint rc;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetClipboardFormatNameW */
#ifndef NO_GetCurrentObject
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentObject)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("GetCurrentObject\n")
return (jint)GetCurrentObject((HDC)arg0, arg1);
}
#endif /* NO_GetCurrentObject */
#ifndef NO_GetCurrentProcessId
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcessId)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetCurrentProcessId\n")
return (jint)GetCurrentProcessId();
}
#endif /* NO_GetCurrentProcessId */
#ifndef NO_GetCurrentThreadId
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentThreadId)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetCurrentThreadId\n")
return (jint)GetCurrentThreadId();
}
#endif /* NO_GetCurrentThreadId */
#ifndef NO_GetCursor
JNIEXPORT jint JNICALL OS_NATIVE(GetCursor)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetCursor\n")
return (jint)GetCursor();
}
#endif /* NO_GetCursor */
#ifndef NO_GetCursorPos
JNIEXPORT jboolean JNICALL OS_NATIVE(GetCursorPos)
(JNIEnv *env, jclass that, jobject arg0)
{
POINT _arg0, *lparg0=NULL;
jboolean rc;
DEBUG_CALL("GetCursorPos\n")
if (arg0) lparg0 = getPOINTFields(env, arg0, &_arg0);
rc = (jboolean)GetCursorPos(lparg0);
if (arg0) setPOINTFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_GetCursorPos */
#ifndef NO_GetDC
JNIEXPORT jint JNICALL OS_NATIVE(GetDC)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetDC\n")
return (jint)GetDC((HWND)arg0);
}
#endif /* NO_GetDC */
#ifndef NO_GetDCEx
JNIEXPORT jint JNICALL OS_NATIVE(GetDCEx)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("GetDCEx\n")
return (jint)GetDCEx((HWND)arg0, (HRGN)arg1, arg2);
}
#endif /* NO_GetDCEx */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetDIBColorTable */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetDIBits */
#ifndef NO_GetDesktopWindow
JNIEXPORT jint JNICALL OS_NATIVE(GetDesktopWindow)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetDesktopWindow\n")
return (jint)GetDesktopWindow();
}
#endif /* NO_GetDesktopWindow */
#ifndef NO_GetDeviceCaps
JNIEXPORT jint JNICALL OS_NATIVE(GetDeviceCaps)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("GetDeviceCaps\n")
return (jint)GetDeviceCaps((HDC)arg0, arg1);
}
#endif /* NO_GetDeviceCaps */
#ifndef NO_GetDialogBaseUnits
JNIEXPORT jint JNICALL OS_NATIVE(GetDialogBaseUnits)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetDialogBaseUnits\n")
return (jint)GetDialogBaseUnits();
}
#endif /* NO_GetDialogBaseUnits */
#ifndef NO_GetDlgItem
JNIEXPORT jint JNICALL OS_NATIVE(GetDlgItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("GetDlgItem\n")
return (jint)GetDlgItem((HWND)arg0, arg1);
}
#endif /* NO_GetDlgItem */
#ifndef NO_GetDoubleClickTime
JNIEXPORT jint JNICALL OS_NATIVE(GetDoubleClickTime)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetDoubleClickTime\n")
return (jint)GetDoubleClickTime();
}
#endif /* NO_GetDoubleClickTime */
#ifndef NO_GetFocus
JNIEXPORT jint JNICALL OS_NATIVE(GetFocus)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetFocus\n")
return (jint)GetFocus();
}
#endif /* NO_GetFocus */
#ifndef NO_GetFontLanguageInfo
JNIEXPORT jint JNICALL OS_NATIVE(GetFontLanguageInfo)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetFontLanguageInfo\n")
return (jint)GetFontLanguageInfo((HDC)arg0);
}
#endif /* NO_GetFontLanguageInfo */
#ifndef NO_GetIconInfo
JNIEXPORT jboolean JNICALL OS_NATIVE(GetIconInfo)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
ICONINFO _arg1, *lparg1=NULL;
jboolean rc;
DEBUG_CALL("GetIconInfo\n")
if (arg1) lparg1 = getICONINFOFields(env, arg1, &_arg1);
rc = (jboolean)GetIconInfo((HICON)arg0, lparg1);
if (arg1) setICONINFOFields(env, arg1, lparg1);
return rc;
}
#endif /* NO_GetIconInfo */
#ifndef NO_GetKeyState
JNIEXPORT jshort JNICALL OS_NATIVE(GetKeyState)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetKeyState\n")
return (jshort)GetKeyState(arg0);
}
#endif /* NO_GetKeyState */
#ifndef NO_GetKeyboardLayout
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyboardLayout)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetKeyboardLayout\n")
return (jint)GetKeyboardLayout(arg0);
}
#endif /* NO_GetKeyboardLayout */
#ifndef NO_GetKeyboardLayoutList
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyboardLayoutList)
(JNIEnv *env, jclass that, jint arg0, jintArray arg1)
{
jint *lparg1=NULL;
jint rc;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetKeyboardLayoutList */
#ifndef NO_GetKeyboardState
JNIEXPORT jboolean JNICALL OS_NATIVE(GetKeyboardState)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jboolean rc;
DEBUG_CALL("GetKeyboardState\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jboolean)GetKeyboardState((PBYTE)lparg0);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
return rc;
}
#endif /* NO_GetKeyboardState */
#ifndef NO_GetKeyNameTextA
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyNameTextA)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2)
{
jbyte *lparg1=NULL;
jint rc;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetKeyNameTextA */
#ifndef NO_GetKeyNameTextW
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyNameTextW)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2)
{
jchar *lparg1=NULL;
jint rc;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetKeyNameTextW */
#ifndef NO_GetLastActivePopup
JNIEXPORT jint JNICALL OS_NATIVE(GetLastActivePopup)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetLastActivePopup\n")
return (jint)GetLastActivePopup((HWND)arg0);
}
#endif /* NO_GetLastActivePopup */
#ifndef NO_GetLastError
JNIEXPORT jint JNICALL OS_NATIVE(GetLastError)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetLastError\n")
return (jint)GetLastError();
}
#endif /* NO_GetLastError */
#ifndef NO_GetLibraryHandle
JNIEXPORT jint JNICALL OS_NATIVE(GetLibraryHandle)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetLibraryHandle\n")
return (jint)g_hInstance;
}
#endif /* NO_GetLibraryHandle */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetLocaleInfoA */
#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;
DEBUG_CALL("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);
return rc;
}
#endif /* NO_GetLocaleInfoW */
#ifndef NO_GetMenu
JNIEXPORT jint JNICALL OS_NATIVE(GetMenu)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetMenu\n")
return (jint)GetMenu((HWND)arg0);
}
#endif /* NO_GetMenu */
#ifndef NO_GetMenuDefaultItem
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuDefaultItem)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
DEBUG_CALL("GetMenuDefaultItem\n")
return (jint)GetMenuDefaultItem((HMENU)arg0, arg1, arg2);
}
#endif /* NO_GetMenuDefaultItem */
#ifndef NO_GetMenuInfo
JNIEXPORT jboolean JNICALL OS_NATIVE(GetMenuInfo)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
MENUINFO _arg1, *lparg1=NULL;
jboolean rc = (jboolean)FALSE;
HMODULE hm;
FARPROC fp;
DEBUG_CALL("GetMenuInfo\n")
/* SPECIAL */
/*
* GetMenuInfo is a Win2000 and Win98 specific call
* If you link it into swt.dll a system modal entry point not found dialog will
* appear as soon as swt.dll is loaded. Here we check for the entry point and
* only do the call if it exists.
*/
if ((hm=GetModuleHandle("user32.dll")) && (fp=GetProcAddress(hm, "GetMenuInfo"))) {
if (arg1) lparg1 = getMENUINFOFields(env, arg1, &_arg1);
rc = (jboolean) (fp)((HMENU)arg0, lparg1);
// rc = (jboolean)GetMenuInfo(arg0, lparg1);
if (arg1) setMENUINFOFields(env, arg1, lparg1);
}
return rc;
}
#endif /* NO_GetMenuInfo */
#ifndef NO_GetMenuItemCount
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemCount)
(JNIEnv *env, jclass that, jint arg0)
{
DEBUG_CALL("GetMenuItemCount\n")
return (jint)GetMenuItemCount((HMENU)arg0);
}
#endif /* NO_GetMenuItemCount */
#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;
DEBUG_CALL("GetMenuItemInfoA\n")
if (arg3) lparg3 = getMENUITEMINFOFields(env, arg3, &_arg3);
rc = (jboolean)GetMenuItemInfoA((HMENU)arg0, arg1, arg2, lparg3);
if (arg3) setMENUITEMINFOFields(env, arg3, lparg3);
return rc;
}
#endif /* NO_GetMenuItemInfoA */
#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;
DEBUG_CALL("GetMenuItemInfoW\n")
if (arg3) lparg3 = getMENUITEMINFOFields(env, arg3, &_arg3);
rc = (jboolean)GetMenuItemInfoW((HMENU)arg0, arg1, arg2, (LPMENUITEMINFOW)lparg3);
if (arg3) setMENUITEMINFOFields(env, arg3, lparg3);
return rc;
}
#endif /* NO_GetMenuItemInfoW */
#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;
DEBUG_CALL("GetMessageA\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
rc = (jboolean)GetMessageA(lparg0, (HWND)arg1, arg2, arg3);
if (arg0) setMSGFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_GetMessageA */
#ifndef NO_GetMessagePos
JNIEXPORT jint JNICALL OS_NATIVE(GetMessagePos)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetMessagePos\n")
return (jint)GetMessagePos();
}
#endif /* NO_GetMessagePos */
#ifndef NO_GetMessageTime
JNIEXPORT jint JNICALL OS_NATIVE(GetMessageTime)
(JNIEnv *env, jclass that)
{
DEBUG_CALL("GetMessageTime\n")
return (jint)GetMessageTime();
}
#endif /* NO_GetMessageTime */
#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;
DEBUG_CALL("GetMessageW\n")
if (arg0) lparg0 = getMSGFields(env, arg0, &_arg0);
rc = (jboolean)GetMessageW(lparg0, (HWND)arg1, arg2, arg3);
if (arg0) setMSGFields(env, arg0, lparg0);
return rc;
}
#endif /* NO_GetMessageW */
#ifndef NO_GetModuleHandleA
JNIEXPORT jint JNICALL OS_NATIVE(GetModuleHandleA)
(JNIEnv *env, jclass that, jbyteArray arg0)
{
jbyte *lparg0=NULL;
jint rc;
DEBUG_CALL("GetModuleHandleA\n")
if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
rc = (jint)GetModuleHandleA((LPSTR)lparg0);
if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
return rc;
}
#endif /* NO_GetModuleHandleA */
#ifndef NO_GetModuleHandleW
JNIEXPORT jint JNICALL OS_NATIVE(GetModuleHandleW)
(JNIEnv *env, jclass that, jcharArray arg0)
{
jchar *lparg0=NULL;
jint rc;
DEBUG_CALL("GetModuleHandleW\n")
if (arg0) lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL);
rc = (jint)GetModuleHandleW((LPWSTR)lparg0);
if (arg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
return rc;
}
#endif /* NO_GetModuleHandleW */
#ifndef NO_GetNearestPaletteIndex
JNIEXPORT jint JNICALL OS_NATIVE(GetNearestPaletteIndex)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
DEBUG_CALL("GetNearestPaletteIndex\n")
return (jint)GetNearestPaletteIndex((HPALETTE)arg0, (COLORREF)arg1);
}
#endif /* NO_GetNearestPaletteIndex */
#ifndef NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONT_2
JNIEXPORT jint JNICALL OS_NATIVE(GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONT_2)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
LOGFONT _arg2, *lparg2=NULL;
jint rc;
DEBUG_CALL("GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONT_2\n")
if (arg2) lparg2 = getLOGFONTAFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)arg0, arg1, lparg2);
if (arg2) setLOGFONTAFields(env, arg2, lparg2);
return rc;
}
#endif /* NO_GetObjectA__IILorg_eclipse_swt_internal_win32_LOGFONT_2 */
#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;
DEBUG_CALL("GetObjectA__IILorg_eclipse_swt_internal_win32_BITMAP_2\n")
if (arg2) lparg2 = getBITMAPFields(env, arg2, &_arg2);
rc = (jint)GetObjectA((HGDIOBJ)a