[Run][WindowWalker]Improve EnumWindows synchronization (#27490)

This commit is contained in:
Davide Giacometti
2023-07-25 15:15:34 +02:00
committed by GitHub
parent 082c312325
commit e02ceaa8d0
3 changed files with 64 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ namespace Wox.Plugin.Common.Win32
public static class NativeMethods
{
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
public static extern int EnumWindows(EnumWindowsProc callPtr, int lPar);
public static extern int EnumWindows(EnumWindowsProc callPtr, IntPtr lParam);
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr GetWindow(IntPtr hWnd, GetWindowCmd uCmd);