Hi All, I used DeleteFile API as follow : DeleteFile("\\\\MachineName\\ShareName\\FileName.txt"); where \\\\MachineName\\ShareName\\FileName.txt full qualified path of remote machine When i create simple Win32 or MFC App and Runs, then file get delete successfully. but similar code i added in Win32 Service then its fails. can anyone tell me the reason behind that. My service running in System account which has full priveledges, then why DeleteFile API fails in system account for network file. i got GetLastError() == 5 (Access Denied)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)