Remote Desktop uses remote PC name if logged in via remote first

  • Thread starter Dave Williamson
  • Start date
D

Dave Williamson

We have seen in some situations that our applications return the PC
Name of the remote client that connected to a WinXP desktop rather
than the PC Name of the WinXP desktop.

This only seems to happen when the WinXP desktop is connected to
remotely before it has been logged in at the console for the first
time.

For Example: If the application is running on a WinXP box named
JoeBob and the desktop on this PC is connected to via remote desktop
before being logged in at the console (by another WinXP box named
JoeSmoe) .... then the application running on JoeBob will report that
the PC name is JoeSmoe.

The application is using the API
Private Declare Function GetComputerName Lib "kernel32.dll" Alias
"GetComputerNameA" (ByVal Buffer As String, sz As Long) As Long
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top