Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.009 c
1-110
Aleksandr
2002-03-19 12:38
2002.04.01
Базовый вопрос: корректно ли в дестракторе нилить указатель на объект?


6-279
Pimin
2002-01-18 03:08
2002.04.01
Заполняем форму Twebbrowseroм


4-347
unikum
2002-01-31 19:41
2002.04.01
Подкаталоги


1-84
Сержжж
2002-03-21 09:11
2002.04.01
Выделение не диапазона дат MonthCalendar


14-299
Igor E. Timofeev
2002-02-19 03:24
2002.04.01
Время жизни программы.




   Наверх