Just a long shot. Will passing a different argument to GetLocalCompName() - re COMPUTER_NAME_FORMAT per an earlier posting - be of any use?