6 messages in net.java.dev.jna.usersRe: [jna-users] Win32 WaitForMultipeO...
FromSent OnAttachments
Scott PalmerMar 10, 2009 8:46 am 
Timothy WallMar 10, 2009 9:18 am 
Scott PalmerMar 10, 2009 10:08 am 
Timothy WallMar 10, 2009 10:20 am 
Scott PalmerMar 10, 2009 11:16 am 
Timothy WallMar 10, 2009 11:28 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Win32 WaitForMultipeObjects - no support for arrays of HANDLE?Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 10, 2009 11:28:41 am
List:net.java.dev.jna.users

More generally it means supporting arrays of type-mapped types, which is already done in two other places; the issue is refactoring the code so that it's only in one place and invoked in three different instances (structure read/write, parameters, and one other place that slips my mind at the moment).

On Mar 10, 2009, at 2:17 PM, Scott Palmer wrote:

Ah, thanks. I'm guessing since Pointer[] is supported that HANDLE[] support could be added without much effort?

Cheers,

-----Original Message----- From: Timothy Wall [mailto:twal@dev.java.net]

You can pass Pointer[], using HANDLE.getPointer() to populate the array.

Sorry, I misread the WaitForMultipleObjects doc.

On Mar 10, 2009, at 1:09 PM, Scott Palmer wrote:

I don't understand how that will help. I already have a couple HANDLEs.. The API I need to call takes an array of HANDLEs, of length > 1.

Scott <snip>