ThreadPool..::.UnsafeQueueNativeOverlapped Method
This page is specific to:.NET Framework Version:2.03.03.5Silverlight 34.0
.NET Framework Class Library
ThreadPool..::.UnsafeQueueNativeOverlapped Method

Queues an overlapped I/O operation for execution.

This API is not CLS-compliant. 

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

'Usage

Visual basic does not support APIs that consume or return unsafe types.

'Declaration

<CLSCompliantAttribute(False)> _
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.NoFlags Or SecurityPermissionFlag.ControlEvidence Or SecurityPermissionFlag.ControlPolicy)> _
Public Shared Function UnsafeQueueNativeOverlapped ( _
    overlapped As NativeOverlapped* _
) As Boolean

Parameters

overlapped
Type: System.Threading..::.NativeOverlapped*
The NativeOverlapped structure to queue.

Return Value

Type: System..::.Boolean
true if the operation was successfully queued to an I/O completion port; otherwise, false.
Remarks

For information about 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.

.NET Framework Security

Platforms

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View