Ver Mensaje Individual
  #2  
Antiguo 28-07-2011
Paulao Paulao is offline
Miembro
 
Registrado: sep 2003
Ubicación: Rua D 31 Casa 1 - Inhoaíba - Rio de Janeiro - RJ - Brasil
Posts: 637
Reputación: 23
Paulao Va por buen camino
Perdon, este yo se hacer:
Código Delphi [-]
function TForm1.GetNetUserName: string;
Var
  NetUserNameLength: DWord;
Begin
  NetUserNameLength:=50;
  SetLength(Result, NetUserNameLength);
  GetUserName(pChar(Result),NetUserNameLength);
  SetLength(Result, StrLen(pChar(Result)));
End;
Yo necesito es una rutina que traiga una lista de los usuarios en el Active Directory, esto es lo quiero.
Responder Con Cita