([dict, ...], total, resumeHandle) = NetWkstaUserEnum(server, level , resumeHandle , prefLen )
Retrieves information about all users currently logged on to the workstation.
Win32 API References
Return ValueThe result is a list of items read (with each item being a dictionary of format PyWKSTA_USER_INFO_*, depending on the level parameter), the total available, and a new "resume handle". The first time you call this function, you should pass zero for the resume handle. If more data is available than what was returned, a new non-zero resume handle will be returned, which can be used to call the function again to fetch more data. This process may repeat, each time with a new resume handle, until zero is returned for the new handle, indicating all the data has been read.