Главная страница
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
7-322
Kievsash
2001-12-29 04:13
2002.04.01
Подскажите как получить список процессов в системе Вин98


3-69
Huliganka
2002-03-06 21:27
2002.04.01
Delphi & MS SQL server


1-90
Sergey Saf
2002-03-21 12:07
2002.04.01
Воспроизведение файла


3-36
TYuri
2002-03-07 10:26
2002.04.01
Help, помогите срочно нужна помощь!


4-367
mishaa1
2002-01-31 01:21
2002.04.01
win api