Saber usuário conectado à Novell

Delphi

18/06/2004

Aí galera tem como pegar o usuário que está conectado atualmente à rede novell através do delphi?
Se alguém souber por favor, estou precisando muito...
Agradeço a atenção...

Marcus.


Virtual7

Virtual7

Curtidas 0

Respostas

Aroldo Zanela

Aroldo Zanela

18/06/2004

Colega,

Encontrei esta dica:

I have used the following on a Novell network where the PC login was syncronised with the Novell login, sorry, can´t remember the terms


function read_userid: string;
var
    LPTSTR: array[0..100] of char; // address of name buffer
    LPDWORD: dword; // address of size of name buffer
begin
  LPTSTR := ´´;
  LPDWORD := 100;
  getusername(LPTSTR, LPDWORD);
  read_userid := trim(uppercase(LPTSTR));
end;


Como não tenho Novell aqui para testar, prezaria seu feedback para sabermos se a dica é válida.


GOSTEI 0
POSTAR