1
vote
Vote UpVote

WMI Tasks using Delphi – Processes

The Road to Delphi – How do I run an application in a hidden window? Call the application from an app that uses the Win32_Process and Win32_ProcessStartup classes. const wbemFlagForwardOnly = $00000020; HIDDEN_WINDOW = 0; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant; FWbemObject : OLEVariant; objProcess : OLEVariant; objConfig : OLEVariant; ProcessID : Integer; begin; FSWbemLocator := CreateOleObject('WbemScripting.SWbemLocator'); FWMIService := FSWbemLocator.ConnectServer('localhost', 'root\CIMV2', '', ''); FWbemObject := ...
Favorite? Off-Topic? Rodrigo @ 2011-11-06 23:03

Statistics

Visits: 389
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Horbs
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)