Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.01;
Скачать: CL | DM;

Вниз

getusername   Найти похожие ветки 

 
netter   (2001-12-29 17:26) [0]

ПЛЗ ... Как пользоваться функцией GetUserName !
C Наступающим всех!!!


 
Adder ©   (2001-12-29 18:04) [1]

procedure TForm1.Button1Click(Sender: TObject);
var buffer:pchar;
nSize:dword;
begin
nSize:=256;
GetMem(buffer,size);
GetUserName(buffer,nSize);
Label1.Caption:=buffer;
FreeMem(buffer);
end;

If the function succeeds, the return value is nonzero, and the variable pointed to by nSize contains the number of characters copied to the buffer specified by lpBuffer, including the terminating null character.
If the function fails, the return value is zero. To get extended error information, call GetLastError.



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

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

Наверх




Память: 0.46 MB
Время: 0.013 c
1-140
Sound
2002-03-22 01:33
2002.04.01
Такой вопрос


7-332
ESergey
2001-12-28 17:51
2002.04.01
Как програмно изменить скорость CDROM?


1-192
Yakudza
2002-03-17 20:19
2002.04.01
ChekListBox и Record


1-109
YanKY
2002-03-13 09:22
2002.04.01
Интперпритатор языка Паскаль


1-159
ded_di
2002-03-19 09:43
2002.04.01
Графические файлы