ThreadPool.UnsafeQueueNativeOverlapped(NativeOverlapped*) 메서드

정의

중요

이 API는 CLS 규격이 아닙니다.

실행할 중첩된 I/O 작업을 큐에 대기시킵니다.

public:
 static bool UnsafeQueueNativeOverlapped(System::Threading::NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
[<System.CLSCompliant(false)>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool
[<System.CLSCompliant(false)>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool

매개 변수

overlapped
NativeOverlapped*

큐에 대기시킬 NativeOverlapped 구조체입니다.

반환

작업이 I/O 완료 포트 큐에 성공적으로 대기되면 true이고, 그렇지 않으면 false입니다.

특성

설명

네이티브 Win32 겹치는 I/O를 사용하는 방법에 대한 자세한 내용은 Win32 Platform SDK의 OVERLAPPED 클래스, NativeOverlapped 구조 및 구조를 참조 Overlapped 하세요.

주의

메서드를 UnsafeQueueNativeOverlapped 사용하면 실수로 보안 구멍이 열릴 수 있습니다. 코드 액세스 보안은 스택에 있는 모든 호출자의 권한에 대한 권한 검사를 기반으로 합니다. 를 사용하여 UnsafeQueueNativeOverlapped스레드 풀 스레드에서 작업을 큐에 대기하는 경우 스레드 풀 스레드의 스택에는 실제 호출자의 컨텍스트가 없습니다. 악성 코드는 권한 검사를 방지하기 위해 이를 악용할 수 있습니다.

적용 대상