NetSessionGetInfo or Net32SessionGetInfo

The NetSessionGetInfo API retrieves information about a session established between a particular requester and server.