• <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年6月>
            31123456
            78910111213
            14151617181920
            21222324252627
            2829301234
            567891011

            常用鏈接

            留言簿(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++
            国产精品成人99久久久久| 久久精品九九亚洲精品天堂| 午夜精品久久久久成人| 国产成人精品综合久久久久 | 无码任你躁久久久久久老妇| 久久夜色精品国产| 国产精品久久久久影视不卡| 欧美伊人久久大香线蕉综合69| 久久久久久久久无码精品亚洲日韩 | 久久婷婷是五月综合色狠狠| 久久久噜噜噜久久中文福利| 久久亚洲欧洲国产综合| 久久99精品久久久久久| 波多野结衣AV无码久久一区| 久久精品国产亚洲精品| 久久综合久久综合久久| 综合久久国产九一剧情麻豆 | 影音先锋女人AV鲁色资源网久久 | 久久久久久亚洲精品成人| 久久亚洲AV永久无码精品| 大伊人青草狠狠久久| 无码国内精品久久人妻蜜桃| 性做久久久久久免费观看| 国产一区二区精品久久岳| 久久综合狠狠色综合伊人| 久久久久久午夜成人影院| 久久综合噜噜激激的五月天| 久久久亚洲裙底偷窥综合| 久久婷婷午色综合夜啪| 日产久久强奸免费的看| 久久这里有精品视频| 无码精品久久一区二区三区| 久久丝袜精品中文字幕| 久久影院久久香蕉国产线看观看| 国产综合免费精品久久久| 久久精品国产亚洲7777| 久久综合成人网| 久久久久久久精品成人热色戒| 国内精品伊人久久久影院| 一本色道久久88精品综合| 精品国产乱码久久久久久1区2区 |