The NetShareSetInfo function sets the parameters of a shared resource.
Security Requirements
Only the Administrators local group or Communication, Print, or Server operator
group membership is required to successfully execute NetShareSetInfo. The
Print operator can set information only about Printer queues. The Communication
operator can set information only about communication-device queues.
NET_API_STATUS NetShareSetInfo(
LPTSTR servername,
LPTSTR netname,
DWORD level,
LPBYTE buf,
LPDWORD parm_err
);