ThreadPool.UnsafeQueueNativeOverlapped(NativeOverlapped*) Método
Definição
Importante
Esta API não está em conformidade com CLS.
Enfileira uma operação de E/S sobreposta para a execução.Queues an overlapped I/O operation for execution.
public:
static bool UnsafeQueueNativeOverlapped(System::Threading::NativeOverlapped* overlapped);
[System.CLSCompliant(false)]
public static bool UnsafeQueueNativeOverlapped (System.Threading.NativeOverlapped* overlapped);
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
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
static member UnsafeQueueNativeOverlapped : nativeptr<System.Threading.NativeOverlapped> -> bool
Parâmetros
- overlapped
- NativeOverlapped*
A estrutura NativeOverlapped a ser colocada em fila.The NativeOverlapped structure to queue.
Retornos
true se a operação foi enfileirada com êxito para uma porta de conclusão de E/S; caso contrário, false.true if the operation was successfully queued to an I/O completion port; otherwise, false.
- Atributos
Comentários
Para obter informações sobre como usar e/s sobreposta do Win32 nativo, consulte a Overlapped classe, a NativeOverlapped estrutura e a OVERLAPPED estrutura no SDK da plataforma Win32.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.
Cuidado
O uso do UnsafeQueueNativeOverlapped método pode abrir inadvertidamente uma brecha de segurança.Using the UnsafeQueueNativeOverlapped method could inadvertently open up a security hole. A segurança de acesso ao código baseia suas verificações de permissão nas permissões de todos os chamadores na pilha.Code access security bases its permission checks on the permissions of all the callers on the stack. Quando o trabalho é enfileirado em um thread do pool de threads usando UnsafeQueueNativeOverlapped , a pilha do thread do pool de threads não tem o contexto dos chamadores reais.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. Código mal-intencionado pode ser capaz de explorar isso para evitar verificações de permissão.Malicious code might be able exploit this to avoid permission checks.