![]() |
AW: Re: Set hostname - can't write to registry
Zitat:
So you will have to follow the hint ![]() Zitat:
|
Re: Set hostname - can't write to registry
I have:
Delphi-Quellcode:
My SetComputerName():
// Set DNS and NetBIOS
SetComputerName(ComputerNamePhysicalDnsHostname, FHostName); // Set NetBIOS SetComputerName(ComputerNamePhysicalNetBIOS, FComputerName);
Delphi-Quellcode:
It seems there is some strange problem with permissions...
function SetComputerName(const AType: TComputerNameFormat; const AName: string): Boolean;
var Name: array[0..MAX_COMPUTERNAME_LENGTH + 1] of Char; begin StrPCopy(Name, AName); Result := SetComputerNameEx(AType, Name); end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:52 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz