Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1030304 - jnaWindows_allWindowHandles

JavaX fragment (include) [tags: use-pretranspiled]

Uses 3917K of libraries. Click here for Pure Java version (57L/1K).

!include once #1030303 // JNA Win32

static L<HWND> jnaWindows_allWindowHandles() {
  new L<HWND> windows;
  User32.INSTANCE.EnumWindows(new WNDENUMPROC {
    @Override
    public boolean callback(HWND hWnd, Pointer arg1) {
      ret true with windows.add(hWnd);
    }
  }, null);
  ret windows;
}

Author comment

Began life as a copy of #1030296

download  show line numbers  debug dex   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1030304
Snippet name: jnaWindows_allWindowHandles
Eternal ID of this version: #1030304/2
Text MD5: eb7327a96c41bf6b32399a50e78c2fd5
Transpilation MD5: adf0575593a225428bc58282f72dd95a
Author: stefan
Category: javax / windows
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-30 13:43:29
Source code size: 308 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 7 / 18
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030304 & http://1030304.tinybrain.de