}
public static int[] enumChildrens(int handle)
{
childList.clear();
Callback callback = new Callback(Windows.class, "enumChildrenProc", 2);
int address = callback.getAddress();
if (address != 0)
{
try
{
Function function = new Function(USER32_LIB, FUNTION_ENUMCHILDWINDOWS);
function.invoke_I(handle, address, 0);
function.close();
} catch (Exception e)
{
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}
callback.dispose();
}
int[] handles = new int[windowsList.size()];
for (int i = 0; i < windowsList.size(); i++)
handles[i] = ((LONG) windowsList.get(i)).value;
return handles;