public static IEnumerable <SyncUserHandle> GetAllLoggedInUsers() { return(MarshalHelpers.GetCollection <IntPtr>(NativeMethods.get_logged_in_users, bufferSize: 8) .Select(h => new SyncUserHandle(h))); }
public IEnumerable <SyncUserHandle> GetAllLoggedInUsers() { return(MarshalHelpers.GetCollection((IntPtr[] buf, IntPtr len, out NativeException ex) => NativeMethods.get_logged_in_users(this, buf, len, out ex), bufferSize: 8) .Select(h => new SyncUserHandle(h))); }