]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/library/os_stats.c
Special handling to retain the range of derived properties on type edit
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / library / os_stats.c
1 /*******************************************************************************
2  * Copyright (c) 2000, 2019 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *    IBM Corporation - initial API and implementation
13  *******************************************************************************/
14
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
17
18 #include "swt.h"
19 #include "os_stats.h"
20
21 #ifdef NATIVE_STATS
22
23 char * OS_nativeFunctionNames[] = {
24         "ACCEL_1sizeof",
25         "ACTCTX_1sizeof",
26         "AbortDoc",
27         "ActivateActCtx",
28         "ActivateKeyboardLayout",
29         "AddFontResourceEx",
30         "AdjustWindowRectEx",
31         "AllowSetForegroundWindow",
32         "AlphaBlend",
33         "Arc",
34         "AssocQueryString",
35         "BITMAPINFOHEADER_1sizeof",
36         "BITMAP_1sizeof",
37         "BLENDFUNCTION_1sizeof",
38         "BP_1PAINTPARAMS_1sizeof",
39         "BROWSEINFO_1sizeof",
40         "BUTTON_1IMAGELIST_1sizeof",
41         "BeginBufferedPaint",
42         "BeginDeferWindowPos",
43         "BeginPaint",
44         "BeginPath",
45         "BitBlt",
46         "BringWindowToTop",
47         "BufferedPaintInit",
48         "BufferedPaintUnInit",
49         "CANDIDATEFORM_1sizeof",
50         "CERT_1CONTEXT_1sizeof",
51         "CERT_1INFO_1sizeof",
52         "CERT_1NAME_1BLOB_1sizeof",
53         "CERT_1PUBLIC_1KEY_1INFO_1sizeof",
54         "CHOOSECOLOR_1sizeof",
55         "CHOOSEFONT_1sizeof",
56         "CIDA_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",
64         "CallNextHookEx",
65         "CallWindowProc",
66         "CertNameToStr",
67         "CharLower",
68         "CharUpper",
69         "ChildWindowFromPointEx",
70         "ChooseColor",
71         "ChooseFont",
72         "ClientToScreen",
73         "CloseClipboard",
74         "CloseEnhMetaFile",
75         "CloseGestureInfoHandle",
76         "CloseHandle",
77         "ClosePrinter",
78         "CloseThemeData",
79         "CloseTouchInputHandle",
80         "CoCreateInstance",
81         "CoInternetIsFeatureEnabled",
82         "CoInternetSetFeatureEnabled",
83         "CoTaskMemAlloc",
84         "CoTaskMemFree",
85         "CombineRgn",
86         "CommDlgExtendedError",
87         "CopyImage",
88         "CreateAcceleratorTable",
89         "CreateActCtx",
90         "CreateBitmap",
91         "CreateCaret",
92         "CreateCompatibleBitmap",
93         "CreateCompatibleDC",
94         "CreateCursor",
95         "CreateDC",
96         "CreateDIBSection__JJI_3JJI",
97         "CreateDIBSection__J_3BI_3JJI",
98         "CreateEnhMetaFile",
99         "CreateFontIndirect__J",
100         "CreateFontIndirect__Lorg_eclipse_swt_internal_win32_LOGFONT_2",
101         "CreateIconIndirect",
102         "CreateMenu",
103         "CreatePatternBrush",
104         "CreatePen",
105         "CreatePolygonRgn",
106         "CreatePopupMenu",
107         "CreateProcess",
108         "CreateRectRgn",
109         "CreateSolidBrush",
110         "CreateStreamOnHGlobal",
111         "CreateWindowEx",
112         "DEVMODE_1sizeof",
113         "DIBSECTION_1sizeof",
114         "DOCHOSTUIINFO_1sizeof",
115         "DOCINFO_1sizeof",
116         "DRAWITEMSTRUCT_1sizeof",
117         "DROPFILES_1sizeof",
118         "DTTOPTS_1sizeof",
119         "DefFrameProc",
120         "DefMDIChildProc",
121         "DefWindowProc",
122         "DeferWindowPos",
123         "DeleteDC",
124         "DeleteEnhMetaFile",
125         "DeleteMenu",
126         "DeleteObject",
127         "DestroyAcceleratorTable",
128         "DestroyCaret",
129         "DestroyCursor",
130         "DestroyIcon",
131         "DestroyMenu",
132         "DestroyWindow",
133         "DispatchMessage",
134         "DocumentProperties",
135         "DragDetect",
136         "DragFinish",
137         "DragQueryFile",
138         "DrawEdge",
139         "DrawFocusRect",
140         "DrawFrameControl",
141         "DrawIconEx",
142         "DrawMenuBar",
143         "DrawText",
144         "DrawThemeBackground",
145         "DrawThemeText",
146         "DuplicateHandle",
147         "EMREXTCREATEFONTINDIRECTW_1sizeof",
148         "EMR_1sizeof",
149         "EXTLOGFONTW_1sizeof",
150         "Ellipse",
151         "EnableMenuItem",
152         "EnableScrollBar",
153         "EnableWindow",
154         "EndBufferedPaint",
155         "EndDeferWindowPos",
156         "EndDoc",
157         "EndPage",
158         "EndPaint",
159         "EnumDisplayMonitors",
160         "EnumEnhMetaFile",
161         "EnumFontFamilies",
162         "EnumSystemLanguageGroups",
163         "EnumSystemLocales",
164         "EqualRect",
165         "ExcludeClipRect",
166         "ExpandEnvironmentStrings",
167         "ExtCreatePen",
168         "ExtCreateRegion",
169         "ExtTextOut",
170         "ExtractIconEx",
171         "FILETIME_1sizeof",
172         "FLICK_1DATA_1sizeof",
173         "FLICK_1POINT_1sizeof",
174         "FileTimeToSystemTime",
175         "FillRect",
176         "FormatMessage",
177         "GCP_1RESULTS_1sizeof",
178         "GESTURECONFIG_1sizeof",
179         "GESTUREINFO_1sizeof",
180         "GET_1WHEEL_1DELTA_1WPARAM",
181         "GET_1X_1LPARAM",
182         "GET_1Y_1LPARAM",
183         "GID_1ROTATE_1ANGLE_1FROM_1ARGUMENT",
184         "GRADIENT_1RECT_1sizeof",
185         "GUITHREADINFO_1sizeof",
186         "GdiSetBatchLimit",
187         "GetACP",
188         "GetActiveWindow",
189         "GetBkColor",
190         "GetCapture",
191         "GetCaretPos",
192         "GetCharABCWidths",
193         "GetCharWidth",
194         "GetCharacterPlacement",
195         "GetClassInfo",
196         "GetClassName",
197         "GetClientRect",
198         "GetClipBox",
199         "GetClipRgn",
200         "GetClipboardData",
201         "GetClipboardFormatName",
202         "GetComboBoxInfo",
203         "GetCurrentObject",
204         "GetCurrentProcess",
205         "GetCurrentProcessExplicitAppUserModelID",
206         "GetCurrentProcessId",
207         "GetCurrentThreadId",
208         "GetCursor",
209         "GetCursorPos",
210         "GetDC",
211         "GetDCEx",
212         "GetDIBColorTable",
213         "GetDIBits",
214         "GetDesktopWindow",
215         "GetDeviceCaps",
216         "GetDialogBaseUnits",
217         "GetDlgItem",
218         "GetDoubleClickTime",
219         "GetDpiForMonitor",
220         "GetFocus",
221         "GetFontLanguageInfo",
222         "GetForegroundWindow",
223         "GetGUIThreadInfo",
224         "GetGestureInfo",
225         "GetGlyphIndices",
226         "GetGraphicsMode",
227         "GetIconInfo",
228         "GetKeyState",
229         "GetKeyboardLayout",
230         "GetKeyboardLayoutList",
231         "GetKeyboardState",
232         "GetLastActivePopup",
233         "GetLastError",
234         "GetLayeredWindowAttributes",
235         "GetLayout",
236         "GetLibraryHandle",
237         "GetLocaleInfo",
238         "GetMenu",
239         "GetMenuBarInfo",
240         "GetMenuDefaultItem",
241         "GetMenuInfo",
242         "GetMenuItemCount",
243         "GetMenuItemInfo",
244         "GetMenuItemRect",
245         "GetMessage",
246         "GetMessagePos",
247         "GetMessageTime",
248         "GetMetaRgn",
249         "GetModuleFileName",
250         "GetModuleHandle",
251         "GetMonitorInfo",
252         "GetObject__JIJ",
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",
257         "GetOpenFileName",
258         "GetOutlineTextMetrics",
259         "GetParent",
260         "GetPixel",
261         "GetPolyFillMode",
262         "GetProcessHeap",
263         "GetProfileString",
264         "GetProp",
265         "GetROP2",
266         "GetRandomRgn",
267         "GetRegionData",
268         "GetRgnBox",
269         "GetSaveFileName",
270         "GetScrollBarInfo",
271         "GetScrollInfo",
272         "GetStartupInfo",
273         "GetStockObject",
274         "GetSysColor",
275         "GetSysColorBrush",
276         "GetSystemDefaultUILanguage",
277         "GetSystemMenu",
278         "GetSystemMetrics",
279         "GetTextColor",
280         "GetTextExtentPoint32",
281         "GetTextMetrics",
282         "GetThemePartSize",
283         "GetThemeTextExtent",
284         "GetTouchInputInfo",
285         "GetUpdateRect",
286         "GetUpdateRgn",
287         "GetVersion",
288         "GetWindow",
289         "GetWindowDC",
290         "GetWindowLong",
291         "GetWindowLongPtr",
292         "GetWindowOrgEx",
293         "GetWindowPlacement",
294         "GetWindowRect",
295         "GetWindowRgn",
296         "GetWindowText",
297         "GetWindowTextLength",
298         "GetWindowThreadProcessId",
299         "GlobalAddAtom",
300         "GlobalAlloc",
301         "GlobalFree",
302         "GlobalLock",
303         "GlobalSize",
304         "GlobalUnlock",
305         "GradientFill",
306         "HDHITTESTINFO_1sizeof",
307         "HDITEM_1sizeof",
308         "HDLAYOUT_1sizeof",
309         "HELPINFO_1sizeof",
310         "HIGHCONTRAST_1sizeof",
311         "HIWORD",
312         "HeapAlloc",
313         "HeapFree",
314         "HideCaret",
315         "ICONINFO_1sizeof",
316         "IIDFromString",
317         "ILGetSize",
318         "INITCOMMONCONTROLSEX_1sizeof",
319         "INPUT_1sizeof",
320         "ImageList_1Add",
321         "ImageList_1AddMasked",
322         "ImageList_1BeginDrag",
323         "ImageList_1Create",
324         "ImageList_1Destroy",
325         "ImageList_1DragEnter",
326         "ImageList_1DragLeave",
327         "ImageList_1DragMove",
328         "ImageList_1DragShowNolock",
329         "ImageList_1EndDrag",
330         "ImageList_1GetIconSize",
331         "ImageList_1GetImageCount",
332         "ImageList_1Remove",
333         "ImageList_1Replace",
334         "ImageList_1ReplaceIcon",
335         "ImageList_1SetIconSize",
336         "ImmAssociateContext",
337         "ImmCreateContext",
338         "ImmDestroyContext",
339         "ImmEscape",
340         "ImmGetCompositionFont",
341         "ImmGetCompositionString__JI_3BI",
342         "ImmGetCompositionString__JI_3CI",
343         "ImmGetCompositionString__JI_3II",
344         "ImmGetContext",
345         "ImmGetConversionStatus",
346         "ImmGetDefaultIMEWnd",
347         "ImmGetOpenStatus",
348         "ImmNotifyIME",
349         "ImmReleaseContext",
350         "ImmSetCandidateWindow",
351         "ImmSetCompositionFont",
352         "ImmSetCompositionWindow",
353         "ImmSetConversionStatus",
354         "ImmSetOpenStatus",
355         "InitCommonControls",
356         "InitCommonControlsEx",
357         "InsertMenuItem",
358         "InternetGetCookie",
359         "InternetSetCookie",
360         "InternetSetOption",
361         "IntersectClipRect",
362         "IntersectRect",
363         "InvalidateRect",
364         "InvalidateRgn",
365         "IsAppThemed",
366         "IsHungAppWindow",
367         "IsIconic",
368         "IsTouchWindow",
369         "IsWindowEnabled",
370         "IsWindowVisible",
371         "IsZoomed",
372         "KEYBDINPUT_1sizeof",
373         "KillTimer",
374         "LITEM_1sizeof",
375         "LODWORD",
376         "LOGBRUSH_1sizeof",
377         "LOGFONT_1sizeof",
378         "LOGPEN_1sizeof",
379         "LOWORD",
380         "LPtoDP",
381         "LVCOLUMN_1sizeof",
382         "LVHITTESTINFO_1sizeof",
383         "LVINSERTMARK_1sizeof",
384         "LVITEM_1sizeof",
385         "LineTo",
386         "LoadBitmap",
387         "LoadCursor",
388         "LoadIcon",
389         "LoadIconMetric",
390         "LoadImage",
391         "LocalFree",
392         "MAKELPARAM",
393         "MAKELRESULT",
394         "MAKEWORD",
395         "MAKEWPARAM",
396         "MARGINS_1sizeof",
397         "MCHITTESTINFO_1sizeof",
398         "MEASUREITEMSTRUCT_1sizeof",
399         "MENUBARINFO_1sizeof",
400         "MENUINFO_1sizeof",
401         "MENUITEMINFO_1sizeof",
402         "MINMAXINFO_1sizeof",
403         "MONITORINFO_1sizeof",
404         "MOUSEINPUT_1sizeof",
405         "MSG_1sizeof",
406         "MapViewOfFile",
407         "MapVirtualKey",
408         "MapWindowPoints__JJLorg_eclipse_swt_internal_win32_POINT_2I",
409         "MapWindowPoints__JJLorg_eclipse_swt_internal_win32_RECT_2I",
410         "MessageBeep",
411         "MessageBox",
412         "ModifyWorldTransform",
413         "MonitorFromWindow",
414         "MoveMemory__JJI",
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",
440         "MoveMemory__J_3BI",
441         "MoveMemory__J_3CI",
442         "MoveMemory__J_3DI",
443         "MoveMemory__J_3FI",
444         "MoveMemory__J_3II",
445         "MoveMemory__J_3JI",
446         "MoveMemory__J_3SI",
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",
497         "MoveMemory___3BJI",
498         "MoveMemory___3BLorg_eclipse_swt_internal_win32_ACCEL_2I",
499         "MoveMemory___3BLorg_eclipse_swt_internal_win32_BITMAPINFOHEADER_2I",
500         "MoveMemory___3CJI",
501         "MoveMemory___3DJI",
502         "MoveMemory___3FJI",
503         "MoveMemory___3IJI",
504         "MoveMemory___3JJI",
505         "MoveMemory___3SJI",
506         "MoveToEx",
507         "MultiByteToWideChar__IIJI_3CI",
508         "MultiByteToWideChar__II_3BI_3CI",
509         "NMCUSTOMDRAW_1sizeof",
510         "NMHDR_1sizeof",
511         "NMHEADER_1sizeof",
512         "NMLINK_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",
522         "NMTOOLBAR_1sizeof",
523         "NMTREEVIEW_1sizeof",
524         "NMTTCUSTOMDRAW_1sizeof",
525         "NMTTDISPINFO_1sizeof",
526         "NMTVCUSTOMDRAW_1sizeof",
527         "NMTVDISPINFO_1sizeof",
528         "NMTVITEMCHANGE_1sizeof",
529         "NMUPDOWN_1sizeof",
530         "NONCLIENTMETRICS_1sizeof",
531         "NOTIFYICONDATA_1V2_1SIZE",
532         "NotifyWinEvent",
533         "OFNOTIFY_1sizeof",
534         "OPENFILENAME_1sizeof",
535         "OUTLINETEXTMETRIC_1sizeof",
536         "OffsetRect",
537         "OffsetRgn",
538         "OleInitialize",
539         "OleUninitialize",
540         "OpenClipboard",
541         "OpenPrinter",
542         "OpenProcess",
543         "OpenThemeData",
544         "PAINTSTRUCT_1sizeof",
545         "PANOSE_1sizeof",
546         "POINTSTOPOINT",
547         "POINT_1sizeof",
548         "PRIMARYLANGID",
549         "PRINTDLG_1sizeof",
550         "PROCESS_1INFORMATION_1sizeof",
551         "PROPERTYKEY_1sizeof",
552         "PROPVARIANT_1sizeof",
553         "PSPropertyKeyFromString",
554         "PatBlt",
555         "PathIsExe",
556         "PeekMessage",
557         "Pie",
558         "Polygon",
559         "Polyline",
560         "PostMessage",
561         "PostThreadMessage",
562         "PrintDlg",
563         "PrintWindow",
564         "PtInRect",
565         "PtInRegion",
566         "REBARBANDINFO_1sizeof",
567         "RECT_1sizeof",
568         "RectInRegion",
569         "Rectangle",
570         "RedrawWindow",
571         "RegCloseKey",
572         "RegCreateKeyEx",
573         "RegDeleteValue",
574         "RegEnumKeyEx",
575         "RegOpenKeyEx",
576         "RegQueryValueEx__J_3CJ_3I_3C_3I",
577         "RegQueryValueEx__J_3CJ_3I_3I_3I",
578         "RegSetValueEx",
579         "RegisterClass",
580         "RegisterClipboardFormat",
581         "RegisterTouchWindow",
582         "RegisterWindowMessage",
583         "ReleaseCapture",
584         "ReleaseDC",
585         "RemoveMenu",
586         "RemoveProp",
587         "ReplyMessage",
588         "RestoreDC",
589         "RoundRect",
590         "SAFEARRAYBOUND_1sizeof",
591         "SAFEARRAY_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",
603         "SHBrowseForFolder",
604         "SHDRAGIMAGE_1sizeof",
605         "SHELLEXECUTEINFO_1sizeof",
606         "SHFILEINFO_1sizeof",
607         "SHGetFileInfo",
608         "SHGetMalloc",
609         "SHGetPathFromIDList",
610         "SIZE_1sizeof",
611         "STARTUPINFO_1sizeof",
612         "SYSTEMTIME_1sizeof",
613         "SaveDC",
614         "ScreenToClient",
615         "ScriptApplyDigitSubstitution",
616         "ScriptBreak",
617         "ScriptCPtoX",
618         "ScriptCacheGetHeight",
619         "ScriptFreeCache",
620         "ScriptGetCMap",
621         "ScriptGetFontProperties",
622         "ScriptGetLogicalWidths",
623         "ScriptGetProperties",
624         "ScriptItemize",
625         "ScriptJustify",
626         "ScriptLayout",
627         "ScriptPlace",
628         "ScriptRecordDigitSubstitution",
629         "ScriptShape",
630         "ScriptStringAnalyse",
631         "ScriptStringFree",
632         "ScriptStringOut",
633         "ScriptTextOut",
634         "ScriptXtoCP",
635         "ScrollWindowEx",
636         "SelectClipRgn",
637         "SelectObject",
638         "SendInput",
639         "SendMessage__JIJJ",
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",
669         "SetActiveWindow",
670         "SetBkColor",
671         "SetBkMode",
672         "SetBrushOrgEx",
673         "SetCapture",
674         "SetCaretPos",
675         "SetCurrentProcessExplicitAppUserModelID",
676         "SetCursor",
677         "SetCursorPos",
678         "SetDIBColorTable",
679         "SetDllDirectory",
680         "SetErrorMode",
681         "SetFocus",
682         "SetForegroundWindow",
683         "SetGestureConfig",
684         "SetGraphicsMode",
685         "SetLayeredWindowAttributes",
686         "SetLayout",
687         "SetMenu",
688         "SetMenuDefaultItem",
689         "SetMenuInfo",
690         "SetMenuItemInfo",
691         "SetMetaRgn",
692         "SetParent",
693         "SetPixel",
694         "SetPolyFillMode",
695         "SetProcessDPIAware",
696         "SetProp",
697         "SetROP2",
698         "SetRect",
699         "SetRectRgn",
700         "SetScrollInfo",
701         "SetStretchBltMode",
702         "SetTextColor",
703         "SetTimer",
704         "SetWindowLong",
705         "SetWindowLongPtr",
706         "SetWindowOrgEx",
707         "SetWindowPlacement",
708         "SetWindowPos",
709         "SetWindowRgn",
710         "SetWindowText",
711         "SetWindowTheme",
712         "SetWindowsHookEx",
713         "SetWorldTransform",
714         "ShellExecuteEx",
715         "Shell_1NotifyIcon",
716         "ShowCaret",
717         "ShowOwnedPopups",
718         "ShowScrollBar",
719         "ShowWindow",
720         "StartDoc",
721         "StartPage",
722         "StretchBlt",
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",
728         "TBBUTTON_1sizeof",
729         "TCHITTESTINFO_1sizeof",
730         "TCITEM_1sizeof",
731         "TEXTMETRIC_1sizeof",
732         "TF_1DA_1COLOR_1sizeof",
733         "TF_1DISPLAYATTRIBUTE_1sizeof",
734         "TOOLINFO_1sizeof",
735         "TOUCHINPUT_1sizeof",
736         "TOUCH_1COORD_1TO_1PIXEL",
737         "TRACKMOUSEEVENT_1sizeof",
738         "TRIVERTEX_1sizeof",
739         "TVHITTESTINFO_1sizeof",
740         "TVINSERTSTRUCT_1sizeof",
741         "TVITEMEX_1sizeof",
742         "TVITEM_1sizeof",
743         "TVSORTCB_1sizeof",
744         "ToUnicode",
745         "TrackMouseEvent",
746         "TrackPopupMenu",
747         "TranslateAccelerator",
748         "TranslateCharsetInfo",
749         "TranslateMDISysAccel",
750         "TranslateMessage",
751         "TransparentBlt",
752         "TreeView_1GetItemRect",
753         "UDACCEL_1sizeof",
754         "UnhookWindowsHookEx",
755         "UnmapViewOfFile",
756         "UnregisterClass",
757         "UnregisterTouchWindow",
758         "UpdateWindow",
759         "UrlCreateFromPath",
760         "ValidateRect",
761         "VkKeyScan",
762         "WINDOWPLACEMENT_1sizeof",
763         "WINDOWPOS_1sizeof",
764         "WNDCLASS_1sizeof",
765         "WaitMessage",
766         "WideCharToMultiByte__II_3CIJI_3B_3Z",
767         "WideCharToMultiByte__II_3CI_3BI_3B_3Z",
768         "WindowFromDC",
769         "WindowFromPoint",
770         "wcslen",
771 };
772 #define NATIVE_FUNCTION_COUNT sizeof(OS_nativeFunctionNames) / sizeof(char*)
773 int OS_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
774 int OS_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
775
776 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
777
778 JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCount)
779         (JNIEnv *env, jclass that)
780 {
781         return OS_nativeFunctionCount;
782 }
783
784 JNIEXPORT jstring JNICALL STATS_NATIVE(OS_1GetFunctionName)
785         (JNIEnv *env, jclass that, jint index)
786 {
787         return (*env)->NewStringUTF(env, OS_nativeFunctionNames[index]);
788 }
789
790 JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCallCount)
791         (JNIEnv *env, jclass that, jint index)
792 {
793         return OS_nativeFunctionCallCount[index];
794 }
795
796 #endif