wntShareList

Returns a list of shares on a server.

Syntax:

wntShareList( server-name, share-type, flags)

Parameters:

(s) server-name: name of a network file server or empty string ("") to indicate the current machine.

(i) share-type: a bitmask specifying the type(s) of shares that should be returned. See below.

(i) flags: reserved for future use and should be set to 0.

Returns:

(s) a tab-delimited list of shared resources on a server, including hidden shares.

 

"share-type" can be set to 0 to return all shares, or it can be one or more of the following values combined with the bitwise OR ('|') operator:

 

Value

Share type

1

Disk drive

2

Print queue

4

Communication device

8

Interprocess communication (IPC)

16

Administrative or special share (eg: C$, D$, ADMIN$, IPC$)

 

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

list=wntShareList("\\SERVER", 1 | 16, 0) AskItemlist("List of shares",list, @TAB, @UNSORTED, @SINGLE) Exit
See Also:

wntShareAdd, wntShareDel, wntShareInfo,