waitingsong / node-win32-api

win32 api
MIT License
430 stars 55 forks source link

support like GetAltTabInfoA EnumDesktopWindows function #23

Open WingDust opened 4 years ago

WingDust commented 4 years ago

I am try get all in alt-Tab windws 's hwnd and titles

i am watch Window API from you doc link GetAltTabWindowA EnumDesktopWindows ... but in the const use32= U.load() it have this function lack GetAltTabWindowA EnumDesktopWindows hope to achieve image

image

Second

This is my function for test I know about it shallow I know use32.EnumWindows(foo,null) has a argument trouble but in the EnumWindows function that have a callback EnumWindowsProc function and Type: WNDENUMPROC I want to ask how to put function into the EnumWIndows and how to use ref correctly or it' has better way to get All alt-Tab windows image

this is error image

waitingsong commented 4 years ago

Do u mean GetAltTabInfoW ? https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getalttabinfow

WingDust commented 4 years ago

yes or u have better way to get all windows in alt-Tab list in windows show me