Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/umx.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifndef _UMX_H_ | |
| 7 #define _UMX_H_ | |
| 8 | |
| 9 #define UME_MENU_TEXT_LEN 50 | |
| 10 #define UME_VERSION 0 | |
| 11 | |
| 12 #define UMS_LISTBOX_USERS 0 | |
| 13 #define UMS_LISTBOX_GROUPS 1 | |
| 14 | |
| 15 #define UM_GETSELCOUNT (WM_USER + 1000) | |
| 16 #define UM_GETUSERSELA (WM_USER + 1001) | |
| 17 #define UM_GETUSERSELW (WM_USER + 1002) | |
| 18 #define UM_GETGROUPSELA (WM_USER + 1003) | |
| 19 #define UM_GETGROUPSELW (WM_USER + 1004) | |
| 20 #define UM_GETCURFOCUSA (WM_USER + 1005) | |
| 21 #define UM_GETCURFOCUSW (WM_USER + 1006) | |
| 22 #define UM_GETOPTIONS (WM_USER + 1007) | |
| 23 #define UM_GETOPTIONS2 (WM_USER + 1008) | |
| 24 | |
| 25 #ifdef UNICODE | |
| 26 #define UM_GETUSERSEL UM_GETUSERSELW | |
| 27 #define UM_GETGROUPSEL UM_GETGROUPSELW | |
| 28 #define UM_GETCURFOCUS UM_GETCURFOCUSW | |
| 29 #else | |
| 30 #define UM_GETUSERSEL UM_GETUSERSELA | |
| 31 #define UM_GETGROUPSEL UM_GETGROUPSELA | |
| 32 #define UM_GETCURFOCUS UM_GETCURFOCUSA | |
| 33 #endif | |
| 34 | |
| 35 typedef struct _UMS_LOADMENUA { | |
| 36 DWORD dwVersion; | |
| 37 CHAR szMenuName[UME_MENU_TEXT_LEN + 1]; | |
| 38 HMENU hMenu; | |
| 39 CHAR szHelpFileName[MAX_PATH]; | |
| 40 DWORD dwMenuDelta; | |
| 41 } UMS_LOADMENUA,*PUMS_LOADMENUA; | |
| 42 | |
| 43 typedef struct _UMS_LOADMENUW { | |
| 44 DWORD dwVersion; | |
| 45 WCHAR szMenuName[UME_MENU_TEXT_LEN + 1]; | |
| 46 HMENU hMenu; | |
| 47 WCHAR szHelpFileName[MAX_PATH]; | |
| 48 DWORD dwMenuDelta; | |
| 49 } UMS_LOADMENUW,*PUMS_LOADMENUW; | |
| 50 | |
| 51 #ifdef UNICODE | |
| 52 #define UMS_LOADMENU UMS_LOADMENUW | |
| 53 #define PUMS_LOADMENU PUMS_LOADMENUW | |
| 54 #else | |
| 55 #define UMS_LOADMENU UMS_LOADMENUA | |
| 56 #define PUMS_LOADMENU PUMS_LOADMENUA | |
| 57 #endif | |
| 58 | |
| 59 #define UM_SELTYPE_USER 0x10 | |
| 60 #define UM_SELTYPE_NORMALUSER 0x1 | UM_SELTYPE_USER | |
| 61 #define UM_SELTYPE_REMOTEUSER 0x2 | UM_SELTYPE_USER | |
| 62 #define UM_SELTYPE_GROUP 0x20 | |
| 63 #define UM_SELTYPE_LOCALGROUP 0x4 | UM_SELTYPE_GROUP | |
| 64 #define UM_SELTYPE_GLOBALGROUP 0x8 | UM_SELTYPE_GROUP | |
| 65 | |
| 66 typedef struct _UMS_GETSELA { | |
| 67 DWORD dwRID; | |
| 68 LPSTR pchName; | |
| 69 DWORD dwSelType; | |
| 70 LPSTR pchFullName; | |
| 71 LPSTR pchComment; | |
| 72 } UMS_GETSELA,*PUMS_GETSELA; | |
| 73 | |
| 74 typedef struct _UMS_GETSELW { | |
| 75 DWORD dwRID; | |
| 76 LPWSTR pchName; | |
| 77 DWORD dwSelType; | |
| 78 LPWSTR pchFullName; | |
| 79 LPWSTR pchComment; | |
| 80 } UMS_GETSELW,*PUMS_GETSELW; | |
| 81 | |
| 82 #ifdef UNICODE | |
| 83 #define UMS_GETSEL UMS_GETSELW | |
| 84 #define PUMS_GETSEL PUMS_GETSELW | |
| 85 #else | |
| 86 #define UMS_GETSEL UMS_GETSELA | |
| 87 #define PUMS_GETSEL PUMS_GETSELA | |
| 88 #endif | |
| 89 | |
| 90 typedef struct _UMS_GETSELCOUNT { | |
| 91 DWORD dwItems; | |
| 92 } UMS_GETSELCOUNT,*PUMS_GETSELCOUNT; | |
| 93 | |
| 94 #define UM_FOCUS_TYPE_DOMAIN 1 | |
| 95 #define UM_FOCUS_TYPE_WINNT 2 | |
| 96 #define UM_FOCUS_TYPE_LM 3 | |
| 97 #define UM_FOCUS_TYPE_UNKNOWN 4 | |
| 98 | |
| 99 typedef struct _UMS_GETCURFOCUSA { | |
| 100 CHAR szFocus[MAX_PATH]; | |
| 101 DWORD dwFocusType; | |
| 102 CHAR szFocusPDC[MAX_PATH]; | |
| 103 PVOID psidFocus; | |
| 104 } UMS_GETCURFOCUSA,*PUMS_GETCURFOCUSA; | |
| 105 | |
| 106 typedef struct _UMS_GETCURFOCUSW { | |
| 107 WCHAR szFocus[MAX_PATH]; | |
| 108 DWORD dwFocusType; | |
| 109 WCHAR szFocusPDC[MAX_PATH]; | |
| 110 PVOID psidFocus; | |
| 111 } UMS_GETCURFOCUSW,*PUMS_GETCURFOCUSW; | |
| 112 | |
| 113 #ifdef UNICODE | |
| 114 #define UMS_GETCURFOCUS UMS_GETCURFOCUSW | |
| 115 #define PUMS_GETCURFOCUS PUMS_GETCURFOCUSW | |
| 116 #else | |
| 117 #define UMS_GETCURFOCUS UMS_GETCURFOCUSA | |
| 118 #define PUMS_GETCURFOCUS PUMS_GETCURFOCUSA | |
| 119 #endif | |
| 120 | |
| 121 typedef struct _UMS_GETOPTIONS { | |
| 122 WINBOOL fSaveSettingsOnExit; | |
| 123 WINBOOL fConfirmation; | |
| 124 WINBOOL fSortByFullName; | |
| 125 } UMS_GETOPTIONS,*PUMS_GETOPTIONS; | |
| 126 | |
| 127 typedef struct _UMS_GETOPTIONS2 { | |
| 128 WINBOOL fSaveSettingsOnExit; | |
| 129 WINBOOL fConfirmation; | |
| 130 WINBOOL fSortByFullName; | |
| 131 WINBOOL fMiniUserManager; | |
| 132 WINBOOL fLowSpeedConnection; | |
| 133 } UMS_GETOPTIONS2,*PUMS_GETOPTIONS2; | |
| 134 | |
| 135 #define SZ_UME_UNLOADMENU "UMEUnloadMenu" | |
| 136 #define SZ_UME_INITIALIZEMENU "UMEInitializeMenu" | |
| 137 #define SZ_UME_REFRESH "UMERefresh" | |
| 138 #define SZ_UME_MENUACTION "UMEMenuAction" | |
| 139 | |
| 140 #define SZ_UME_LOADMENUW "UMELoadMenuW" | |
| 141 #define SZ_UME_GETEXTENDEDERRORSTRINGW "UMEGetExtendedErrorStringW" | |
| 142 #define SZ_UME_CREATEW "UMECreateW" | |
| 143 #define SZ_UME_DELETEW "UMEDeleteW" | |
| 144 #define SZ_UME_RENAMEW "UMERenameW" | |
| 145 | |
| 146 #define SZ_UME_LOADMENUA "UMELoadMenuA" | |
| 147 #define SZ_UME_GETEXTENDEDERRORSTRINGA "UMEGetExtendedErrorStringA" | |
| 148 #define SZ_UME_CREATEA "UMECreateA" | |
| 149 #define SZ_UME_DELETEA "UMEDeleteA" | |
| 150 #define SZ_UME_RENAMEA "UMERenameA" | |
| 151 | |
| 152 #ifdef UNICODE | |
| 153 #define SZ_UME_LOADMENU SZ_UME_LOADMENUW | |
| 154 #define SZ_UME_GETEXTENDEDERRORSTRING SZ_UME_GETEXTENDEDERRORSTRINGW | |
| 155 #define SZ_UME_CREATE SZ_UME_CREATEW | |
| 156 #define SZ_UME_DELETE SZ_UME_DELETEW | |
| 157 #define SZ_UME_RENAME SZ_UME_RENAMEW | |
| 158 #else | |
| 159 #define SZ_UME_LOADMENU SZ_UME_LOADMENUA | |
| 160 #define SZ_UME_GETEXTENDEDERRORSTRING SZ_UME_GETEXTENDEDERRORSTRINGA | |
| 161 #define SZ_UME_CREATE SZ_UME_CREATEA | |
| 162 #define SZ_UME_DELETE SZ_UME_DELETEA | |
| 163 #define SZ_UME_RENAME SZ_UME_RENAMEA | |
| 164 #endif | |
| 165 | |
| 166 typedef DWORD (WINAPI *PUMX_LOADMENUW)(HWND hWnd,PUMS_LOADMENUW pumsload); | |
| 167 typedef DWORD (WINAPI *PUMX_LOADMENUA)(HWND hWnd,PUMS_LOADMENUA pumsload); | |
| 168 | |
| 169 typedef LPWSTR (WINAPI *PUMX_GETEXTENDEDERRORSTRINGW)(VOID); | |
| 170 typedef LPSTR (WINAPI *PUMX_GETEXTENDEDERRORSTRINGA)(VOID); | |
| 171 typedef VOID (WINAPI *PUMX_UNLOADMENU)(VOID); | |
| 172 typedef VOID (WINAPI *PUMX_INITIALIZEMENU)(VOID); | |
| 173 typedef VOID (WINAPI *PUMX_REFRESH)(HWND hwndParent); | |
| 174 typedef VOID (WINAPI *PUMX_MENUACTION)(HWND hwndParent,DWORD dwEventId); | |
| 175 typedef VOID (WINAPI *PUMX_CREATEW)(HWND hwndParent,PUMS_GETSELW pumsSelection); | |
| 176 typedef VOID (WINAPI *PUMX_CREATEA)(HWND hwndParent,PUMS_GETSELA pumsSelection); | |
| 177 typedef VOID (WINAPI *PUMX_DELETEW)(HWND hwndParent,PUMS_GETSELW pumsSelection); | |
| 178 typedef VOID (WINAPI *PUMX_DELETEA)(HWND hwndParent,PUMS_GETSELA pumsSelection); | |
| 179 typedef VOID (WINAPI *PUMX_RENAMEW)(HWND hwndParent,PUMS_GETSELW pumsSelection,LPWSTR pchNewName); | |
| 180 typedef VOID (WINAPI *PUMX_RENAMEA)(HWND hwndParent,PUMS_GETSELA pumsSelection,LPSTR pchNewName); | |
| 181 | |
| 182 #ifdef UNICODE | |
| 183 #define PUMX_LOADMENU PUMX_LOADMENUW | |
| 184 #define PUMX_GETEXTENDEDERRORSTRING PUMX_GETEXTENDEDERRORSTRINGW | |
| 185 #define PUMX_CREATE PUMX_CREATEW | |
| 186 #define PUMX_DELETE PUMX_DELETEW | |
| 187 #define PUMX_RENAME PUMX_RENAMEW | |
| 188 #else | |
| 189 #define PUMX_LOADMENU PUMX_LOADMENUA | |
| 190 #define PUMX_GETEXTENDEDERRORSTRING PUMX_GETEXTENDEDERRORSTRINGA | |
| 191 #define PUMX_CREATE PUMX_CREATEA | |
| 192 #define PUMX_DELETE PUMX_DELETEA | |
| 193 #define PUMX_RENAME PUMX_RENAMEA | |
| 194 #endif | |
| 195 | |
| 196 DWORD WINAPI UMELoadMenuA(HWND hwndMessage,PUMS_LOADMENUA pumsload); | |
| 197 DWORD WINAPI UMELoadMenuW(HWND hwndMessage,PUMS_LOADMENUW pumsload); | |
| 198 LPSTR WINAPI UMEGetExtendedErrorStringA(VOID); | |
| 199 LPWSTR WINAPI UMEGetExtendedErrorStringW(VOID); | |
| 200 VOID WINAPI UMEUnloadMenu(VOID); | |
| 201 VOID WINAPI UMEInitializeMenu(VOID); | |
| 202 VOID WINAPI UMERefresh(HWND hwndParent); | |
| 203 VOID WINAPI UMEMenuAction(HWND hwndParent,DWORD dwEventId); | |
| 204 VOID WINAPI UMECreateA(HWND hwndParent,PUMS_GETSELA pumsSelection); | |
| 205 VOID WINAPI UMECreateW(HWND hwndParent,PUMS_GETSELW pumsSelection); | |
| 206 VOID WINAPI UMEDeleteA(HWND hwndParent,PUMS_GETSELA pumsSelection); | |
| 207 VOID WINAPI UMEDeleteW(HWND hwndParent,PUMS_GETSELW pumsSelection); | |
| 208 VOID WINAPI UMERenameA(HWND hwndParent,PUMS_GETSELA pumsSelection,LPSTR pchNewName); | |
| 209 VOID WINAPI UMERenameW(HWND hwndParent,PUMS_GETSELW pumsSelection,LPWSTR pchNewName); | |
| 210 #endif |
