Вниз
Скачать: 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.991 c
14-318
lel (A)
2002-02-15 14:41
2002.04.01
Почему, в любом обществе, всегда существует класс недовольных.??? 8(((((


3-55
kaif
2002-03-07 14:19
2002.04.01
можно ли обрезать строку без использования UDF?


4-354
Romul
2002-01-31 10:44
2002.04.01
Save OpenDialog через API


7-335
Filat
2001-12-19 15:45
2002.04.01
Как переделать или втавить программу с ASM на Дельфи - цифровой вольтметр.


14-320
garyboy
2002-02-18 11:00
2002.04.01
Проблема в работе с массивом




   Наверх