• <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>
            隨筆 - 60  文章 - 5  trackbacks - 0
            <2009年10月>
            27282930123
            45678910
            11121314151617
            18192021222324
            25262728293031
            1234567

            常用鏈接

            留言簿(2)

            隨筆分類(42)

            隨筆檔案(60)

            文章檔案(2)

            我收藏的博客

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            source:http://msdn.microsoft.com/en-us/library/ms524352.aspx
            For an ISAPI extension to be used by IIS, it must provide a standard interface. To provide a standard interface, each ISAPI extension DLL must implement and export two primary functions, GetExtensionVersion and HttpExtensionProc. A third function, TerminateExtension, is optional and is commonly used by extensions to perform cleanup operations.

            Initialization Using GetExtensionVersion
            Initialization is handled by the entry-point function GetExtensionVersion. This function's role is to perform all initialization, including the creation of worker threads, synchronization objects, and database connections, and to establish the version of ISAPI that was used to build the DLL.

            Adding Functionality Using HttpExtensionProc

            In general, an extension's functionality is exposed through the HttpExtensionProc entry-point function. This function receives a pointer to an EXTENSION_CONTROL_BLOCK structure, which contains data used for the required processing and is also used by the extension to communicate with IIS.
            When HttpExtensionProc in employed, it should first send a response header to the client. The header provides the client with information, such as the content type that is returned. After the header is sent, any other processing can be performed through the various callback functions provided in the EXTENSION_CONTROL_BLOCK.

            Termination Using TerminateExtension

            When an extension is no longer needed, IIS removes it from memory. If the extension provides the TerminateExtension function, IIS calls it before removing the extension. Use of TerminateExtension is recommended to close down any threads that an extension initialized during processing.

            After IIS finishes processing a request for an ISAPI extension, the connection can either be closed or kept open. A request can specify that the connection remain open by specifying the Connection: Keep-Alive header. If an ISAPI extension is designed to support Keep-Alive requests, this should be indicated to the client by calling the HSE_REQ_SEND_RESPONSE_HEADER server support function. The specified response header should contain Connection: Keep-Alive.

            posted on 2010-01-12 09:15 黃劍父 閱讀(278) 評論(0)  編輯 收藏 引用 所屬分類: C/C++
            成人a毛片久久免费播放| 久久人人妻人人爽人人爽| 国产精品美女久久久| 99久久精品久久久久久清纯| 国产综合免费精品久久久| 香蕉久久久久久狠狠色| 色综合久久久久无码专区| 久久久久中文字幕| 久久久久久亚洲精品成人 | 男女久久久国产一区二区三区| 亚洲国产天堂久久综合网站 | 久久这里只有精品视频99| 老男人久久青草av高清| 久久久久国产亚洲AV麻豆| 久久99精品国产99久久6男男| 亚洲国产成人精品久久久国产成人一区二区三区综 | 香蕉久久夜色精品国产小说| 91超碰碰碰碰久久久久久综合| 久久国产成人精品麻豆| 国产精品美女久久久| 国产成人精品久久免费动漫| 亚洲国产精品久久| 亚洲人成无码www久久久| 久久天天躁夜夜躁狠狠躁2022| 少妇人妻综合久久中文字幕| 久久久久久久97| 久久久久国产精品嫩草影院| 四虎国产精品成人免费久久| 亚洲欧美成人综合久久久| 久久国产精品国语对白| 久久人妻少妇嫩草AV无码专区| 久久影院综合精品| 久久99精品久久久久久不卡| 久久夜色精品国产噜噜亚洲AV| 国产福利电影一区二区三区久久久久成人精品综合 | 国产精品久久免费| 一本色综合网久久| 精品国产乱码久久久久久人妻| 精品久久久久一区二区三区 | 亚洲伊人久久精品影院| 久久婷婷色香五月综合激情|