Re: Загадка с хендлами
От: TarasCo  
Дата: 20.02.08 11:23
Оценка: 5 (2)
U_E>Выходит, что хендлы определяются с точностью до второго бита??...

Да. Младший бит используется для управления IOCP:

Even if you have passed the function a file handle associated with a completion port and a valid OVERLAPPED structure, an application can prevent completion port notification. This is done by specifying a valid event handle for the hEvent member of the OVERLAPPED structure, and setting its low-order bit. A valid event handle whose low-order bit is set keeps I/O completion from being queued to the completion port.

Да пребудет с тобою сила
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.