From 55d5633d2d761ccb4d8d95a09a23e82b64eb28c8 Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Sun, 19 Jan 2025 21:56:20 +0200 Subject: [PATCH 1/2] Update nf-wow64apiset-iswow64process.md Mention ARM64 which is missing, I made sure it returns TRUE too --- .../content/wow64apiset/nf-wow64apiset-iswow64process.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md b/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md index 52da42371885..3b53365b78a9 100644 --- a/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md +++ b/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md @@ -70,7 +70,7 @@ A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or P ### -param Wow64Process [out] -A pointer to a value that is set to TRUE if the process is running under WOW64 on an Intel64 or x64 processor. If the process is running under 32-bit Windows, the value is set to FALSE. If the process is a 32-bit application running under 64-bit Windows 10 on ARM, the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE. +A pointer to a value that is set to TRUE if the process is running under WOW64 on an Intel64, x64 or ARM64 processor. If the process is running under 32-bit Windows, the value is set to FALSE. If the process is a 32-bit application running under 64-bit Windows 10 on ARM, the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE. ## -returns @@ -143,4 +143,4 @@ int main( void ) -WOW64 \ No newline at end of file +WOW64 From 41bf214b0461cced948397c336c351a951faa41a Mon Sep 17 00:00:00 2001 From: Steven White <31261191+stevewhims@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:18:52 -0800 Subject: [PATCH 2/2] Update links and format in IsWow64Process doc --- .../nf-wow64apiset-iswow64process.md | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md b/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md index 3b53365b78a9..57921fef7746 100644 --- a/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md +++ b/sdk-api-src/content/wow64apiset/nf-wow64apiset-iswow64process.md @@ -6,7 +6,7 @@ helpviewer_keywords: ["IsWow64Process","IsWow64Process function","_win32_iswow64 old-location: base\iswow64process.htm tech.root: fs ms.assetid: 5a237542-e432-487c-aa59-2ede427dd1eb -ms.date: 12/05/2018 +ms.date: 01/27/2025 ms.keywords: IsWow64Process, IsWow64Process function, _win32_iswow64process, base.iswow64process, winbase/IsWow64Process, wow64apiset/IsWow64Process req.header: wow64apiset.h req.include-header: Windows.h on Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008 Windows Server 2008 R2 @@ -52,9 +52,6 @@ api_name: - IsWow64Process --- -# IsWow64Process function - - ## -description Determines whether the specified process is running under @@ -70,28 +67,26 @@ A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or P ### -param Wow64Process [out] -A pointer to a value that is set to TRUE if the process is running under WOW64 on an Intel64, x64 or ARM64 processor. If the process is running under 32-bit Windows, the value is set to FALSE. If the process is a 32-bit application running under 64-bit Windows 10 on ARM, the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE. +A pointer to a value that is set to TRUE if the process is running under WOW64 on an Intel64, x64, or ARM64 processor. If the process is running under 32-bit Windows, the value is set to FALSE. If the process is a 32-bit application running under 64-bit Windows 10 on ARM, the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE. ## -returns If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. To get extended error information, call -GetLastError. +GetLastError. ## -remarks -Applications should use IsWow64Process2 instead of IsWow64Process to determine if a process is running under WOW. IsWow64Process2 removes the ambiguity inherent to multiple WOW environments by explicitly returning both the architecture of the host and guest for a given process. Applications can use this information to reliably identify situations such as running under emulation on ARM64. To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see +Applications should use IsWow64Process2 instead of IsWow64Process to determine if a process is running under WOW. IsWow64Process2 removes the ambiguity inherent to multiple WOW environments by explicitly returning both the architecture of the host and guest for a given process. Applications can use this information to reliably identify situations such as running under emulation on ARM64. To compile an application that uses this function, define _WIN32_WINNT as 0x0501 or later. For more information, see Using the Windows Headers. - -#### Examples +## Examples For compatibility with operating systems that do not support this function, call -GetProcAddress to detect whether +GetProcAddress to detect whether IsWow64Process is implemented in Kernel32.dll. If GetProcAddress succeeds, it is safe to call this function. Otherwise, WOW64 is not present. Note that this technique is not a reliable way to detect whether the operating system is a 64-bit version of Windows because the Kernel32.dll in current versions of 32-bit Windows also contains this function. - ```cpp #include #include @@ -130,16 +125,15 @@ int main( void ) return 0; } - ``` ## -see-also -GetNativeSystemInfo +GetNativeSystemInfo -IsWow64Message +IsWow64Message