🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5688

Re: How do I read or handle these Microsoft types?

#5688
From: Bob Gonder
Date: Sat, 16 Jul 2005 18:22
34 lines
2149 bytes
Maurice Anderson wrote:

>I have a Wmi object that I read data from.  The data is presented in the
>common types like int and so on.  A few however are some sort of Array of
>which I have no clue how to read.  For example:
>
>datetime InstallDate;

InstallDate
    Data type: datetime
    This property has not been implemented yet. It returns a NULL
value by default.

Since it hasn't been implemented, it's hard to know for absolute
certain, but generally, it is a 64bit value similar if not exactly
like FILETIME.  If not NULL, try using FileTimeToSystemTime() on it.


>string NetworkAddresses[];

NetworkAddresses
    Data type: string array
    Array of network addresses for an adapter.
    This property has not been implemented yet. It returns a NULL
value by default.

Since it hasn't been implemented, it's hard to know for absolute
certain, but generally, it is a sequence of cstrings, with the final
string being empty. As in NA[] = {"One\0Two\0Three\0\0"};

>uint16 PowerManagementCapabilities[];

I don't know how many there are, but if not NULL, [0] should be
readable.
Technical Details
Message-ID: <8oiid1lei69ahpl9epkku3ulom7hek1taa@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42d8a830$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e498d66dcc702f00
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How do I read or handle these Microsoft types?
Date: Sat, 16 Jul 2005 11:22:43 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <8oiid1lei69ahpl9epkku3ulom7hek1taa@4ax.com>
References: <42d8a830$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.0.140.49
X-Trace: newsgroups.borland.com 1121538161 71.0.140.49 (16 Jul 2005 11:22:41 -0700)
Lines: 36
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail