Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

LogonUser - please help !

pvfpvf Member Posts: 6
Does anyone have some code for using the LogonUser function in C++ ?
I've read what it says in MSDN but I can't make it work ....

Comments

  • IamHarinathIamHarinath Member Posts: 5
    : Does anyone have some code for using the LogonUser function in C++ ?
    : I've read what it says in MSDN but I can't make it work ....
    :
    It is simple see the following code.
    if (!LogonUser(
    "administrator",
    "IE10-UDAY",
    "password",
    LOGON32_LOGON_INTERACTIVE,
    LOGON32_PROVIDER_DEFAULT,
    &hToken
    ))
    return RTN_ERROR;
    hToken is the handle that is the output of the LogonUser.
    see MSDN for detailed code.
    i saw it on MSDN october 2002
    anymore doubts mail me at
    harinath@vandemataram.com

  • Andre YoungAndre Young USAMember Posts: 0

    ______ < http://forcoder.org /> free video tutorials and ebooks about | Objective-C, Assembly, Visual Basic .NET, Scratch, Visual Basic, Perl, MATLAB, C#, PL/SQL, Delphi, Ruby, PHP, Python, Go, Java, C, C++, JavaScript, R, Swift Kotlin, Awk, Crystal, COBOL, Bash, Lisp, Transact-SQL, Erlang, FoxPro, Scala, SAS, ML, Logo, VBScript, Rust, Prolog, ABAP, LabVIEW, F#, Ada, Clojure, Scheme, D, Lua, Alice, Fortran, Apex, Julia, Dart, Hack | _

Sign In or Register to comment.