...ein Netzlaufwerk verbinden?

Autor: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch

Kategorie: Internet / LAN

{
  If you want to give your users the opportunity to connect to network resources
  from within your program, all you have to do is call the
  WNetConnectionDialog() Win32 API function:
}

procedure TForm1.Button1Click(Sender: TObject);
begin
  
// Shows the 'connect network drive' dialog
  
if WNetConnectionDialog(Handle, RESOURCETYPE_DISK) = NO_ERROR then
  begin
    
// Do something
  
end;
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base