NetAccessEnum or Net32AccessEnum

The NetAccessEnum API enumerates all access permission records.