Re: Framework v1.1 & LogonUser workaround

From: Bill Belliveau (anonymous_at_discussions.microsoft.com)
Date: 01/28/04


Date: Tue, 27 Jan 2004 15:21:05 -0800

Thanks again
Bill
     
     ----- Joe Kaplan (MVP - ADSI) wrote: -----
     
     My apologies, but you are right, there is no constructor like that. For
     some reason I remembered seeing that in the reference, but it is fact not
     there at all. I claim temporary insanity!
     
     I guess it is back to LogonUser. Sorry about that.
     
     FWIW, there is a nice sample of calling LogonUser via P/Invoke in VB.NET and
     C# here. It is much better than the sample they published for Framework
     1.0:
     
     http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsImpersonationContextClassTopic.asp?frame=true
     
     Good luck,
     
     Joe K.



Relevant Pages

  • Re: Constructor argument as reference
    ... the reason i ask is because my teacher said that ... and pass a constant to that constructor because of the reference ... however i think it would be valid, unlike what you said and my teacher said ...
    (comp.lang.cpp)
  • Re: Object recreating itself as a different class type ?
    ... which is a reference to the instance or ... Under the register convention, Self behaves as if it were declared before ... A value of False in the flag parameter of a constructor call indicates that ... A value of False in the flag parameter of a destructor call indicates that ...
    (alt.comp.lang.borland-delphi)
  • Re: iexplorer halts on exit when ActiveXObject has been used
    ... > that is a constructor and destructor, ... > The var 'something' is a reference to the object created by use ... If the property has the DontDelete attribute, ... >> So you might expect that the property of the global/Variable object ...
    (comp.lang.javascript)
  • Re: How to pass information, classes between forms in Windows Application mode
    ... parametricized or parameter constructor, ... Form2: Form1 as you discuss below and as I further comment below. ... You're passing a reference to the object. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: OO problem: How to create a duplicate of a derived class with only a base variable ?
    ... > TBaseString.Create returns a reference to a newly allocated object. ... > and TObject has a static constructor. ... And when you add TDerived4, you don't have to go back and change ... > Duplicate could be introduced in TBase, ...
    (alt.comp.lang.borland-delphi)