🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Get user SID with LookupAccountName

#747
From: Mike Collins
Date: Thu, 24 Jan 2008 14:59
21 lines
1810 bytes
Hi Remy, just saw your post and I've got a couple of questions about the 
code you have shown.  I've used a similar system in the past to get the 
computer SID but I'm not 100% on how it works.

1) Why have you coded the GetTextualSid instead of using the 
ConvertSidToStringSid?  Does it have any advantages doing it your way?

2) Why do you use LocalFree?  In my implementation i use GlobalFree - what 
is the difference in using these two?

Thanks in advance,

Mike C



"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:4797e247$1@newsgroups.borland.com...
>
> "mataus" <mataus@gmail.com> wrote in message 
> news:4797d1c8@newsgroups.borland.com...
Technical Details
Message-ID: <4798a5a6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder5.cambrium.nl!feed.tweaknews.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!news.highwinds-media.com!border-1.ams.xsnews.nl!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4797d1c8@newsgroups.borland.com> <4797e247$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4137c5655902c5b4
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@TheBottomOfThePost>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4797d1c8@newsgroups.borland.com> <4797e247$1@newsgroups.borland.com>
Subject: Re: Get user SID with LookupAccountName
Date: Thu, 24 Jan 2008 14:59:32 -0000
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.3959
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 89.242.138.160
Message-ID: <4798a5a6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201186214 89.242.138.160 (24 Jan 2008 06:50:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder5.cambrium.nl!feed.tweaknews.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!news.highwinds-media.com!border-1.ams.xsnews.nl!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail