/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/engine/Interop/Windows/GetQueuedCompletionStatus.cs
36 строк
1 KB
Jordan Borean
Fix Start-Process -Wait polling (#24711)
28 янв 2025, 11:52
Не верифицирован
28 янв 2025, 11:52
4e79421
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #nullable enable using System.Runtime.InteropServices; internal static partial class Interop { internal static unsafe partial class Windows { public const int INFINITE = -1; [LibraryImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static partial bool GetQueuedCompletionStatus( SafeIoCompletionPort CompletionPort, out int lpNumberOfBytesTransferred, out nint lpCompletionKey, out nint lpOverlapped, int dwMilliseconds); internal static bool GetQueuedCompletionStatus( SafeIoCompletionPort completionPort, int timeoutMilliseconds, out int status) { return GetQueuedCompletionStatus( completionPort, out status, lpCompletionKey: out _, lpOverlapped: out _, timeoutMilliseconds); } } }