1 /*******************************************************************************
2 * Copyright (c) 2000, 2019 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
23 char * OS_nativeFunctionNames[] = {
28 "ActivateKeyboardLayout",
31 "AllowSetForegroundWindow",
35 "BITMAPINFOHEADER_1sizeof",
37 "BLENDFUNCTION_1sizeof",
38 "BP_1PAINTPARAMS_1sizeof",
40 "BUTTON_1IMAGELIST_1sizeof",
42 "BeginDeferWindowPos",
48 "BufferedPaintUnInit",
49 "CANDIDATEFORM_1sizeof",
50 "CERT_1CONTEXT_1sizeof",
52 "CERT_1NAME_1BLOB_1sizeof",
53 "CERT_1PUBLIC_1KEY_1INFO_1sizeof",
54 "CHOOSECOLOR_1sizeof",
57 "COMBOBOXINFO_1sizeof",
58 "COMPOSITIONFORM_1sizeof",
59 "CREATESTRUCT_1sizeof",
60 "CRYPT_1ALGORITHM_1IDENTIFIER_1sizeof",
61 "CRYPT_1BIT_1BLOB_1sizeof",
62 "CRYPT_1INTEGER_1BLOB_1sizeof",
63 "CRYPT_1OBJID_1BLOB_1sizeof",
69 "ChildWindowFromPointEx",
75 "CloseGestureInfoHandle",
79 "CloseTouchInputHandle",
81 "CoInternetIsFeatureEnabled",
82 "CoInternetSetFeatureEnabled",
86 "CommDlgExtendedError",
88 "CreateAcceleratorTable",
92 "CreateCompatibleBitmap",
96 "CreateDIBSection__JJI_3JJI",
97 "CreateDIBSection__J_3BI_3JJI",
99 "CreateFontIndirect__J",
100 "CreateFontIndirect__Lorg_eclipse_swt_internal_win32_LOGFONT_2",
101 "CreateIconIndirect",
103 "CreatePatternBrush",
110 "CreateStreamOnHGlobal",
113 "DIBSECTION_1sizeof",
114 "DOCHOSTUIINFO_1sizeof",
116 "DRAWITEMSTRUCT_1sizeof",
127 "DestroyAcceleratorTable",
134 "DocumentProperties",
144 "DrawThemeBackground",
147 "EMREXTCREATEFONTINDIRECTW_1sizeof",
149 "EXTLOGFONTW_1sizeof",
159 "EnumDisplayMonitors",
162 "EnumSystemLanguageGroups",
166 "ExpandEnvironmentStrings",
172 "FLICK_1DATA_1sizeof",
173 "FLICK_1POINT_1sizeof",
174 "FileTimeToSystemTime",
177 "GCP_1RESULTS_1sizeof",
178 "GESTURECONFIG_1sizeof",
179 "GESTUREINFO_1sizeof",
180 "GET_1WHEEL_1DELTA_1WPARAM",
183 "GID_1ROTATE_1ANGLE_1FROM_1ARGUMENT",
184 "GRADIENT_1RECT_1sizeof",
185 "GUITHREADINFO_1sizeof",
194 "GetCharacterPlacement",
201 "GetClipboardFormatName",
205 "GetCurrentProcessExplicitAppUserModelID",
206 "GetCurrentProcessId",
207 "GetCurrentThreadId",
216 "GetDialogBaseUnits",
218 "GetDoubleClickTime",
221 "GetFontLanguageInfo",
222 "GetForegroundWindow",
230 "GetKeyboardLayoutList",
232 "GetLastActivePopup",
234 "GetLayeredWindowAttributes",
240 "GetMenuDefaultItem",
253 "GetObject__JILorg_eclipse_swt_internal_win32_BITMAP_2",
254 "GetObject__JILorg_eclipse_swt_internal_win32_DIBSECTION_2",
255 "GetObject__JILorg_eclipse_swt_internal_win32_LOGBRUSH_2",
256 "GetObject__JILorg_eclipse_swt_internal_win32_LOGFONT_2",
258 "GetOutlineTextMetrics",
276 "GetSystemDefaultUILanguage",
280 "GetTextExtentPoint32",
283 "GetThemeTextExtent",
293 "GetWindowPlacement",
297 "GetWindowTextLength",
298 "GetWindowThreadProcessId",
306 "HDHITTESTINFO_1sizeof",
310 "HIGHCONTRAST_1sizeof",
318 "INITCOMMONCONTROLSEX_1sizeof",
321 "ImageList_1AddMasked",
322 "ImageList_1BeginDrag",
324 "ImageList_1Destroy",
325 "ImageList_1DragEnter",
326 "ImageList_1DragLeave",
327 "ImageList_1DragMove",
328 "ImageList_1DragShowNolock",
329 "ImageList_1EndDrag",
330 "ImageList_1GetIconSize",
331 "ImageList_1GetImageCount",
333 "ImageList_1Replace",
334 "ImageList_1ReplaceIcon",
335 "ImageList_1SetIconSize",
336 "ImmAssociateContext",
340 "ImmGetCompositionFont",
341 "ImmGetCompositionString__JI_3BI",
342 "ImmGetCompositionString__JI_3CI",
343 "ImmGetCompositionString__JI_3II",
345 "ImmGetConversionStatus",
346 "ImmGetDefaultIMEWnd",
350 "ImmSetCandidateWindow",
351 "ImmSetCompositionFont",
352 "ImmSetCompositionWindow",
353 "ImmSetConversionStatus",
355 "InitCommonControls",
356 "InitCommonControlsEx",
372 "KEYBDINPUT_1sizeof",
382 "LVHITTESTINFO_1sizeof",
383 "LVINSERTMARK_1sizeof",
397 "MCHITTESTINFO_1sizeof",
398 "MEASUREITEMSTRUCT_1sizeof",
399 "MENUBARINFO_1sizeof",
401 "MENUITEMINFO_1sizeof",
402 "MINMAXINFO_1sizeof",
403 "MONITORINFO_1sizeof",
404 "MOUSEINPUT_1sizeof",
408 "MapWindowPoints__JJLorg_eclipse_swt_internal_win32_POINT_2I",
409 "MapWindowPoints__JJLorg_eclipse_swt_internal_win32_RECT_2I",
412 "ModifyWorldTransform",
415 "MoveMemory__JLorg_eclipse_swt_internal_win32_CIDA_2I",
416 "MoveMemory__JLorg_eclipse_swt_internal_win32_DEVMODE_2I",
417 "MoveMemory__JLorg_eclipse_swt_internal_win32_DOCHOSTUIINFO_2I",
418 "MoveMemory__JLorg_eclipse_swt_internal_win32_DROPFILES_2I",
419 "MoveMemory__JLorg_eclipse_swt_internal_win32_GESTURECONFIG_2I",
420 "MoveMemory__JLorg_eclipse_swt_internal_win32_GRADIENT_1RECT_2I",
421 "MoveMemory__JLorg_eclipse_swt_internal_win32_KEYBDINPUT_2I",
422 "MoveMemory__JLorg_eclipse_swt_internal_win32_LOGFONT_2I",
423 "MoveMemory__JLorg_eclipse_swt_internal_win32_MEASUREITEMSTRUCT_2I",
424 "MoveMemory__JLorg_eclipse_swt_internal_win32_MINMAXINFO_2I",
425 "MoveMemory__JLorg_eclipse_swt_internal_win32_MOUSEINPUT_2I",
426 "MoveMemory__JLorg_eclipse_swt_internal_win32_MSG_2I",
427 "MoveMemory__JLorg_eclipse_swt_internal_win32_NMLVCUSTOMDRAW_2I",
428 "MoveMemory__JLorg_eclipse_swt_internal_win32_NMLVDISPINFO_2I",
429 "MoveMemory__JLorg_eclipse_swt_internal_win32_NMTBCUSTOMDRAW_2I",
430 "MoveMemory__JLorg_eclipse_swt_internal_win32_NMTTDISPINFO_2I",
431 "MoveMemory__JLorg_eclipse_swt_internal_win32_NMTVCUSTOMDRAW_2I",
432 "MoveMemory__JLorg_eclipse_swt_internal_win32_NMTVDISPINFO_2I",
433 "MoveMemory__JLorg_eclipse_swt_internal_win32_OPENFILENAME_2I",
434 "MoveMemory__JLorg_eclipse_swt_internal_win32_RECT_2I",
435 "MoveMemory__JLorg_eclipse_swt_internal_win32_SAFEARRAY_2I",
436 "MoveMemory__JLorg_eclipse_swt_internal_win32_SHDRAGIMAGE_2I",
437 "MoveMemory__JLorg_eclipse_swt_internal_win32_TRIVERTEX_2I",
438 "MoveMemory__JLorg_eclipse_swt_internal_win32_UDACCEL_2I",
439 "MoveMemory__JLorg_eclipse_swt_internal_win32_WINDOWPOS_2I",
447 "MoveMemory__Lorg_eclipse_swt_internal_win32_BITMAPINFOHEADER_2JI",
448 "MoveMemory__Lorg_eclipse_swt_internal_win32_BITMAPINFOHEADER_2_3BI",
449 "MoveMemory__Lorg_eclipse_swt_internal_win32_CERT_1CONTEXT_2JI",
450 "MoveMemory__Lorg_eclipse_swt_internal_win32_CERT_1INFO_2JI",
451 "MoveMemory__Lorg_eclipse_swt_internal_win32_CIDA_2JI",
452 "MoveMemory__Lorg_eclipse_swt_internal_win32_DEVMODE_2JI",
453 "MoveMemory__Lorg_eclipse_swt_internal_win32_DOCHOSTUIINFO_2JI",
454 "MoveMemory__Lorg_eclipse_swt_internal_win32_DRAWITEMSTRUCT_2JI",
455 "MoveMemory__Lorg_eclipse_swt_internal_win32_EMREXTCREATEFONTINDIRECTW_2JI",
456 "MoveMemory__Lorg_eclipse_swt_internal_win32_EMR_2JI",
457 "MoveMemory__Lorg_eclipse_swt_internal_win32_FLICK_1DATA_2_3JI",
458 "MoveMemory__Lorg_eclipse_swt_internal_win32_FLICK_1POINT_2_3JI",
459 "MoveMemory__Lorg_eclipse_swt_internal_win32_HDITEM_2JI",
460 "MoveMemory__Lorg_eclipse_swt_internal_win32_HELPINFO_2JI",
461 "MoveMemory__Lorg_eclipse_swt_internal_win32_LOGFONT_2JI",
462 "MoveMemory__Lorg_eclipse_swt_internal_win32_MEASUREITEMSTRUCT_2JI",
463 "MoveMemory__Lorg_eclipse_swt_internal_win32_MINMAXINFO_2JI",
464 "MoveMemory__Lorg_eclipse_swt_internal_win32_MSG_2JI",
465 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMCUSTOMDRAW_2JI",
466 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMHDR_2JI",
467 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMHEADER_2JI",
468 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMLINK_2JI",
469 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMLISTVIEW_2JI",
470 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMLVCUSTOMDRAW_2JI",
471 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMLVDISPINFO_2JI",
472 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMLVODSTATECHANGE_2JI",
473 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMREBARCHEVRON_2JI",
474 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMREBARCHILDSIZE_2JI",
475 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTBCUSTOMDRAW_2JI",
476 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTBHOTITEM_2JI",
477 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTOOLBAR_2JI",
478 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTREEVIEW_2JI",
479 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTTCUSTOMDRAW_2JI",
480 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTTDISPINFO_2JI",
481 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTVCUSTOMDRAW_2JI",
482 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTVDISPINFO_2JI",
483 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMTVITEMCHANGE_2JI",
484 "MoveMemory__Lorg_eclipse_swt_internal_win32_NMUPDOWN_2JI",
485 "MoveMemory__Lorg_eclipse_swt_internal_win32_OFNOTIFY_2JI",
486 "MoveMemory__Lorg_eclipse_swt_internal_win32_OPENFILENAME_2JI",
487 "MoveMemory__Lorg_eclipse_swt_internal_win32_POINT_2JI",
488 "MoveMemory__Lorg_eclipse_swt_internal_win32_POINT_2_3JI",
489 "MoveMemory__Lorg_eclipse_swt_internal_win32_SAFEARRAY_2JI",
490 "MoveMemory__Lorg_eclipse_swt_internal_win32_SCRIPT_1ITEM_2JI",
491 "MoveMemory__Lorg_eclipse_swt_internal_win32_SCRIPT_1LOGATTR_2JI",
492 "MoveMemory__Lorg_eclipse_swt_internal_win32_SCRIPT_1PROPERTIES_2JI",
493 "MoveMemory__Lorg_eclipse_swt_internal_win32_TEXTMETRIC_2JI",
494 "MoveMemory__Lorg_eclipse_swt_internal_win32_TOUCHINPUT_2JI",
495 "MoveMemory__Lorg_eclipse_swt_internal_win32_UDACCEL_2JI",
496 "MoveMemory__Lorg_eclipse_swt_internal_win32_WINDOWPOS_2JI",
498 "MoveMemory___3BLorg_eclipse_swt_internal_win32_ACCEL_2I",
499 "MoveMemory___3BLorg_eclipse_swt_internal_win32_BITMAPINFOHEADER_2I",
507 "MultiByteToWideChar__IIJI_3CI",
508 "MultiByteToWideChar__II_3BI_3CI",
509 "NMCUSTOMDRAW_1sizeof",
513 "NMLISTVIEW_1sizeof",
514 "NMLVCUSTOMDRAW_1sizeof",
515 "NMLVDISPINFO_1sizeof",
516 "NMLVFINDITEM_1sizeof",
517 "NMLVODSTATECHANGE_1sizeof",
518 "NMREBARCHEVRON_1sizeof",
519 "NMREBARCHILDSIZE_1sizeof",
520 "NMTBCUSTOMDRAW_1sizeof",
521 "NMTBHOTITEM_1sizeof",
523 "NMTREEVIEW_1sizeof",
524 "NMTTCUSTOMDRAW_1sizeof",
525 "NMTTDISPINFO_1sizeof",
526 "NMTVCUSTOMDRAW_1sizeof",
527 "NMTVDISPINFO_1sizeof",
528 "NMTVITEMCHANGE_1sizeof",
530 "NONCLIENTMETRICS_1sizeof",
531 "NOTIFYICONDATA_1V2_1SIZE",
534 "OPENFILENAME_1sizeof",
535 "OUTLINETEXTMETRIC_1sizeof",
544 "PAINTSTRUCT_1sizeof",
550 "PROCESS_1INFORMATION_1sizeof",
551 "PROPERTYKEY_1sizeof",
552 "PROPVARIANT_1sizeof",
553 "PSPropertyKeyFromString",
566 "REBARBANDINFO_1sizeof",
576 "RegQueryValueEx__J_3CJ_3I_3C_3I",
577 "RegQueryValueEx__J_3CJ_3I_3I_3I",
580 "RegisterClipboardFormat",
581 "RegisterTouchWindow",
582 "RegisterWindowMessage",
590 "SAFEARRAYBOUND_1sizeof",
592 "SCRIPT_1ANALYSIS_1sizeof",
593 "SCRIPT_1CONTROL_1sizeof",
594 "SCRIPT_1DIGITSUBSTITUTE_1sizeof",
595 "SCRIPT_1FONTPROPERTIES_1sizeof",
596 "SCRIPT_1ITEM_1sizeof",
597 "SCRIPT_1LOGATTR_1sizeof",
598 "SCRIPT_1PROPERTIES_1sizeof",
599 "SCRIPT_1STATE_1sizeof",
600 "SCRIPT_1STRING_1ANALYSIS_1sizeof",
601 "SCROLLBARINFO_1sizeof",
602 "SCROLLINFO_1sizeof",
604 "SHDRAGIMAGE_1sizeof",
605 "SHELLEXECUTEINFO_1sizeof",
606 "SHFILEINFO_1sizeof",
609 "SHGetPathFromIDList",
611 "STARTUPINFO_1sizeof",
612 "SYSTEMTIME_1sizeof",
615 "ScriptApplyDigitSubstitution",
618 "ScriptCacheGetHeight",
621 "ScriptGetFontProperties",
622 "ScriptGetLogicalWidths",
623 "ScriptGetProperties",
628 "ScriptRecordDigitSubstitution",
630 "ScriptStringAnalyse",
640 "SendMessage__JIJLorg_eclipse_swt_internal_win32_BUTTON_1IMAGELIST_2",
641 "SendMessage__JIJLorg_eclipse_swt_internal_win32_HDHITTESTINFO_2",
642 "SendMessage__JIJLorg_eclipse_swt_internal_win32_HDITEM_2",
643 "SendMessage__JIJLorg_eclipse_swt_internal_win32_HDLAYOUT_2",
644 "SendMessage__JIJLorg_eclipse_swt_internal_win32_LITEM_2",
645 "SendMessage__JIJLorg_eclipse_swt_internal_win32_LVCOLUMN_2",
646 "SendMessage__JIJLorg_eclipse_swt_internal_win32_LVHITTESTINFO_2",
647 "SendMessage__JIJLorg_eclipse_swt_internal_win32_LVINSERTMARK_2",
648 "SendMessage__JIJLorg_eclipse_swt_internal_win32_LVITEM_2",
649 "SendMessage__JIJLorg_eclipse_swt_internal_win32_MARGINS_2",
650 "SendMessage__JIJLorg_eclipse_swt_internal_win32_MCHITTESTINFO_2",
651 "SendMessage__JIJLorg_eclipse_swt_internal_win32_REBARBANDINFO_2",
652 "SendMessage__JIJLorg_eclipse_swt_internal_win32_RECT_2",
653 "SendMessage__JIJLorg_eclipse_swt_internal_win32_SHDRAGIMAGE_2",
654 "SendMessage__JIJLorg_eclipse_swt_internal_win32_SIZE_2",
655 "SendMessage__JIJLorg_eclipse_swt_internal_win32_SYSTEMTIME_2",
656 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TBBUTTONINFO_2",
657 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TBBUTTON_2",
658 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TCHITTESTINFO_2",
659 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TCITEM_2",
660 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TOOLINFO_2",
661 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TVHITTESTINFO_2",
662 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TVINSERTSTRUCT_2",
663 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TVITEM_2",
664 "SendMessage__JIJLorg_eclipse_swt_internal_win32_TVSORTCB_2",
665 "SendMessage__JIJLorg_eclipse_swt_internal_win32_UDACCEL_2",
666 "SendMessage__JIJ_3C",
667 "SendMessage__JIJ_3I",
668 "SendMessage__JI_3I_3I",
675 "SetCurrentProcessExplicitAppUserModelID",
682 "SetForegroundWindow",
685 "SetLayeredWindowAttributes",
688 "SetMenuDefaultItem",
695 "SetProcessDPIAware",
707 "SetWindowPlacement",
723 "SystemParametersInfo__IILorg_eclipse_swt_internal_win32_HIGHCONTRAST_2I",
724 "SystemParametersInfo__IILorg_eclipse_swt_internal_win32_NONCLIENTMETRICS_2I",
725 "SystemParametersInfo__IILorg_eclipse_swt_internal_win32_RECT_2I",
726 "SystemParametersInfo__II_3II",
727 "TBBUTTONINFO_1sizeof",
729 "TCHITTESTINFO_1sizeof",
731 "TEXTMETRIC_1sizeof",
732 "TF_1DA_1COLOR_1sizeof",
733 "TF_1DISPLAYATTRIBUTE_1sizeof",
735 "TOUCHINPUT_1sizeof",
736 "TOUCH_1COORD_1TO_1PIXEL",
737 "TRACKMOUSEEVENT_1sizeof",
739 "TVHITTESTINFO_1sizeof",
740 "TVINSERTSTRUCT_1sizeof",
747 "TranslateAccelerator",
748 "TranslateCharsetInfo",
749 "TranslateMDISysAccel",
752 "TreeView_1GetItemRect",
754 "UnhookWindowsHookEx",
757 "UnregisterTouchWindow",
762 "WINDOWPLACEMENT_1sizeof",
766 "WideCharToMultiByte__II_3CIJI_3B_3Z",
767 "WideCharToMultiByte__II_3CI_3BI_3B_3Z",
772 #define NATIVE_FUNCTION_COUNT sizeof(OS_nativeFunctionNames) / sizeof(char*)
773 int OS_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
774 int OS_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
776 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
778 JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCount)
779 (JNIEnv *env, jclass that)
781 return OS_nativeFunctionCount;
784 JNIEXPORT jstring JNICALL STATS_NATIVE(OS_1GetFunctionName)
785 (JNIEnv *env, jclass that, jint index)
787 return (*env)->NewStringUTF(env, OS_nativeFunctionNames[index]);
790 JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCallCount)
791 (JNIEnv *env, jclass that, jint index)
793 return OS_nativeFunctionCallCount[index];