Export (0) Print
Expand All

ThreadPool.UnsafeQueueNativeOverlapped Method

Note: This method is new in the .NET Framework version 2.0.

Queues an overlapped I/O operation for execution.

This method is not CLS-compliant.  

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)

[CLSCompliantAttribute(false)] 
public static bool UnsafeQueueNativeOverlapped (
	NativeOverlapped* overlapped
)
J# does not support APIs that consume or return unsafe types.
JScript does not support APIs that consume or return unsafe types.

Parameters

overlapped

The NativeOverlapped structure to queue.

Return Value

true if the operation was successfully queued to an I/O completion port; otherwise, false.

For information on using native Win32 overlapped I/O, see the Overlapped class, the NativeOverlapped structure, and the OVERLAPPED structure in the Win32 Platform SDK.

Caution noteCaution

Using the UnsafeQueueNativeOverlapped method could inadvertently open up a security hole. Code access security bases its permission checks on the permissions of all the callers on the stack. When work is queued on a thread pool thread using UnsafeQueueNativeOverlapped, the stack of the thread pool thread does not have the context of the actual callers. Malicious code might be able exploit this to avoid permission checks.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft