NetAccessCheck or Net32AccessCheck

The NetAccessCheck API verifies that a user has the proper access permission for a particular resource.