...map a network drive?
Author: Simon Grossenbacher
{
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