Главная страница
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.007 c
1-200
Ирина
2002-03-18 11:25
2002.04.01
Как считать символы в memo после


1-227
Nicolas_
2002-03-20 16:55
2002.04.01
Почему все формы из DLL отображаются на панели задач?


1-160
Yuri Btr
2002-03-22 13:05
2002.04.01
Clipboard


4-361
Serg001
2002-01-30 10:24
2002.04.01
Как узнать классы всех окон, но только родительских


14-297
Delirium
2002-01-08 19:39
2002.04.01
Коньяк, водка, вино, пиво ....