Board index » delphi » Logon Varable

Logon Varable

How do I pick up the User's Login Name from Delphi2
e.g. if a user has a logon say Bob, and password bobby

how do I get the name get the name Bob into Delphi as a String ?

Thank You
Steve

 

Re:Logon Varable


BOOL GetUserName(

    LPTSTR lpBuffer, // address of name buffer
    LPDWORD nSize  // address of size of name buffer
   );

--
--------------------------
Regards,

Mathias Nyman
Sweden
http://www.se-datateknik.se/delphi
zio...@hem.passagen.se.nospam
--------------------------

Steve Riley <st...@gilril.freeserve.co.uk> skrev i
diskussionsgruppsmeddelandet:87a0qq$9o...@news6.svr.pol.co.uk...

Quote
> How do I pick up the User's Login Name from Delphi2
> e.g. if a user has a logon say Bob, and password bobby

> how do I get the name get the name Bob into Delphi as a String ?

> Thank You
> Steve

Other Threads