Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/28/19 in all areas

  1. hi thank you Mr. farshad for replying, I will take this chance to thank you for your awesome work, the application is used by 4 branches and about 20 users and it is very stable I have eset endpoint security installed, but I did disable firewall while testing because I thought it might be the reason. my problem is that I need to figure this out before deployment on cloud servers next week, I will try this on another server today, any tip will be useful, thanks and best regards
    1 point
  2. Solved by using this code-snippet: function MakeDriveMapping(DriveLetter: string; DirectoryPath: string; Username: string; Password: string; RestoreAtLogon: Boolean): DWORD; var NetResource: TNetResource; dwFlags: DWORD; begin with NetResource do begin dwType := RESOURCETYPE_DISK; lpLocalName := PChar(DriveLetter); lpRemoteName := PChar(DirectoryPath); lpProvider := nil; end; if (RestoreAtLogon) then dwFlags := CONNECT_UPDATE_PROFILE else dwFlags := 0; Result := WNetAddConnection2(NetResource, PChar(Password), PChar(Username), dwFlags); end;
    1 point
×
×
  • Create New...