🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to map network dive(s) programmatically?

#16585
From: Vladimir Afanasyev
Date: Thu, 08 May 2003 06:57
16 lines
1308 bytes
Hi,

Jarkko Juntunen <dzeidzei@suolakaivos.com> wrote:
>Hi!
>
>Could anyone tell hov to map network drive(s) in my program like with net 
>use command?
>(net use \\<computername>\<sharename> passwd /USER:username)
>
>There must be some "cooler" way than use ShellExzecute().
>

WNetAddConnection2, WNetAddConnection3... I guess...

Vladimir.
Technical Details
Message-ID: <3eb9ffce$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <Xns9374D634019C1dzeidzei@207.105.83.65>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d0f6e75c17620d1f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-08 00:14:18 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: How to map network dive(s) programmatically?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References:  <Xns9374D634019C1dzeidzei@207.105.83.65>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3eb9ffce$1@newsgroups.borland.com>
Date: 7 May 2003 23:57:18 -0700
X-Trace: newsgroups.borland.com 1052377038 207.105.83.65 (7 May 2003 23:57:18 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail