Thanks, Toni

I just would never have found this without help. Even knowing what to look
for, there seems to be no help anywhere. Problem solved.


Bobby Clarke
  -----Original Message-----
  From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of Toni Stojev
  Sent: 23 July 2005 11:49
  To: Bobby Clarke
  Subject: Re: [delphi-en] Mapped network drives



  Mapping network drive has not to do much with Delphi, it is rather
  Windows API

  var  NRW: TNetResource;

  ---
    with NRW do
    begin
      dwType := RESOURCETYPE_ANY;
      lpLocalName := 'X'; // map to this driver letter
      lpRemoteName := '//server/foobar');
      // Must be filled in.  If an empty string is used,
      // it will use the lpRemoteName.
      lpProvider := '';
    end;
    WNetAddConnection2(NRW, pchar('Password'), pchar('User'),
      CONNECT_UPDATE_PROFILE);
    end;



  -----------------------------------------------------
  Home page: http://groups.yahoo.com/group/delphi-en/
  To unsubscribe: [EMAIL PROTECTED]



  SPONSORED LINKS C programming language  Computer programming languages
The c programming language
        C programming language  List of programming languages  Delphi
programmer


----------------------------------------------------------------------------
--
  YAHOO! GROUPS LINKS

    a..  Visit your group "delphi-en" on the web.

    b..  To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

    c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.


----------------------------------------------------------------------------
--




[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to