NetworkAuthenticateResource authenticates a user for access to a resource.
#include <nwiapi.h>
PSZ ComputerName;
PSZ ResourceName;
ULONG flType; /* A bit array indicating the type of resource. All other bits are reserved and must be 0.
Resource type bit mask definitions : * /
PSZ UserName ;
PSZ Password ;
ULONG ulreturns ;
ulreturns = NetworkAuthenticateResource ( ComputerName ,
ResourceName , flType , UserName ,
Password ) ;