summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-11 07:53:34 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-11 07:53:34 +0200
commit0cfdf6cbad1a2e4d5f9d36ca44d3b54b3883e415 (patch)
treee41099f8ca2af38ccdd4e4b88d8a650f59944bac
parentf19e6c7bddfca904f6afdae9152491745df855f5 (diff)
[Fix] Add new entries to compile_flags.txt.
[Add] Add documentation W32MessageBoxW symbol. Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
-rw-r--r--compile_flags.txt2
-rw-r--r--sdk/w32.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/compile_flags.txt b/compile_flags.txt
index f24cf8f..4ca4a49 100644
--- a/compile_flags.txt
+++ b/compile_flags.txt
@@ -1,2 +1,4 @@
-std=c++20
-Idev/
+-Isdk/
+-I./
diff --git a/sdk/w32.h b/sdk/w32.h
index 65fcb4d..1cf974f 100644
--- a/sdk/w32.h
+++ b/sdk/w32.h
@@ -11,6 +11,11 @@
#include <sdk/xpcom.h>
-typedef struct __gHANDLE* HANDLE; // API handle.
+typedef XHANDLE HANDLE; // API handle, simply a pointer to an XHANDLE.
-EXTERN __INT32_TYPE__ W32MessageBoxW(HANDLE hWnd, const WCHAR* szContent, const WCHAR* szTitle, UINT32 iFlags);
+/// @brief Shows a message box within an handle.
+/// @param hWnd Message box parent handle.
+/// @param szContent Message box text.
+/// @param szTitle Message box title.
+/// @param iFlags Message box flags.
+EXTERN INT32 W32MessageBoxW(HANDLE hWnd, const WCHAR* szContent, const WCHAR* szTitle, UINT32 iFlags);