diff fuhtark_test/include/winapi/mapiwin.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/mapiwin.h	Wed Nov 26 21:36:48 2025 +0700
@@ -0,0 +1,39 @@
+/**
+ * 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 __MAPIWIN_H__
+#define __MAPIWIN_H__
+
+#include "mapinls.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MULDIV(x,y,z) MulDiv(x,y,z)
+
+  extern LPVOID pinstX;
+#define PvGetInstanceGlobals() pinstX
+#define ScSetInstanceGlobals(_pv) (pinstX = _pv,0)
+#define PvGetVerifyInstanceGlobals(_pid) pinstX
+#define ScSetVerifyInstanceGlobals(_pv,_pid) (pinstX = _pv,0)
+#define PvSlowGetInstanceGlobals(_pid) pinstX
+
+#define szMAPIDLLSuffix "32"
+
+#define GetTempFileName32(_szPath,_szPfx,_n,_lpbuf) GetTempFileName(_szPath,_szPfx,_n,_lpbuf)
+#define CloseMutexHandle CloseHandle
+#define Cbtszsize(_a) ((lstrlen(_a)+1)*sizeof(TCHAR))
+#define CbtszsizeA(_a) ((lstrlenA(_a) + 1))
+#define CbtszsizeW(_a) ((lstrlenW(_a) + 1)*sizeof(WCHAR))
+#define HexCchOf(_s) (sizeof(_s)*2+1)
+#define HexSizeOf(_s) (HexCchOf(_s)*sizeof(TCHAR))
+
+  WINBOOL WINAPI IsBadBoundedStringPtr(const void *lpsz,UINT cchMax);
+
+#ifdef __cplusplus
+}
+#endif
+#endif