Re: Major problems with UAC
- From: "Pavel Lebedinsky [MSFT]" <pavel@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Oct 2007 01:04:17 -0700
"Mick" wrote:
Our product works fine on Win2K and XP, but when we try to run it on a
Vista
system, nothing works! From our initial debugging, it appears that UAC is
the
root of all our problems. Nothing works with UAC turned on. We cannot
access
any of our registry keys, can?t create or open named pipes, mutexes,
shared
memory blocks, or any other sharable objects. We can?t even create a
simple
text file! Our code uses null DACLs for most objects, which should allow
access to anyone, but when UAC is on, nothing works
What exactly happens? Are you getting an access denied error?
Where are non user-specific services supposed to store their registry
information, if not in HKEY_LOCAL_MACHINE?
HKLM\Software is the right place.
Do DACLs work differently under Vista? If so, what are the differences and
where are they documented? Why doesn't a null DACL give all users access?
DACLs should work as before. If virtualization is disabled and you're
getting
access denied trying to open an object with a NULL DACL for write access,
it might be because of integrity levels:
http://www.microsoft.com/technet/technetmag/issues/2007/06/UAC/default.aspx
I understand that we can use manifest files to bypass virtualization for
our
own applications, but how can we get around it for our DLLs that link to
other applications?
For registry keys, you can set REG_KEY_DONT_VIRTUALIZE flag:
http://msdn2.microsoft.com/en-us/library/aa965884.aspx
This shouldn't be necessary though, because virtualized copies are created
only when a write operation would have failed otherwise. If ACLs are set
appropriately, virtualization should not occur.
--
This posting is provided "AS IS" with no warranties, and confers no
rights.
.
- Prev by Date: Re: winsock + Schannel => Expired Intermediate Cert
- Next by Date: Re: Interacting with winlogon Desktop of Windows Vista
- Previous by thread: RE: Major problems with UAC
- Next by thread: Re: How to work around UAC?
- Index(es):
Relevant Pages
|