怎样在win2000,winxp上得到系统的组及用户? 各位大哥:怎样在win2000,winxp上得到系统的组及用户?还有域或组名? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function GetCurrentUserName : string; const cnMaxUserNameLen = 254; var sUserName : string; dwUserNameLen : DWord; begin dwUserNameLen := cnMaxUserNameLen-1; SetLength( sUserName, cnMaxUserNameLen ); GetUserName( PChar( sUserName ), dwUserNameLen ); SetLength( sUserName, dwUserNameLen ); Result := sUserName; end;用户 看看应该有你想要的http://expert.csdn.net/Expert/topic/2974/2974468.xml?temp=.5915033 ListBox控件中一行中使用,如何象RICHTXT一样,每个字都能改变不同字体和颜色啊?在线等啊 Delphi的出路,探讨者有分,nod者也有分。 求救!请各位大侠赶紧帮帮我! 谁有RAIZE控件啊??100分求~~~ C中的union在Delphi中如何表示? 请教Delphi高人~~数字前加$表示什么意思? 关于createprocess?!! 有关报表 急!!!我将工程另存为后,打开新工程名正常但一运行程序就提示:[Error] s . 苦!哭!酷!----delphi高手,我想你!!! 打印预览的问题!在线等! 如何实现半透明图片跟随鼠标效果?
const
cnMaxUserNameLen = 254;
var
sUserName : string; dwUserNameLen : DWord;
begin
dwUserNameLen := cnMaxUserNameLen-1;
SetLength( sUserName, cnMaxUserNameLen );
GetUserName( PChar( sUserName ), dwUserNameLen );
SetLength( sUserName, dwUserNameLen );
Result := sUserName;
end;用户
应该有你想要的http://expert.csdn.net/Expert/topic/2974/2974468.xml?temp=.5915033