Board index » delphi » getting network user name

getting network user name

Does anyone know what the Delphi api call is to read the network user
name (and how to use it)?  I'm using Windows 98 with Netware client --
Delphi 3.

Thanks,
Zack.

 

Re:getting network user name


I use this code i seen before, dont know who to credit!

procedure TForm1.Button1Click(Sender: TObject);
var Buffer : Array[0..255] of Char; BuffSize : DWORD;
begin
    BuffSize := SizeOf(Buffer);
    GetUserName(@Buffer, BuffSize);
    ShowMessage(Buffer);
end;

/m

Quote
Zack <z...@ucsd.edu> wrote in message news:3818C139.9822D18A@ucsd.edu...
> Does anyone know what the Delphi api call is to read the network user
> name (and how to use it)?  I'm using Windows 98 with Netware client --
> Delphi 3.

> Thanks,
> Zack.

Other Threads