Вниз
Скачать: CL | DM;

Какай командой узнать сетевое имя компа?   Найти похожие ветки 

 
саша ©   (2002-10-14 06:50) [0]

Ответте пожалуста.


 
sask ©   (2002-10-14 09:01) [1]

GetHostName / GetComputerName


 
Кулюкин Олег ©   (2002-10-14 09:03) [2]

GetComputerName?


 
turusov ©   (2002-10-14 11:15) [3]

function TNsDublicateApplication.GetUserName : String;
var
pcUser : PChar;
dwUSize : DWORD;
begin
dwUSize := 21; // user name can be up to 20 characters
GetMem( pcUser, dwUSize ); // allocate memory for the string
try
if Windows.GetUserName( pcUser, dwUSize ) then
Result := pcUser
finally
FreeMem( pcUser ); // now free the memory allocated for the string
end;
end;

function TNsDublicateApplication.GetComputerName : String;
var
pcComputer: PChar;
dwCSize : DWORD;
begin
dwCSize := MAX_COMPUTERNAME_LENGTH + 1;
GetMem( pcComputer, dwCSize ); // allocate memory for the string
try
if Windows.GetComputerName( pcComputer, dwCSize ) then
Result := pcComputer;
finally
FreeMem(pcComputer); // now free the memory allocated for the string
end;
end;


 
саша ©   (2002-10-15 07:56) [4]

Всем спасибо



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
1-27989
Peroon
2002-11-27 01:55
2002.12.09
delete(var S:String; Index: Integer; Count: Integer);


1-27932
lscomp
2002-11-28 02:08
2002.12.09
Пустая строка


3-27834
NeyroSpace
2002-11-20 16:12
2002.12.09
Кто-нибудь обьясните как работает IBUpdateSQL?


14-28249
sad
2002-11-18 11:48
2002.12.09
Личная страничка на narod.ru


3-27840
cutter-pro
2002-11-20 17:40
2002.12.09
Каскадное удаление в Paradox




   Наверх