From 176add046bd3ed02f4517f6bc2512ffc6a47c6b3 Mon Sep 17 00:00:00 2001
From: E O <59941851+edcdecl@users.noreply.github.com>
Date: Wed, 9 Apr 2025 12:19:00 -0500
Subject: [PATCH] HOOKPROC never mentions CWPSTRUCT
HOOKPROC can receive both CWPSTRUCT and CWPRETSTRUCT in LPARAM, but CWPSTRUCT is not once mentioned within the documentation.
---
sdk-api-src/content/winuser/nc-winuser-hookproc.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sdk-api-src/content/winuser/nc-winuser-hookproc.md b/sdk-api-src/content/winuser/nc-winuser-hookproc.md
index 2c33bc28692e..52a1ec8369d6 100644
--- a/sdk-api-src/content/winuser/nc-winuser-hookproc.md
+++ b/sdk-api-src/content/winuser/nc-winuser-hookproc.md
@@ -68,8 +68,8 @@ Specifies whether the message is sent by the current process. If the message is
Type: LPARAM
-A pointer to a CWPRETSTRUCT structure that contains details about the message.
-
+A pointer to a CWPSTRUCT or CWPRETSTRUCT structure that contains details about the message, depending
+on which hook type was specified when calling the SetWindowsHookEx function.
#### - nCode [in]
@@ -87,8 +87,8 @@ If nCode is greater than or equal to zero, it is highly recommended that
## -remarks
-An application installs the hook procedure by specifying the WH_CALLWNDPROCRET hook type and a pointer to the hook procedure in a call to the SetWindowsHookEx function.
+An application installs the hook procedure by specifying the WH_CALLWNDPROC or WH_CALLWNDPROCRET hook type and a pointer to the hook procedure in a call to the SetWindowsHookEx function.
## -see-also
-[CWPRETSTRUCT structure](ns-winuser-cwpretstruct.md), [CallNextHookEx function](nf-winuser-callnexthookex.md), [CallWindowProcW function](nf-winuser-callwindowprocw.md), [CallWindowProcA function](nf-winuser-callwindowproca.md), [SendMessage](/windows/desktop/api/winuser/nf-winuser-sendmessage), [SetWindowsHookEx](/windows/desktop/api/winuser/nf-winuser-setwindowshookexa), [Hooks](/windows/desktop/winmsg/hooks)
+[CWPSTRUCT structure](ns-winuser-cwpstruct.md), [CWPRETSTRUCT structure](ns-winuser-cwpretstruct.md), [CallNextHookEx function](nf-winuser-callnexthookex.md), [CallWindowProcW function](nf-winuser-callwindowprocw.md), [CallWindowProcA function](nf-winuser-callwindowproca.md), [SendMessage](/windows/desktop/api/winuser/nf-winuser-sendmessage), [SetWindowsHookEx](/windows/desktop/api/winuser/nf-winuser-setwindowshookexa), [Hooks](/windows/desktop/winmsg/hooks)