🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Create Users on Win2K DC

#11070
From: Vladimir Afanasyev
Date: Tue, 02 Mar 2004 09:30
29 lines
1985 bytes
Hi Iyer,
Sorry, I'd read your message only today.

"K Y Iyer" <iyer@ndtv.com> wrote:
>Vladimir
>
>What about the sample code from MSDN that I posted earlier?  What is the
>difference between your sample and MSDN?

I am not sure but it seems that codes do various things.
My code create local user but MSDN code use Active Directory.

If to say about my code it uses monikers.
Sometimes I explored it - I mean VB GetObject command.
Really GetObject used moniker as parameter (moniker it is 
string-object). Via moniker it is possible to connect to 
COM 
object via moniker-binding. So most in my code it is 
activating correct moniker and binding to COM inteface. 
I connect to IDispatch interface so it possible to use 
Variant type for accessing to methods and properties of 
this interface.  It means that most code from Microsoft Script 
Center can be "compiling" and used with BCB.

If you still have problems with MSDN code give me know and 
I try to redo it.

Vladimir.
Technical Details
Message-ID: <40445432$1@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: <403ecddc@newsgroups.borland.com> <403efb7a$1@newsgroups.borland.com> <403f064d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,92441ca3095726f0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-02 01:39:45 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: Create Users on Win2K DC
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226     
X-Forwarded-For: 192.168.0.147
References:  <403ecddc@newsgroups.borland.com> <403efb7a$1@newsgroups.borland.com> <403f064d@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40445432$1@newsgroups.borland.com>
Date: 2 Mar 2004 01:30:26 -0800
X-Trace: newsgroups.borland.com 1078219826 207.105.83.66 (2 Mar 2004 01:30:26 -0800)
Lines: 29
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