2
votes
Vote UpVote

WMI Tasks using Delphi – Dates and Times

The Road to Delphi – How do I convert WMI dates to standard dates and times? Use the SWbemDateTime object to convert these to regular dates and times. const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant; FWbemObjectSet: OLEVariant; FWbemObject : OLEVariant; oEnum : IEnumvariant; iValue : LongWord; FWbemDateObj : OleVariant; Dt : TDateTime; begin; FWbemDateObj := CreateOleObject('WbemScripting.SWbemDateTime'); FSWbemLocator := CreateOleObject('WbemScripting.SWbemLocator'); FWMIService := ...
Favorite? Off-Topic? Rodrigo @ 2011-10-23 09:14

Statistics

Visits: 745
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Horbs
Zzzzz
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)