From 9194978d0995a7368ce599bc03d6c7024e0dfc93 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Sat, 4 Jan 2025 19:11:41 +0100 Subject: [PATCH 1/8] Link to W version pages in CREATESTRUCTW --- .../content/winuser/ns-winuser-createstructw.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk-api-src/content/winuser/ns-winuser-createstructw.md b/sdk-api-src/content/winuser/ns-winuser-createstructw.md index 9389961691f7..1d30f5b00cf3 100644 --- a/sdk-api-src/content/winuser/ns-winuser-createstructw.md +++ b/sdk-api-src/content/winuser/ns-winuser-createstructw.md @@ -56,7 +56,7 @@ api_name: ## -description -Defines the initialization parameters passed to the window procedure of an application. These members are identical to the parameters of the CreateWindowEx function. +Defines the initialization parameters passed to the window procedure of an application. These members are identical to the parameters of the CreateWindowEx function. ## -struct-fields @@ -64,9 +64,9 @@ Defines the initialization parameters passed to the window procedure of an appli Type: LPVOID -Contains additional data which may be used to create the window. If the window is being created as a result of a call to the CreateWindow or CreateWindowEx function, this member contains the value of the lpParam parameter specified in the function call. +Contains additional data which may be used to create the window. If the window is being created as a result of a call to the CreateWindow or CreateWindowEx function, this member contains the value of the lpParam parameter specified in the function call. -If the window being created is a MDI client window, this member contains a pointer to a CLIENTCREATESTRUCT structure. If the window being created is a MDI child window, this member contains a pointer to an MDICREATESTRUCT structure. +If the window being created is a MDI client window, this member contains a pointer to a CLIENTCREATESTRUCT structure. If the window being created is a MDI child window, this member contains a pointer to an MDICREATESTRUCT structure. If the window is being created from a dialog template, this member is the address of a SHORT value that specifies the size, in bytes, of the window creation data. The value is immediately followed by the creation data. For more information, see the following Remarks section. @@ -178,15 +178,15 @@ PMYDLGDATA pMyDlgdata = (PMYDLGDATA) (((LPCREATESTRUCT) lParam)->lpCreateParams) -CreateWindow +CreateWindow -CreateWindowEx +CreateWindowEx -MDICREATESTRUCT +MDICREATESTRUCT From c4334dd1ec66ce2e930e889537a545a2cc5e3281 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Sat, 4 Jan 2025 19:18:49 +0100 Subject: [PATCH 2/8] Link to W version pages in CreateWindowExW --- .../winuser/nf-winuser-createwindowexw.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk-api-src/content/winuser/nf-winuser-createwindowexw.md b/sdk-api-src/content/winuser/nf-winuser-createwindowexw.md index 6ae7d05439e5..a92db6329e72 100644 --- a/sdk-api-src/content/winuser/nf-winuser-createwindowexw.md +++ b/sdk-api-src/content/winuser/nf-winuser-createwindowexw.md @@ -63,7 +63,7 @@ req.apiset: ext-ms-win-ntuser-window-l1-1-0 (introduced in Windows 8) ## -description -Creates an overlapped, pop-up, or child window with an extended window style; otherwise, this function is identical to the CreateWindow function. For more information about creating a window and for full descriptions of the other parameters of CreateWindowEx, see CreateWindow. +Creates an overlapped, pop-up, or child window with an extended window style; otherwise, this function is identical to the CreateWindow function. For more information about creating a window and for full descriptions of the other parameters of CreateWindowEx, see CreateWindow. ## -parameters @@ -79,7 +79,7 @@ Type: LPCTSTR A null-terminated string or a class atom. -If a null-terminated string, it specifies the window class name. The class name can be any name registered with the RegisterClass or RegisterClassEx function, provided that the module that registers the class is also the module that creates the window. The class name can also be any of the predefined system class names. +If a null-terminated string, it specifies the window class name. The class name can be any name registered with the RegisterClass or RegisterClassEx function, provided that the module that registers the class is also the module that creates the window. The class name can also be any of the predefined system class names. If a class atom created by a previous call to RegisterClass or RegisterClassEx, it must be converted using the macro MAKEINTATOM. (The atom must be in the low-order word of lpClassName; the high-order word must be zero.) @@ -87,7 +87,7 @@ If a class atom created by a previous call to RegisterClass or Registe Type: LPCTSTR -The window name. If the window style specifies a title bar, the window title pointed to by lpWindowName is displayed in the title bar. When using CreateWindow to create controls, such as buttons, check boxes, and static controls, use lpWindowName to specify the text of the control. When creating a static control with the SS_ICON style, use lpWindowName to specify the icon name or identifier. To specify an identifier, use the syntax "#num". +The window name. If the window style specifies a title bar, the window title pointed to by lpWindowName is displayed in the title bar. When using CreateWindow to create controls, such as buttons, check boxes, and static controls, use lpWindowName to specify the text of the control. When creating a static control with the SS_ICON style, use lpWindowName to specify the icon name or identifier. To specify an identifier, use the syntax "#num". ### -param dwStyle [in] @@ -146,9 +146,9 @@ A handle to the instance of the module to be associated with the window. Type: LPVOID -Pointer to a value to be passed to the window through the CREATESTRUCT structure (lpCreateParams member) pointed to by the lParam param of the WM_CREATE message. This message is sent to the created window by this function before it returns. +Pointer to a value to be passed to the window through the CREATESTRUCT structure (lpCreateParams member) pointed to by the lParam param of the WM_CREATE message. This message is sent to the created window by this function before it returns. -If an application calls CreateWindow to create a MDI client window, lpParam should point to a CLIENTCREATESTRUCT structure. If an MDI client window calls CreateWindow to create an MDI child window, lpParam should point to a MDICREATESTRUCT structure. lpParam may be NULL if no additional data is needed. +If an application calls CreateWindow to create a MDI client window, lpParam should point to a CLIENTCREATESTRUCT structure. If an MDI client window calls CreateWindow to create an MDI child window, lpParam should point to a MDICREATESTRUCT structure. lpParam may be NULL if no additional data is needed. ## -returns @@ -318,7 +318,7 @@ BOOL Create( -CREATESTRUCT +CREATESTRUCT @@ -326,7 +326,7 @@ BOOL Create( -CreateWindow +CreateWindow @@ -346,11 +346,11 @@ BOOL Create( -RegisterClass +RegisterClass -RegisterClassEx +RegisterClassEx @@ -362,7 +362,7 @@ BOOL Create( -SetWindowLong +SetWindowLong From c1235d75ca46ab73c33bf27a325d9114526eab0b Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Sat, 4 Jan 2025 19:21:38 +0100 Subject: [PATCH 3/8] Link to W version pages in CreateWindowW --- .../winuser/nf-winuser-createwindoww.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sdk-api-src/content/winuser/nf-winuser-createwindoww.md b/sdk-api-src/content/winuser/nf-winuser-createwindoww.md index c76c91cd4b8e..b6cbdfd1e380 100644 --- a/sdk-api-src/content/winuser/nf-winuser-createwindoww.md +++ b/sdk-api-src/content/winuser/nf-winuser-createwindoww.md @@ -54,7 +54,7 @@ api_name: Creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu. -To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function. +To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function. ## -syntax @@ -80,7 +80,7 @@ HWND CreateWindowW( Type: LPCWSTR -A null-terminated string or a class atom created by a previous call to the RegisterClass or RegisterClassEx function. The atom must be in the low-order word of lpClassName; the high-order word must be zero. If lpClassName is a string, it specifies the window class name. The class name can be any name registered with RegisterClass or RegisterClassEx, provided that the module that registers the class is also the module that creates the window. The class name can also be any of the predefined system class names. For a list of system class names, see the Remarks section. +A null-terminated string or a class atom created by a previous call to the RegisterClass or RegisterClassEx function. The atom must be in the low-order word of lpClassName; the high-order word must be zero. If lpClassName is a string, it specifies the window class name. The class name can be any name registered with RegisterClass or RegisterClassEx, provided that the module that registers the class is also the module that creates the window. The class name can also be any of the predefined system class names. For a list of system class names, see the Remarks section. ### -param lpWindowName [in, optional] @@ -145,9 +145,9 @@ A handle to the instance of the module to be associated with the window. Type: LPVOID -A pointer to a value to be passed to the window through the CREATESTRUCT structure (lpCreateParams member) pointed to by the lParam param of the WM_CREATE message. This message is sent to the created window by this function before it returns. +A pointer to a value to be passed to the window through the CREATESTRUCT structure (lpCreateParams member) pointed to by the lParam param of the WM_CREATE message. This message is sent to the created window by this function before it returns. -If an application calls CreateWindow to create a MDI client window, lpParam should point to a CLIENTCREATESTRUCT structure. If an MDI client window calls CreateWindow to create an MDI child window, lpParam should point to a MDICREATESTRUCT structure. lpParam may be NULL if no additional data is needed. +If an application calls CreateWindow to create a MDI client window, lpParam should point to a CLIENTCREATESTRUCT structure. If an MDI client window calls CreateWindow to create an MDI child window, lpParam should point to a MDICREATESTRUCT structure. lpParam may be NULL if no additional data is needed. ## -returns @@ -160,7 +160,7 @@ If the function fails, the return value is NULL. To get extended error in ## -remarks Before returning, CreateWindow sends a WM_CREATE message to the window procedure. For overlapped, pop-up, and child windows, CreateWindow sends WM_CREATE, WM_GETMINMAXINFO, and WM_NCCREATE messages to the window. The - lParam parameter of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. If the WS_VISIBLE style is specified, CreateWindow sends the window all the messages required to activate and show the window. + lParam parameter of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. If the WS_VISIBLE style is specified, CreateWindow sends the window all the messages required to activate and show the window. If the created window is a child window, its default position is at the bottom of the Z-order. If the created window is a top-level window, its default position is at the top of the Z-order (but beneath all topmost windows unless the created window is itself topmost). @@ -262,7 +262,7 @@ For a table of the static control styles you can specify in the dwStyle p   -CreateWindow is implemented as a call to the CreateWindowEx function, as shown below. +CreateWindow is implemented as a call to the CreateWindowEx function, as shown below. ``` syntax @@ -306,7 +306,7 @@ For an example, see Using -CreateWindowEx +CreateWindowEx @@ -326,11 +326,11 @@ For an example, see Using -RegisterClass +RegisterClass -RegisterClassEx +RegisterClassEx From bf04ed9c0870063062de217482e9a8320a4d8bf6 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Sat, 4 Jan 2025 19:24:09 +0100 Subject: [PATCH 4/8] Link to W version pages in MDICREATESTRUCTW --- sdk-api-src/content/winuser/ns-winuser-mdicreatestructw.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk-api-src/content/winuser/ns-winuser-mdicreatestructw.md b/sdk-api-src/content/winuser/ns-winuser-mdicreatestructw.md index 2584b7638a2c..cf28bf872e70 100644 --- a/sdk-api-src/content/winuser/ns-winuser-mdicreatestructw.md +++ b/sdk-api-src/content/winuser/ns-winuser-mdicreatestructw.md @@ -64,7 +64,7 @@ Contains information about the class, title, owner, location, and size of a mult Type: LPCTSTR -The name of the window class of the MDI child window. The class name must have been registered by a previous call to the RegisterClass function. +The name of the window class of the MDI child window. The class name must have been registered by a previous call to the RegisterClass function. ### -field szTitle @@ -171,7 +171,7 @@ An application-defined value. ## -remarks When the MDI client window creates an MDI child window - by calling CreateWindow, the system sends a WM_CREATE message to the created window. The lParam member of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. The + by calling CreateWindow, the system sends a WM_CREATE message to the created window. The lParam member of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. The lpCreateParams member of this structure contains a pointer to the MDICREATESTRUCT structure passed with the WM_MDICREATE message that created the MDI child window. @@ -187,7 +187,7 @@ When the MDI client window creates an MDI child window -CREATESTRUCT +CREATESTRUCT From 403ae74451f33ac46f452350e67725f3ca0d8a61 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Mon, 20 Jan 2025 21:18:14 +0100 Subject: [PATCH 5/8] Link to W version pages in GetModuleBAseNameW --- sdk-api-src/content/psapi/nf-psapi-getmodulebasenamew.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk-api-src/content/psapi/nf-psapi-getmodulebasenamew.md b/sdk-api-src/content/psapi/nf-psapi-getmodulebasenamew.md index e2476d121bae..adf7e21251fa 100644 --- a/sdk-api-src/content/psapi/nf-psapi-getmodulebasenamew.md +++ b/sdk-api-src/content/psapi/nf-psapi-getmodulebasenamew.md @@ -96,14 +96,14 @@ The GetModuleBaseName function is primarily designed for use by debuggers -To retrieve the base name of a module in the current process, use the GetModuleFileName function to retrieve the full module name and then use a function call such as strrchr(szmodulename, '\\') to scan to the beginning of the base name within the module name string. This is more efficient and more reliable than calling GetModuleBaseName with a handle to the current process. +To retrieve the base name of a module in the current process, use the GetModuleFileName function to retrieve the full module name and then use a function call such as strrchr(szmodulename, '\\') to scan to the beginning of the base name within the module name string. This is more efficient and more reliable than calling GetModuleBaseName with a handle to the current process. -To retrieve the base name of the main executable module for a remote process, use the GetProcessImageFileName or QueryFullProcessImageName function to retrieve the module name and then use the strrchr function as described in the previous paragraph. This is more efficient and more reliable than calling GetModuleBaseName with a NULL module handle. +To retrieve the base name of the main executable module for a remote process, use the GetProcessImageFileName or QueryFullProcessImageName function to retrieve the module name and then use the strrchr function as described in the previous paragraph. This is more efficient and more reliable than calling GetModuleBaseName with a NULL module handle. -The GetModuleBaseName function does not retrieve the base name for modules that were loaded with the LOAD_LIBRARY_AS_DATAFILE flag. For more information, see LoadLibraryEx. +The GetModuleBaseName function does not retrieve the base name for modules that were loaded with the LOAD_LIBRARY_AS_DATAFILE flag. For more information, see LoadLibraryEx. Starting with Windows 7 and Windows Server 2008 R2, Psapi.h establishes version numbers for the PSAPI functions. The PSAPI version number affects the name used to call the function and @@ -142,7 +142,7 @@ For an example, see -GetModuleFileNameEx +GetModuleFileNameEx From 4cdacf0fefba63874405a2dc2eb1db7331488496 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Mon, 20 Jan 2025 21:20:00 +0100 Subject: [PATCH 6/8] Link to W version page in GetModuleFileNameExW --- sdk-api-src/content/psapi/nf-psapi-getmodulefilenameexw.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk-api-src/content/psapi/nf-psapi-getmodulefilenameexw.md b/sdk-api-src/content/psapi/nf-psapi-getmodulefilenameexw.md index 404161e17b1f..677e0450b991 100644 --- a/sdk-api-src/content/psapi/nf-psapi-getmodulefilenameexw.md +++ b/sdk-api-src/content/psapi/nf-psapi-getmodulefilenameexw.md @@ -151,7 +151,7 @@ For an example, see -LoadLibrary +LoadLibrary From db1a7e921ca8372e4ea28dfc7942c3cf8b2f557b Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Mon, 20 Jan 2025 21:22:04 +0100 Subject: [PATCH 7/8] Link to W version pages in GetProcessImageFileNameW --- .../content/psapi/nf-psapi-getprocessimagefilenamew.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk-api-src/content/psapi/nf-psapi-getprocessimagefilenamew.md b/sdk-api-src/content/psapi/nf-psapi-getprocessimagefilenamew.md index 68d5d6d20afe..d24298011d47 100644 --- a/sdk-api-src/content/psapi/nf-psapi-getprocessimagefilenamew.md +++ b/sdk-api-src/content/psapi/nf-psapi-getprocessimagefilenamew.md @@ -92,9 +92,9 @@ The GetProcessImageFileName function returns the path in device form, rat \Device\Harddisk0\Partition1\Windows\System32\Ctype.nls -To retrieve the module name of the current process, use the GetModuleFileName function with a NULL module handle. This is more efficient than calling the GetProcessImageFileName function with a handle to the current process. +To retrieve the module name of the current process, use the GetModuleFileName function with a NULL module handle. This is more efficient than calling the GetProcessImageFileName function with a handle to the current process. -To retrieve the name of the main executable module for a remote process in win32 path format, use the QueryFullProcessImageName function. +To retrieve the name of the main executable module for a remote process in win32 path format, use the QueryFullProcessImageName function. Starting with Windows 7 and Windows Server 2008 R2, Psapi.h establishes version numbers for the PSAPI functions. The PSAPI version number affects the name used to call the function and @@ -130,4 +130,4 @@ Programs that must run on earlier versions of Windows as -QueryFullProcessImageName +QueryFullProcessImageName From c178fe4582c5aabb150da4b262eeb7d1f2fdb741 Mon Sep 17 00:00:00 2001 From: "Henrik \"Henke37\" Andersson" Date: Mon, 20 Jan 2025 21:23:21 +0100 Subject: [PATCH 8/8] Update nc-psapi-penum_page_file_callbackw.md --- .../content/psapi/nc-psapi-penum_page_file_callbackw.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk-api-src/content/psapi/nc-psapi-penum_page_file_callbackw.md b/sdk-api-src/content/psapi/nc-psapi-penum_page_file_callbackw.md index c6151c7c00ec..3e401eb6ca31 100644 --- a/sdk-api-src/content/psapi/nc-psapi-penum_page_file_callbackw.md +++ b/sdk-api-src/content/psapi/nc-psapi-penum_page_file_callbackw.md @@ -53,7 +53,7 @@ api_name: ## -description An application-defined callback function used with the -EnumPageFiles function. +EnumPageFiles function. The PENUM_PAGE_FILE_CALLBACK type defines a pointer to this callback function. EnumPageFilesProc is a placeholder for the application-defined function name. @@ -63,7 +63,7 @@ The PENUM_PAGE_FILE_CALLBACK type defines a pointer to this callback func ### -param pContext [in] The user-defined data passed from -EnumPageFiles. +EnumPageFiles. ### -param pPageFileInfo [in] @@ -86,7 +86,7 @@ To stop enumeration, the callback function must return FALSE. -EnumPageFiles +EnumPageFiles