wntShareSet

Sets additional share information for a resource.

Syntax:

wntShareSet(server-name, resource/share-name, share-type, comment, location)

Parameters:

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

(s) resource/share-name: identifies the object to be modified.

(i) share-type: identifies the type of the 'resource' object.  0 = directory, 1 = printer, 2 = device, 3 = IPC shares and 2147483648 = special shares

(s) comment: text string used to describe the share or a blank string ("") if no comment is desired.

(s) location: a text string that can be used to describe the location of the printer, 'share-type' 1, or a blank string ("") if no location description is desired. A blank string ("") must be specified for any other 'share-type'.

Returns:

(s) 1.

 

Note: Only members of the Administrators or Power Users local group, or those with Print or Server Operator group membership, can successfully execute this function. The Print Operator can set information only about Printer shares.

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

; This example adds a comment to the Public share. Other network users can ; see the comment when they browser the network. wntShareSet("","Public",0,"Public Access Directory on my machine","") Exit
See Also:

wntShareAdd, wntShareDel