Главная страница
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.011 c
14-287
Sir Alex
2002-02-04 19:44
2002.04.01
DMFC 1.1.003a ( вот что значит конкуренция!)


6-270
Baatars
2002-01-16 17:40
2002.04.01
Как закачать файл на сервер через www


4-353
Rumrunner
2002-01-27 04:45
2002.04.01
Всем привет!


1-168
Solod
2002-03-14 03:58
2002.04.01
Не могу разобраться ...


7-330
SArthur
2001-12-29 09:20
2002.04.01
Win 9x, камни AMD и матери на VIA... Где собака роется ?