• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運(yùn)轉(zhuǎn),開心的工作
            簡(jiǎn)單、開放、平等的公司文化;尊重個(gè)性、自由與個(gè)人價(jià)值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            GetQueuedCompletionStatus 函數(shù)

            Posted on 2009-01-31 09:01 S.l.e!ep.¢% 閱讀(1327) 評(píng)論(0)  編輯 收藏 引用 所屬分類: VC
            GetQueuedCompletionStatus Function

            Attempts to dequeue an I/O completion packet from the specified I/O completion port. If there is no completion packet queued, the function waits for a pending I/O operation associated with the completion port to complete.

            To dequeue multiple I/O completion packets at once, use the GetQueuedCompletionStatusEx function.

            Syntax

            BOOL WINAPI GetQueuedCompletionStatus(
              __in   HANDLE CompletionPort,
              __out  LPDWORD lpNumberOfBytes,
              __out  PULONG_PTR lpCompletionKey,
              __out  LPOVERLAPPED *lpOverlapped,
              __in   DWORD dwMilliseconds
            );
            

            Parameters

            CompletionPort [in]

            A handle to the completion port. To create a completion port, use the CreateIoCompletionPort function.

            lpNumberOfBytes [out]

            A pointer to a variable that receives the number of bytes transferred during an I/O operation that has completed.

            lpCompletionKey [out]

            A pointer to a variable that receives the completion key value associated with the file handle whose I/O operation has completed. A completion key is a per-file key that is specified in a call to CreateIoCompletionPort.

            lpOverlapped [out]

            A pointer to a variable that receives the address of the OVERLAPPED structure that was specified when the completed I/O operation was started.

            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.

            dwMilliseconds [in]

            The number of milliseconds that the caller is willing to wait for a completion packet to appear at the completion port. If a completion packet does not appear within the specified time, the function times out, returns FALSE, and sets *lpOverlapped to NULL.

            If dwMilliseconds is INFINITE, the function will never time out. If dwMilliseconds is zero and there is no I/O operation to dequeue, the function will time out immediately.

            Return Value

            If the function dequeues a completion packet for a successful I/O operation from the completion port, the return value is nonzero. The function stores information in the variables pointed to by the lpNumberOfBytes, lpCompletionKey, and lpOverlapped parameters.

            If *lpOverlapped is NULL and the function does not dequeue a completion packet from the completion port, the return value is zero. The function does not store information in the variables pointed to by the lpNumberOfBytes and lpCompletionKey parameters. To get extended error information, call GetLastError. If the function did not dequeue a completion packet because the wait timed out, GetLastError returns WAIT_TIMEOUT.

            If *lpOverlapped is not NULL and the function dequeues a completion packet for a failed I/O operation from the completion port, the return value is zero. The function stores information in the variables pointed to by lpNumberOfBytes, lpCompletionKey, and lpOverlapped. To get extended error information, call GetLastError.

            Remarks

            This function associates a thread with the specified completion port. A thread can be associated with at most one completion port.

            This function returns TRUE when at least one pending I/O is completed.

            This function returns FALSE when no I/O operation was dequeued. This typically means that an error occurred while processing the parameters to this call, or that the CompletionPort handle was closed or is otherwise invalid. The GetLastError function provides extended error information.

            Starting with Windows?Vista, if a call to GetQueuedCompletionStatus fails because the handle associated with it is closed, the function returns FALSE and GetLastError will return ERROR_ABANDONED_WAIT_0.

            For more information on I/O completion port theory, usage, and associated functions, see I/O Completion Ports.

            Requirements

            Minimum supported client Windows 2000 Professional
            Minimum supported server Windows 2000 Server
            Header WinBase.h (include Windows.h)
            Library Kernel32.lib
            DLL Kernel32.dll
            久久这里有精品| 久久99亚洲综合精品首页| 久久久久久无码Av成人影院| 熟妇人妻久久中文字幕| 国产成人久久精品激情 | 无码精品久久久天天影视| 99久久国产宗和精品1上映| 国内精品人妻无码久久久影院| 久久久精品一区二区三区| 久久精品国产精品亚洲人人| 一级做a爰片久久毛片免费陪| 亚洲AV乱码久久精品蜜桃| 亚洲伊人久久大香线蕉苏妲己| 亚洲国产精品成人AV无码久久综合影院 | 久久99热国产这有精品| 手机看片久久高清国产日韩| 亚洲成色www久久网站夜月| 色综合色天天久久婷婷基地| 久久亚洲日韩看片无码| 久久99久久99小草精品免视看| 亚洲伊人久久综合影院| 久久青草国产精品一区| 国产精品久久久久免费a∨| 色综合久久88色综合天天| 欧美精品国产综合久久| 99久久夜色精品国产网站| 亚洲国产精品18久久久久久| 久久精品国产72国产精福利| 久久天天躁狠狠躁夜夜96流白浆| 久久久久久久亚洲精品| 久久国产乱子伦免费精品| 久久天天日天天操综合伊人av| 91精品国产综合久久精品| 久久精品人妻中文系列| 久久精品一区二区三区中文字幕| 国产69精品久久久久777| 久久丫忘忧草产品| 亚洲欧美一区二区三区久久| 国产精品美女久久久久av爽| 国产精品一区二区久久精品| 久久天天躁狠狠躁夜夜96流白浆|