🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

GetUserName(....) problem

#2013
From: patrickartaud
Date: Thu, 10 May 2007 12:45
11 lines
1274 bytes
Hello,
I would change my application for Vista and I got a problem to fin the 
username.Using this function my code is :
LPSTR utilisateur;
LPDWORD taille;
GetUserName(utilisateur,taille);
When I insspec the user name I obtain anything else that the user 
name.Something strange in the pointer.
Must I do something else
I thank you in advance
Patrick 
Technical Details
Message-ID: <4643141c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bbdeb6775df07400,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "patrickartaud" <patrickartaud@aidedecision.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: GetUserName(....) problem
Date: Thu, 10 May 2007 14:45:52 +0200
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16386
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386
NNTP-Posting-Host: 82.228.58.174
Message-ID: <4643141c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1178801180 82.228.58.174 (10 May 2007 05:46:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail