• <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++
            久久人人超碰精品CAOPOREN | 久久亚洲春色中文字幕久久久| 少妇人妻综合久久中文字幕| 中文字幕无码精品亚洲资源网久久| 日本久久久久亚洲中字幕| 72种姿势欧美久久久久大黄蕉| 久久婷婷五月综合97色直播| 亚洲国产精品成人久久| 国产99久久九九精品无码| 中文字幕乱码人妻无码久久| 精品久久久久久久中文字幕| 亚洲AV无码久久精品成人| 日本亚洲色大成网站WWW久久 | 久久久久一区二区三区| 亚洲欧洲中文日韩久久AV乱码| 久久久久一区二区三区| 午夜精品久久久久久中宇| 日本精品一区二区久久久| 99精品伊人久久久大香线蕉| 无码AV中文字幕久久专区| 无码任你躁久久久久久| 久久青青草原精品国产不卡| 7国产欧美日韩综合天堂中文久久久久 | 热99RE久久精品这里都是精品免费 | 久久99国产精品久久99| 中文国产成人精品久久不卡 | 久久久久久九九99精品| 伊人久久精品无码av一区| 一本大道久久东京热无码AV| 久久久久久av无码免费看大片| a级成人毛片久久| 精品久久777| 韩国三级中文字幕hd久久精品 | 99久久国产综合精品五月天喷水| 久久午夜无码鲁丝片| 五月丁香综合激情六月久久| 亚洲AV成人无码久久精品老人| 久久精品国产网红主播| 国产精品久久永久免费| 亚洲综合精品香蕉久久网97| 国产精品99久久久久久董美香|