Jump to content

Recommended Posts

Posted

Hello everyone,

 

I created an application in which i have to get the user connected to machine (client side) in order to log on the user to the applicacion, but instead it is returning the User of the Server.

 

This is the function that i am using to get the user connected.

 

function GetCurrentUserName : String;
var
  dwI : DWord;
begin
  dwI := 1024;
  SetLength (Result, dwI + 1);
   if GetUserName(PChar(Result), dwI)then
      SetLength (Result, dwI-1)
   else
      SetLength (Result, 0);
end;

 

 

I'd really appreciate your help.

 

Kind Regards

 

Yordys Valenzuela 

Posted

Muchisimas gracias Ronny, lamentablementa no tengo mucho conocimiento con JS y su implementacion en Delphi.

 

Podrias guiarme por favor?

En cual ExtEvents debo colocar el codigo?

Como invocarlo?

 

gracias.
 

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...