NetServerSetInfo or Net32ServerSetInfo

The NetServerSetInfo API sets operating parameters for a server (either individually or collectively).