🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CoInitializeEx

#11639
From: Vladimir Afanasyev
Date: Tue, 27 Jan 2004 07:55
43 lines
2491 bytes
Hi Remy,

"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message
>news:40150765$1@newsgroups.borland.com...
>
>> //It will work only for NT/2000/XP
>
>Why do you say that?

Really I get this code from my codecentral applications (WMI).
And when I wrote it I had some problems with Win98.
It was impossible to install WMI Core on russian version 
Win98 (WMI Core for rus. ver. is absent or was absent then).
English WMI Core did not work on rus. ver.
So it was impossible to test my samples for Win98.
(I do not say even about incompatibility Variant type in BCB5 
and BCB6, it is another problem.).

Beside these, I find strange comments in objbase.h:

// COM initialization flags; passed to CoInitialize.
typedef enum tagCOINIT
{
  COINIT_APARTMENTTHREADED  = 0x2,      // Apartment model

#if  (_WIN32_WINNT >= 0x0400 ) || defined(_WIN32_DCOM) // DCOM
  // These constants are only valid on Windows NT 4.0
  COINIT_MULTITHREADED      = 0x0,      // OLE calls objects on any thread.
  COINIT_DISABLE_OLE1DDE    = 0x4,      // Don't use DDE for Ole1 support.
  COINIT_SPEED_OVER_MEMORY  = 0x8,      // Trade memory for speed.
#endif // DCOM
} COINIT;

You see - "// These constants are only valid on Windows NT 4.0".
Off course, may be it comes from Win95 but I am not sure.

So I decided to put these comments in my source.
Its reference rather to WMI than CoInitializeEx.
Best regards.
Vladimir.
Technical Details
Message-ID: <4016278c$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4012ffb1$1@newsgroups.borland.com> <40150765$1@newsgroups.borland.com> <40155c5b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,415206d9c16e00b1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-27 01:09:37 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: CoInitializeEx
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226     
X-Forwarded-For: 192.168.0.147
References:  <4012ffb1$1@newsgroups.borland.com> <40150765$1@newsgroups.borland.com> <40155c5b@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4016278c$2@newsgroups.borland.com>
Date: 27 Jan 2004 00:55:40 -0700
X-Trace: newsgroups.borland.com 1075193740 207.105.83.66 (27 Jan 2004 00:55:40 -0700)
Lines: 43
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail