那为什么
procedure TForm1.NetShareEnum1(ServerName
wchar);
var
cbBuffer,EntriesRead, TotalAvail: longint;
i:integer;
c:NET_API_STATUS;
hEnum:HWND;
p,bufter
ShareInfo502;
ss:String;
begin
memo1.lines.Clear;
cbBuffer:=0;
hEnum:=0;
c:=NetShareEnum(ServerName, 502, p, cbBuffer, EntriesRead,TotalAvail,hEnum);
if (c = ERROR_SUCCESS ) and (c = ERROR_MORE_DATA) then exit;
if EntriesRead>0 then begin
for i:=0 to EntriesRead-1 do
begin
memo1.lines.Add(string(p^.shi502_netname)+'/'+
string(p^.shi502_remark)+'/'+
intToStr(p^.shi502_max_uses)+'/'+
intToStr(p^.shi502_current_uses)+'/'+
string(p^.shi502_path) );
inc(p);
end;
end;
end;
这段代码不能列出远程机器的隐藏共享呢?