Reputation: 665
I am using shellobj unit to list network shares with subfolders using IShellFolder interface but it doens't work in windows service application. Can some one advise a way to solve that problem
thanks
Upvotes: 1
Views: 113
Reputation: 2552
As David mentioned you have to make sure your service runs in the correct context. See this post here.
The logon account determines the security identity of the service at run time, that is, the service's primary security context. The security context determines the service's ability to access local and network resources. For example, a service running in the security context of a local user account cannot access network resources.
Upvotes: 1