• <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
            <2010年1月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            常用鏈接

            留言簿(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 黃劍父 閱讀(265) 評論(0)  編輯 收藏 引用 所屬分類: C/C++
            久久免费视频观看| 色综合久久久久网| 久久国产综合精品五月天| 色8久久人人97超碰香蕉987| 国产精品美女久久福利网站| 中文字幕精品无码久久久久久3D日动漫| 91亚洲国产成人久久精品| 精品久久久久久无码专区不卡| 亚洲国产精品无码久久98| 久久精品国产亚洲αv忘忧草| 久久久久久久久久久| 久久精品国产男包| 久久精品人人做人人爽97| 97久久精品人妻人人搡人人玩 | 亚洲va久久久噜噜噜久久狠狠| 久久香综合精品久久伊人| 伊人久久精品无码二区麻豆| 日韩精品久久久久久久电影蜜臀 | 久久久久99精品成人片直播| 久久天天躁狠狠躁夜夜96流白浆| 国内精品久久久久伊人av| 91久久精品国产91性色也| 人妻丰满?V无码久久不卡| 一本色综合网久久| 久久精品国产亚洲网站| 久久影院久久香蕉国产线看观看| 欧美亚洲国产精品久久| 国产欧美久久久精品| 国产香蕉久久精品综合网| 国产一区二区精品久久| 一本一道久久a久久精品综合| 久久丫精品国产亚洲av| 久久亚洲天堂| 99久久精品费精品国产一区二区| 久久久久亚洲精品男人的天堂| 中文无码久久精品| 久久综合精品国产一区二区三区| 日日躁夜夜躁狠狠久久AV| 亚洲一区精品伊人久久伊人| 精品久久久久香蕉网| 欧美日韩久久中文字幕|