Paste2 Logo
  1. #cs
  2. Autenticazione Account Windows
  3. Autore: Red Skull 92
  4. Mail: RedSkull92[AT]gmail[DOT]com
  5. Web: www.redskull92.wordpress.com
  6. Utilizzo: _logon("User","Pass")
  7. Return: True = Dati corretti
  8.                 False = Dati non corretti
  9. #ce
  10.  
  11.  
  12. Func _logon($user,$pass)
  13.         $ptr=DllStructCreate("int")
  14.         $lol=DllCall("Advapi32.dll","int","LogonUserA","str",$user,"str",".","str",$pass,"dword",2,"dword",0,"ptr",DllStructGetPtr($ptr))
  15.         DllStructGetData($ptr,1)
  16.         DllClose($lol)
  17.         If Not @error And $lol[0] <> 0 Then
  18.         Return True
  19.     EndIf
  20.  
  21.     Return False
  22. EndFunc
  23.        

Funzione Autenticazione Windows By Red Skull 92