Jump to content

VI-Hunter

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

VI-Hunter's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you. I modified the the command to if (!(UsernameCStr = (char *)DSNewPClr(LStrLen(*Username)+1))) {cinErr = mFullErr; goto out; } and the memory error is gone. Yes, it's working. You are right, I can't close the handle. I tried a CallLibraryNode with kernel32.dll/CloseHandle but I get an error. So I included the line CloseHandle(*phToken); after the function call LogonUserA(..) in the CIN and it's working without error. This means I need to include my ActiveDirectory between these commands. But this is my next step. Jens
  2. Hi everybody! I've a problem with calling Windows API: I need to work with Active Directories on Windows Server 2003. On start I want to login with the LogonUser function of the advapi32.dll. I tried to call the function via LV dll-call without success (I use LV 7.1). After this I wrote an CIN for this. But it don't makes me happy. I alwas get an error (not enough space). I'm confess that my C is not 100% good, but it's sufficed up to now. Jens Download File:post-3936-1139819885.zip
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.