From 50b57259f985ed3e914f1d0fa9222fcdb9a6691f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=89LUSCA=20-=20MA=C3=8FTO?= Date: Fri, 20 Jun 2025 19:46:31 +0200 Subject: [PATCH] WLX_PROFILE_V1_0: Tell how pszProfile is allocated Tell that `pszProfile` needs to be allocated with LocalAlloc, since, according to investigations on Windows <= 2003, winlogon.exe will free this pointer with LocalFree. --- sdk-api-src/content/winwlx/ns-winwlx-wlx_profile_v1_0.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sdk-api-src/content/winwlx/ns-winwlx-wlx_profile_v1_0.md b/sdk-api-src/content/winwlx/ns-winwlx-wlx_profile_v1_0.md index 679bcb001b28..83976068fbbf 100644 --- a/sdk-api-src/content/winwlx/ns-winwlx-wlx_profile_v1_0.md +++ b/sdk-api-src/content/winwlx/ns-winwlx-wlx_profile_v1_0.md @@ -68,10 +68,7 @@ Must be set to WLX_PROFILE_TYPE_V1_0. Pointer to the profile path (for example, "%SystemRoot%\system32\config\AprilM001"). - - - -The string pointed to by pszProfile must be separately allocated by your GINA DLL. It will be deallocated by Winlogon. +The string pointed to by pszProfile must be separately allocated by your GINA DLL, using LocalAlloc. It will be deallocated by Winlogon. ## -remarks @@ -81,4 +78,4 @@ GINA uses two structures to provide profile information: WLX_PROFILE_V2_0 \ No newline at end of file +WLX_PROFILE_V2_0