Einzelnen Beitrag anzeigen

haidomingo

Registriert seit: 23. Jul 2009
23 Beiträge
 
#5

Re: Start or end an application on a remote computer.

  Alt 26. Nov 2009, 16:23
I changed the code

Delphi-Quellcode:
....
Var
  ObjConf: ISWbemObject;
...

...
...

  Service.Security_.Set_ImpersonationLevel(wbemImpersonationLevelImpersonate);

  // added rows
     SObject:= Service.Get('Win32_ProcessStartup',0,nil);
     ObjConf := SObject.SpawnInstance_(0);
     PropValue := 1;
     objConf.Properties_.Item('ShowWindow',0).Set_Value(PropValue);


  SObject:= Service.Get('Win32_Process', 0, nil);
...
...
  MyProperty:= InParam.Properties_.Add('ProcessStartupInformation', wbemCimtypeObject, False, 0);
  // modified row
     PropValue:= ObjConf;
  MyProperty.Set_Value(PropValue);
but application does not appear into remote desktop PC
Help
  Mit Zitat antworten Zitat