Vista安全性+ Process.Start [英] Vista Security + Process.Start

查看:52
本文介绍了Vista安全性+ Process.Start的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在Vista上遇到了问题...我不确定如何解决这个问题,或者不确定是否有人知道...

  I'm having problems on Vista with this... I'm not sure how to tackle this or if anyone knows...

我有一个应用程序#1,该用户以域中的用户身份(不是管理员)登录了,然后在某个时候需要使用System.Diagnostics.Process.Start调用应用程序#2.应用程序2需要访问注册表和文件系统.当应用程序#1启动应用程序#2的进程时-它给出了Windows Vista错误,基本上是因为应用程序#2所做的第一件事是它从磁盘读取了注册表和配置文件.

I have Application #1 which the user that's logged on as a user on the domain (not administrator), which then the at some point needs to call Application #2 using the System.Diagnostics.Process.Start .  Application #2 need access to the registry and file system. When Application #1 starts the process for Application #2 - it gives an error that Windows Vista basically because the first thing that Application #2 does is it reads the registry and config file from disk.

应用程序#2我正在使用mt.exe实用工具编译清单文件,因此我认为它是"Vista Aware".我猜测它是在某种受限访问模式下运行的,而不是使用与用户双击Application#1所使用的用户名和密码相同的用户名和密码启动的.

Application #2 I'm compiling with a manifest file with the mt.exe utility, so I'm thinking it's "Vista Aware".  I'm guessing though it's running under some limited access mode and not launching with the same user name and password as the one the user double clicked on Application #1 with.

有人知道如何解决此问题吗?

Does anyone know how to fix this?

预先感谢.

推荐答案

一个带有requestedExecutionLevel的exe将会启动,并带有诸如文件和注册表虚拟化之类的功能.禁用的.应用程序2可能试图读取HKLM或程序文件下的某些内容,而其他一些未显示的应用程序则试图写入这些文件,但这些程序却被虚拟化了.

An exe manifested with a requestedExecutionLevel will launch with some things like file and registry virtualization disabled.  It's possible that application #2 is trying to read some things under HKLM or program files which some other unmanifested application has tried to write, but got virtualized instead.

我认为您可能对UAC是什么以及它如何影响您作为Windows Vista及更高版本中的开发人员感到困惑.如果是这样,下面是一些有用的链接:

I think you might be a bit confused about what UAC is and how it effects you as a developer in windows vista and beyond. If so, here are a few helpful links:

了解和配置Windows Vista中的用户帐户控制

Understanding and Configuring User Account Control in Windows Vista

http://technet2.microsoft.com/WindowsVista/zh/library/00d04415-2b2f-422c -b70e-b18ff918c2811033.mspx?mfr = true

Windows Vista和Windows Server 2008开发人员案例:用户帐户控制(UAC)的Windows Vista应用程序开发要求

The Windows Vista and Windows Server 2008 Developer Story: Windows Vista Application Development Requirements for User Account Control (UAC)

游戏开发者的用户帐户控制
User Account Control for Game Developers


这篇关于Vista安全性+ Process.Start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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