techhunt - 2012-02-02

Hi,
How can we pass a class type as IN parameter for a method?
For example win32_process class has create method.
syntax:


uint32 Create(
     string CommandLine,
     string CurrentDirectory,
     Win32_ProcessStartup ProcessStartupInformation,
    uint32 ProcessId
);

How to pass  parameter Win32_ProcessStartup?

inParams.getObjectDispatcher().put("CommandLine", new JIVariant(cmd));
inParams.getObjectDispatcher().put("CurrentDirectory", new JIVariant(cDir));
inParams.getObjectDispatcher().put("ProcessStartupInformation", new JIVariant(0));

How to create JIVariant for Win32_ProcessStartup class?

-Regards,
techhunt