截止2004年12月16日 |
本站源码总量RAR压缩为 4,206,733 KB。其中免费源码为 1,124,495 KB,商业源码为 3,082,238 KB!
C/C++ |
129,555 KB |
Delphi |
1,258,381 KB |
Java |
120,937 KB |
.Net |
36,886 KB |
PowerBuilder |
954,525 KB |
Visual Basic |
923,454 KB |
ASP |
259,795 KB |
JSP |
4,987 KB |
其他 |
94,723 KB |
|
|
统计局域网里的工作组数目 |
|
var
WorkgroupCount : Integer;
Workgroup: Array[1..500] of String[25];
Procedure FindAllWorkgroups;
Var
EnumHandle: THandle;
EntireNetwork: TNetResource;
Buf: Array[1..500] of TNetResource;
BufSize: Integer; // 或DWORD;
Entries: Integer; // 或DWORD;
begin
FillChar EntireNetwork, SizeOf EntireNetwork) , 0);
With EntireNetwork do begin
dwScope := 2;
dwDisplayType := 6;
dwUsage := 2;
end;
WNetOpenEnum RESOURCE_GLOBALNET,
RESOURCETYPE_ANY,
0,
@EntireNetwork,
EnumHandle );
WorkgroupCount := 0;
Repeat
Entries := 1;
BufSize := SizeOf Buf);
WNetEnumResource EnumHandle,
Entries,
@Buf,
BufSize );
If Entries = 1 then begin
Inc WorkgroupCount );
Workgroup[ WorkgroupCount ] := StrPas Buf[1].lpRemoteName);
end;
Until Entries <> 1);
WNetCloseEnum EnumHandle );
end;
|
|
文章出处: |
|
发表时间:2004-12-23 16:57:18 |
共1条数据记录,分1页显示 上一页 < [1] > 下一页 |
|