ALIAS32 (located in \TOOLKIT\SAMPLES\LANSERV\ALIAS32) adds a file resource alias and shares it, gives the USERS group read-only access to the resource, and adds a directory limit to the resource.
ALIAS32 demonstrates how to use the following NetAPI functions:
Net32WkstaGetInfo
Net32ServerEnum2
Net32GetDCName
Net32AliasAdd
Net32AliasDel
Net32ShareAdd
Net32AccessAdd
Net32AccessGetInfo
Net32AccessSetInfo
Net32DASDAdd