On Wed, 23 May 2007 11:31:00 -0700, Jesper
<Jesper@discussions.microsoft.com> wrote:
>Maybe this is too obvious, but the basic suggestion is that you get yourself
>a Vista box to test on.
Being worked on. Vista is in the mail, but still in transit.
>What API are you calling to get the SID?
LookupAccountName()
> Your question may already be answered in Windows Vista Security:
> http://www.amazon.com/gp/product/047...otectyourwi-20
May be, but not released yet.
On Wed, 23 May 2007 15:29:17 -0400, "Adrian Accinelli"
<hclnospamalias2@newsgroup.nospam> wrote:
>Maybe this is obvious as well but does your code work on XP? Try it
>yourself -- login as restricted user and then use runas to launch your
>application without debug switch as an administrator. This is an excellent
>method to test applications before making the transition to Vista itself.
I'll try this. So far it worked in every situation apart from that one
Restricted User elevation thing in XP. I normally am not running as
Admin and use the program myself as well. So far without any weird
side effects.
>As well by "program will kill itself" do you mean your code exits
>purposefully or it crashes? If it crashes you can get a crash dump and
>really see what is happening on Vista without debug switch.
Nope, all I know from the debug files and the stories dripping back to
me is that it stops function after/during the call the call to
LookupAccountName(). Ergo, something is wrong with the translation
username to SID. As it works under "normal circumstances" I draw the
conclusion that the code in general is okay, but that there is just a
small difference between a Restricted User logging on as Administrator
and an Administrator okay-ing the whole deal. I'll ask about a crash
dump when I get the chance to talk to my Vista testers.
And in the mean time I am waiting for the postman to deliver my own
version of Vista Ultimate so I can do my own testing.
Thanks so far, and I'll let you know once I have more answers.
Frank.