Article View: borland.public.cppbuilder.nativeapi
Article #11134Re: Problem with GetComputerName
From: Koen
Date: Mon, 23 Feb 2004 10:43
Date: Mon, 23 Feb 2004 10:43
15 lines
1094 bytes
1094 bytes
Remy Lebeau (TeamB) wrote:
> char name[MAX_COMPUTERNAME_LENGTH + 1] = {0};
> DWORD size = MAX_COMPUTERNAME_LENGTH;
> //...
Hi Remy,
I still do have 1 question about this code: Shouldn't size be initialized
to MAX_COMPUTERNAME_LENGTH + 1 (= sizeof (name))?
regards,
Koen
Technical Details
Message-ID:
<Xns949877408AF07koencermbe@207.105.83.66>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40392bec$1@newsgroups.borland.com> <40393b85$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ac942ffac7941132 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-23 03:09:34 PST Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Problem with GetComputerName From: Koen <koen@not.this.cerm.be> References: <40392bec$1@newsgroups.borland.com> <40393b85$1@newsgroups.borland.com> Organization: Cerm Message-ID: <Xns949877408AF07koencermbe@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 212.224.138.242 Date: 23 Feb 2004 02:43:21 -0800 X-Trace: newsgroups.borland.com 1077533001 212.224.138.242 (23 Feb 2004 02:43:21 -0800) Lines: 16 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail