NetSmple: Creating a User and Local Group

Click to open or copy the files for the NetSmple sample.

This sample demonstrates how to create a user and a local group and add the user to the local group under Windows NT®.

The functions used include the ported LAN Manager functions NetGetDCName, NetUserAdd, NetLocalGroupAdd, and NetLocalGroupAddMembers.

Building SDK Samples

This sample uses the following keywords:

netapibufferfree; netgetdcname; netlocalgroupadd; netlocalgroupaddmembers; netsample; netuseradd; printf; text