Windows 7 上的 VB6 应用程序无法访问映射驱动器 [英] VB6 Application on Windows 7 Cannot Access Mapped Drives

查看:41
本文介绍了Windows 7 上的 VB6 应用程序无法访问映射驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 VB6 应用程序,它从一台 Windows 7 32 位机器链接到多个 POS 终端.POS 终端映射到 Windows 7 机器,我可以从 Windows 7 机器从资源管理器或通过 cmdline/shell 访问 POS 终端.

该应用程序已更新为 ADO 2.8,并且我不再拥有源代码的所有其他控件和组件都已重新编写.几次烦人的小问题后,我让应用程序在 Windows 7 计算机上重新编译,没有错误.

问题来了.VB6 应用程序无法看到或导航到任何映射驱动器!我尝试过调整 UAC 设置;我已将应用程序设置为在 Windows XP SP3 模式下运行;我试过以管理员身份运行.这些东西(以及这些东西的许多排列)都不起作用.

关于如何使这项工作有任何建议?

解决方案

添加此注册表设置为我解决了问题:http://technet.microsoft.com/en-us/library/ee844140%28v=ws.10%29.aspx.><块引用>

要解决此问题,请配置 EnableLinkedConnections注册表值.此值使 Windows Vista 和 Windows 7 能够在过滤的访问令牌和管理员成员的完整管理员访问令牌团体.配置此注册表值后,LSA 检查是否还有另一个与当前用户相关联的访问令牌session 如果网络资源映射到访问令牌.如果 LSA确定有一个链接的访问令牌,它添加网络共享到链接的位置.配置 EnableLinkedConnections注册表值

  1. 单击开始",在开始程序和文件"框中键入 regedit,然后然后按 ENTER.

  2. 找到并右键单击注册表子项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.

  3. 指向新建,然后单击 DWORD 值.

  4. 输入 EnableLinkedConnections,然后按 ENTER.

  5. 右键单击 EnableLinkedConnections,然后单击修改.

  6. 在数值数据框中,键入 1,然后单击确定.

  7. 退出注册表编辑器,然后重新启动计算机.

I have a VB6 application which links to several POS terminals from a Windows 7 32-bit machine. The POS terminals are mapped to the Windows 7 machine and I can access the POS terminals from the Windows 7 machine from Explorer or via the cmdline/shell.

The application has been updated to ADO 2.8 and all other controls and components I no longer had source code for have been re-written. After a few annoying hiccups, I got the application to recompile on the Windows 7 computer without errors.

Now come the problems. The VB6 application cannot see or navigate to any mapped drives! I have tried twiddling UAC settings; I have set the app to run in Windows XP SP3 mode; I have tried running as Administrator. None of these things (and many permutations of these) work.

Any suggestions on how to make this work?

解决方案

Adding this registry setting solved the problem for me: http://technet.microsoft.com/en-us/library/ee844140%28v=ws.10%29.aspx.

To work around this problem, configure the EnableLinkedConnections registry value. This value enables Windows Vista and Windows 7 to share network connections between the filtered access token and the full administrator access token for a member of the Administrators group. After you configure this registry value, LSA checks whether there is another access token that is associated with the current user session if a network resource is mapped to an access token. If LSA determines that there is a linked access token, it adds the network share to the linked location. To configure the EnableLinkedConnections registry value

  1. Click Start, type regedit in the Start programs and files box, and then press ENTER.

  2. Locate and then right-click the registry subkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.

  3. Point to New, and then click DWORD Value.

  4. Type EnableLinkedConnections, and then press ENTER.

  5. Right-click EnableLinkedConnections, and then click Modify.

  6. In the Value data box, type 1, and then click OK.

  7. Exit Registry Editor, and then restart the computer.

这篇关于Windows 7 上的 VB6 应用程序无法访问映射驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆