Главная страница
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-215
kserg@ukr.net
2002-03-20 11:48
2002.04.01
MDI-приложение: как определить активно родительское окно(дочерних ещё нет) или дочернее(тогда узнать какое)?


1-233
Ольга
2002-03-18 16:24
2002.04.01
Outlook


1-135
Romik
2002-03-21 20:10
2002.04.01
Caption у формы


1-96
серёга
2002-03-21 12:36
2002.04.01
Привет всем. Где взять Update pack для Delphi 5


1-204
Сержжж
2002-03-20 10:49
2002.04.01
Выделение нескольких дат в MonthCalendar