WNetAddConnection2 from a Windows Service

后端 未结 5 1142
一向
一向 2021-01-01 06:50

I\'m trying to connect to a remote password protected shared folder from a Windows service, which runs as LocalSystem account. It seems that the LocalSystem account is unabl

5条回答
  •  我在风中等你
    2021-01-01 07:26

    I'm actually grappling with the same problem right now, Flavio, and my current suspicion is that it works if someone is interactively logged on to the machine, and will return ERROR_NO_SUCH_LOGON_SESSION if no one is logged on. I may be wrong, though. More to come. I've starred this question and will check back :)

提交回复
热议问题