/**
* Method copied from 3.3+ Variant class.
*/
public static Variant win32_new(int varArgAddr) {
try {
Variant variant = new Variant();
Method setDataMethod =
variant.getClass().getDeclaredMethod("setData", new Class[]{int.class});
setDataMethod.setAccessible(true);
setDataMethod.invoke(variant, new Object[]{new Integer(varArgAddr)});
return variant;
} catch (Throwable e) {
throw new RuntimeException(e);