How can i get share folders list ?

delphi package - easy access to security apis

How can i get share folders list ?

Postby schiva » Tue Oct 11, 2005 4:02 am

I want to get the all share folders list.
But i can't find Shares([stDisk ], WinFolder).items.count.

----------- My purpose....
with Shares(([stDisk ], WinFolder) do
for i:=0 to items.count -1 do
stringlist.add( items[i].netname );
schiva
 
Posts: 23
Joined: Fri Sep 02, 2005 5:23 am

Postby madshi » Tue Oct 11, 2005 6:50 am

Just remove the 2nd parameter when calling "Shares", then it should work.
madshi
Site Admin
 
Posts: 9880
Joined: Sun Mar 21, 2004 5:25 pm

Postby madshi » Tue Oct 11, 2005 6:52 am

P.S: Please use "ItemCount" instead of "items.count".
madshi
Site Admin
 
Posts: 9880
Joined: Sun Mar 21, 2004 5:25 pm

Postby schiva » Tue Oct 11, 2005 6:18 pm

I really appreciate for your kind support and your wonderfull SDK. :D
schiva
 
Posts: 23
Joined: Fri Sep 02, 2005 5:23 am


Return to madSecurity

Who is online

Users browsing this forum: No registered users and 1 guest

cron