Re: Taking Ownership

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have indeed been checking my return codes. The only one that fails is the
call to apply the changes back to the AD group (E_ACCESSDENIED). But thanks
for all of your help and suggestions. I will look for another place to post
and check on this.



"William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx> wrote in message
news:eFo4Oe2zFHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
> "Stephen Engle" <engle.stephen@xxxxxxxxx> wrote in message
> news:uKtfcU2zFHA.1264@xxxxxxxxxxxxxxxxxxxxxxx
> > Sorry - I should have been more plain about the user. I log on as the
> > user
> > (a test id) in question to test my app (and also to test that user's
> > rights
> > using Active Directory Users & Computers). Unfortunately, the only
thing
> > I
> > have been able to determine is that the user id has the appropriate
rights
> > (because ADU&C can make the change) but my app still won't work, unless
> > I'm
> > logged in as myself. I am a Domain Admin and therefore have so many
> > rights
> > that I don't know for sure what the difference really is. But since
ADU&C
> > can work for the test id, I would think there must be some way to do
this
> > with my app.
>
> > Do you have any ideas as to what group might be more appropriate to post
> > this question to. I have looked at the huge list of Microsoft groups
and
> > have only found this and potentially the
microsoft.public.win2000.security
> > group that seemed to touch on this.
>
> The two languages groups (this and m.p.vc.language) field lots of
questions
> on things people do with the language even though the groups' focus is
> ostensibly on the language itself.
>
> The kernel group (m.p.win32.programmer.kernel) has a similar mix of skills
> among the regulars and more than a few who grok security.
>
> Apart from the kernel group, I'd plug
>
> activedirectory
>
> or
>
> adsi
>
> into the newsgroup search edit box to find a more appropriate one. If I
read
> any of these groups I'd suggest one, but as I said, I don't so I can't.
:-(
>
> At the risk of stating the obvious ... are you checking the return codes
> from the functions that you call? It is a really really rare event for a
> function in the Win32 API to fail silently. One thing you can do is type
>
> err
>
> in the watch window in the debugger. This pseudo-variable is an alias for
> the calling thread's last error code. When a function fails (and only if
it
> fails so you need to check return codes or look at the EAX register if you
> forgot to capture the return) this is the place to look for the underlying
> cause of the failure.
>
> > Thanks again.
>
> You are welcome.
>
> Regards,
> Will
>
>


.



Relevant Pages

  • Re: Taking Ownership
    ... > have been able to determine is that the user id has the appropriate rights ... ostensibly on the language itself. ... When a function fails (and only if it ... fails so you need to check return codes or look at the EAX register if you ...
    (microsoft.public.dotnet.languages.vc)
  • Re: I own Toyota Tacoma LX 1996, does it sound like solenoid problem?
    ... and over but fails to start, or does it do nothing at all?>> Yes----> yes it turn over and over but fails to start. ... I will write the codes. ... The Check Engine light should be coming on if any codes are stored. ... Do you mean there is something on this $80.00 tool, where I press the button and it will reset the codes? ...
    (alt.autos.toyota)
  • XP sp2
    ... trying to install sp2 and it fails with error 0x80070017. ... can any tell me the problem and also where I can look the codes up in the ... Prev by Date: ...
    (microsoft.public.windowsupdate)
  • Re: Illinois smoking ban.
    ... it is a property rights issue. ... If you read the states law about liquor licenses you'll find that they can shut down a bar or club that doesn't comply with the laws of that state, the liqour license is a federal license issued by that state to sell liquor. ... The state can also shut down a establishment that doesn't comply with all of it's health codes either. ... IF (by chance they have a fire then they start at complying with all state and county codes again). ...
    (alt.guitar.beginner)
  • Re: Embedding assembler in a language
    ... in a high level language without 'first class labels', ... compiled language+assembler being used to implement an interpreter. ... For dual operand codes, the two codes have to be converted to a single linear value, then again a jump table is used. ...
    (comp.lang.misc)