🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: computer sid

#3295
From: Remy Lebeau (TeamB)
Date: Tue, 11 Jul 2006 22:42
20 lines
1584 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message
news:44b3f601$1@newsgroups.borland.com...

> Sorry Remy, i thought the was a SID defined for the
> computer when the windows installer is first run.

This is the first I have every heard of it.  Looking into it, I found the
following:

    "A computer account name always has a trailing dollar sign ($). You can
use any APIs that takes a user account by passing in the computer name with
a dollar appended to it. With COMPUTERNAME$, you can use LookupAccountName()
API to get the SID of the computer."

You can use GetComputerName() to get the name of the local computer, and
then append '$' to it.


Gambit
Technical Details
Message-ID: <44b42978@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44b3a626$1@newsgroups.borland.com> <44b3d727$1@newsgroups.borland.com> <44b3f601$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,752843d06b3a660f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44b3a626$1@newsgroups.borland.com> <44b3d727$1@newsgroups.borland.com> <44b3f601$1@newsgroups.borland.com>
Subject: Re: computer sid
Date: Tue, 11 Jul 2006 15:42:52 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44b42978@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152657784 68.69.17.41 (11 Jul 2006 15:43:04 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail