NetShareSetInfo or Net32ShareSetInfo

The NetShareSetInfo API sets the parameters of a shared resource.

In addition to using levels 1 and 2 of the share_info data structure, a call to this API can specify particular fields within those data structures. The advantage to SetInfo APIs is that they often require less program code and use less local workstation memory. (The amount of memory space, specified by the buf and usBuflen parameters, only has to be large enough to contain the single field from the data structure rather than the entire data structure.)

The parmnum parameter specifies whether to pass the entire data structure, or which field from the data structure is to be passed.