コード例 #1
0
 public static IEnumerable <SyncUserHandle> GetAllLoggedInUsers()
 {
     return(MarshalHelpers.GetCollection <IntPtr>(NativeMethods.get_logged_in_users, bufferSize: 8)
            .Select(h => new SyncUserHandle(h)));
 }
コード例 #2
0
 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)));
 }