NetworkDetachResource detaches a user from access to a resource.
#include <nwiapi.h>
PSZ ComputerName;
PSZ ResourceName;
ULONG flType;
ULONG ulreturns; /*
A network driver is not limited to just these errors . Network drivers will return the following errors when they occur , but other error numbers can be returned for errors not listed . * /
ulreturns = NetworkDetachResource ( ComputerName ,
ResourceName , flType ) ;