How can I use GetNextWindow() in C#?

前端 未结 2 1525
长发绾君心
长发绾君心 2021-01-02 15:26

The Microsoft WinAPI documentation appears to suggest that user32.dll contains a function called GetNextWindow() which supposedly allows one to enumerate open windows in the

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-02 15:51

    GetNextWindow is a c++ macro that calls GetWindow, so you cannot call it from .NET. Call GetWindow instead.

    From MSDN:

    Using this function is the same as calling the GetWindow function with the GW_HWNDNEXT or GW_HWNDPREV flag set

提交回复
热议问题