Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.12.09;
Скачать: 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 вся ветка

Текущий архив: 2002.12.09;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.014 c
1-28020
Checist [root]
2002-11-30 03:06
2002.12.09
Несколько элементов одного типа (ОЧЕНЬ НУЖНА ПОМОЩЬ)


6-28165
Alex_win
2002-10-11 16:54
2002.12.09
перехват почты


1-28102
HanIP
2002-11-28 13:28
2002.12.09
буфер обмена


14-28270
Bboy tn
2002-11-12 19:50
2002.12.09
Продукция компании GigaByte


4-28330
sen
2002-10-24 15:17
2002.12.09
Не обновляется иконка