WMI Library
|
The Windows Management Instrumentation namespace. More...
Classes | |
class | Connection |
A connection to the WMI provider on a host. More... | |
class | Exception |
The exception type thrown by the WMI library. More... | |
class | Object |
An instance of a WMI Class. More... | |
class | ObjectIterator |
The iterator type used for collections of WBEM Class Objects. More... | |
class | TypedObject |
The base class for all type-specfic WMI objects. More... | |
class | TypedObjectIterator |
A type-safe version of ObjectIterator. More... | |
class | Win32_OperatingSystem |
The C++ version of the Win32_OperatingSystem WMI class. More... | |
Functions | |
bool | tryParseDateTime (const tstring &value, CDateTime &datetime, tstring &offset) |
Try and convert a string into a datetime. | |
CDateTime | parseDateTime (const tstring &value) |
Convert a string into a datetime or throw an exception if the format is invalid. | |
bool | operator== (const ObjectIterator &lhs, const ObjectIterator &rhs) |
Compare two iterators for equivalence. | |
bool | operator!= (const ObjectIterator &lhs, const ObjectIterator &rhs) |
Compare two iterators for difference. | |
template<typename T > | |
bool | operator== (const TypedObjectIterator< T > &lhs, const TypedObjectIterator< T > &rhs) |
Compare two iterators for equivalence. | |
template<typename T > | |
bool | operator!= (const TypedObjectIterator< T > &lhs, const TypedObjectIterator< T > &rhs) |
Compare two iterators for difference. |
The Windows Management Instrumentation namespace.
bool WMI::tryParseDateTime | ( | const tstring & | value, |
CDateTime & | datetime, | ||
tstring & | offset | ||
) |
Try and convert a string into a datetime.
The format of a WMI datetime is:- YYYYMMDDHHMMSS.FFFFFF+TZO e.g. 20101008181758.546000+060
CDateTime WMI::parseDateTime | ( | const tstring & | value | ) |
Convert a string into a datetime or throw an exception if the format is invalid.
bool WMI::operator== | ( | const ObjectIterator & | lhs, |
const ObjectIterator & | rhs | ||
) | [inline] |
Compare two iterators for equivalence.
bool WMI::operator!= | ( | const ObjectIterator & | lhs, |
const ObjectIterator & | rhs | ||
) | [inline] |
Compare two iterators for difference.
bool WMI::operator== | ( | const TypedObjectIterator< T > & | lhs, |
const TypedObjectIterator< T > & | rhs | ||
) |
Compare two iterators for equivalence.
bool WMI::operator!= | ( | const TypedObjectIterator< T > & | lhs, |
const TypedObjectIterator< T > & | rhs | ||
) |
Compare two iterators for difference.