本文介绍了WNetAddConnection2失败,错误代码为1312的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在进行远程系统文件访问(即,在远程计算机中写入文件并从该计算机中读取相同的文件).为此,我使用

Hi,

I was doing remote system file access (i.e., Writing a file in remote machine & reading the same file from that machine). For that I established a connection using

WNetAddConnection2 


建立了连接
当我直接在我的帐户中运行它时,它可以正常工作.
但是在从系统帐户启动时(即从服务启动,使用在service.msc中注册的pstool(或)启动),它不起作用.

它从GetLastError()返回错误代码1312,表示



It works fine while I run it directly in my account.
But while launching from system account (i.e., Launching from service, using pstool (or) registered in services.msc) it is not working.

It returns with an error code of 1312 from GetLastError(), means

NO_SUCH_LOGON_SESSION




我现在应该如何进行?

请帮帮我..

谢谢&问候,
Yugeshkumar V




How should I proceed now?

Please help me..

Thanks & regards,
Yugeshkumar V

推荐答案


这篇关于WNetAddConnection2失败,错误代码为1312的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 23:22