How can i get share folders list ?

delphi package - easy access to security apis
Post Reply
schiva
Posts: 23
Joined: Fri Sep 02, 2005 5:23 am

How can i get share folders list ?

Post by schiva »

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.netname );
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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

Post by madshi »

P.S: Please use "ItemCount" instead of "items.count".
schiva
Posts: 23
Joined: Fri Sep 02, 2005 5:23 am

Post by schiva »

I really appreciate for your kind support and your wonderfull SDK. :D
Post Reply