Mercurial > games > semicongine
diff fuhtark_test/include/winapi/cpl.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fuhtark_test/include/winapi/cpl.h Wed Nov 26 21:36:48 2025 +0700 @@ -0,0 +1,80 @@ +/** + * This file has no copyright assigned and is placed in the Public Domain. + * This file is part of the w64 mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within this package. + */ +#ifndef _INC_CPL +#define _INC_CPL + +#include <pshpack1.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define WM_CPL_LAUNCH (WM_USER+1000) +#define WM_CPL_LAUNCHED (WM_USER+1001) + +#define CPL_DYNAMIC_RES 0 +#define CPL_INIT 1 +#define CPL_GETCOUNT 2 +#define CPL_INQUIRE 3 +#define CPL_SELECT 4 +#define CPL_DBLCLK 5 +#define CPL_STOP 6 +#define CPL_EXIT 7 +#define CPL_NEWINQUIRE 8 +#define CPL_STARTWPARMSA 9 +#define CPL_STARTWPARMSW 10 + + typedef LONG (WINAPI *APPLET_PROC)(HWND hwndCpl,UINT msg,LPARAM lParam1,LPARAM lParam2); + + typedef struct tagCPLINFO { + int idIcon; + int idName; + int idInfo; + LONG_PTR lData; + } CPLINFO,*LPCPLINFO; + + typedef struct tagNEWCPLINFOA { + DWORD dwSize; + DWORD dwFlags; + DWORD dwHelpContext; + LONG_PTR lData; + HICON hIcon; + CHAR szName[32]; + CHAR szInfo[64]; + CHAR szHelpFile[128]; + } NEWCPLINFOA,*LPNEWCPLINFOA; + + typedef struct tagNEWCPLINFOW { + DWORD dwSize; + DWORD dwFlags; + DWORD dwHelpContext; + LONG_PTR lData; + HICON hIcon; + WCHAR szName[32]; + WCHAR szInfo[64]; + WCHAR szHelpFile[128]; + } NEWCPLINFOW,*LPNEWCPLINFOW; + +#ifdef UNICODE + typedef NEWCPLINFOW NEWCPLINFO; + typedef LPNEWCPLINFOW LPNEWCPLINFO; + +#define CPL_STARTWPARMS CPL_STARTWPARMSW +#else + typedef NEWCPLINFOA NEWCPLINFO; + typedef LPNEWCPLINFOA LPNEWCPLINFO; + +#define CPL_STARTWPARMS CPL_STARTWPARMSA +#endif + +#define CPL_SETUP 200 + +#ifdef __cplusplus +} +#endif + +#include <poppack.h> +#endif
