喫茶XRAYトップページ

[スレッド全体
]

[9387] 人の心理返信 削除
2015/11/13 (金) 15:31:06 Mr.XRAY
下のコードと,次の書き込みのコードと,どちらが難解だと思いますか ?

function TForm1.GetWMIPropSetEnum(ASQLText: WideString): IEnumVariant;
var
  LISWbemLocator  : ISWbemLocator;
  LISWbemService  : ISWbemServices;
  LSWbemObjectSet : ISWbemObjectSet;
begin
  LISWbemLocator := CoSWbemLocator.Create;
  LISWbemService := LISWbemLocator.ConnectServer(
                     '',
                     'root\cimv2',
                     '',
                     '',
                     '',
                     '',
                     0,
                     nil);

  LSWbemObjectSet := LISWbemService.ExecQuery(
                     'Select * From ' + ASQLText,
                     'WQL',
                     wbemFlagReturnImmediately,
                     nil);


  Result := LSWbemObjectSet._NewEnum as IEnumVariant;
end;


[9388] Re:人の心理返信 削除
2015/11/13 (金) 15:32:26 Mr.XRAY
どちらが難解か ?

function TForm1.GetWMIPropSetEnum(ASQLText: WideString): IEnumVariant;
var
  LISWbemLocator  : ISWbemLocator;
  LISWbemService  : ISWbemServices;
  LSWbemObjectSet : ISWbemObjectSet;
begin
  LISWbemLocator := CoSWbemLocator.Create;
  LISWbemService := LISWbemLocator.ConnectServer(
    '', 'root\cimv2', '', '', '', '', 0, nil);

  LSWbemObjectSet := LISWbemService.ExecQuery(
    'Select * From ' + ASQLText, 'WQL', wbemFlagReturnImmediately, nil);

  Result := LSWbemObjectSet._NewEnum as IEnumVariant;
end;


[▼次のスレッド]
INCM/CMT
Cyclamen v3.82