Hello!
I am writing the first program from WMI to Delphi Embarcadero XE3. Added ISWbemLocator, asks to enter server, enter root \ COMV2, error. When I try to create this object dynamically, a search window of a certain msi file appears. How to win?
Chew on an idiot in an idiotic language, otherwise my brain remains are boiling ...
PS: for example, how I create this object dynamically ...
type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); private { Private declarations } Services: ISWbemServices; public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); var Locator: ISWbemLocator; begin Locator := CoSWbemLocator.Create; Services := Locator.ConnectServer('.', 'root\cimv2', '', '', '', '', 0, nil) end; end. 