亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? iconnpt.cpp

?? 英文版的 想要的話可以下載了 為大家服務
?? CPP
字號:
/*
 * ICONNPT.CPP
 * Polyline Component Chapter 23
 *
 * Implementation of CImpIConnectionPoint for the Polyline object
 * as well as CConnectionPoint.
 *
 *
 * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
 *
 * Kraig Brockschmidt, Microsoft
 * Internet  :  kraigb@microsoft.com
 * Compuserve:  >INTERNET:kraigb@microsoft.com
 */


#include "polyline.h"


/*
 * CImpIConnPtCont:CImpIConnPtCont
 * CImpIConnPtCont::~CImpIConnPtCont
 *
 * Constructor Parameters:
 *  pObj            PCPolyline pointing to the object we live in.
 *  pUnkOuter       LPUNKNOWN of the controlling unknown.
 */

CImpIConnPtCont::CImpIConnPtCont(PCPolyline pObj
    , LPUNKNOWN pUnkOuter)
    {
    m_cRef=0;
    m_pObj=pObj;
    m_pUnkOuter=pUnkOuter;
    return;
    }


CImpIConnPtCont::~CImpIConnPtCont(void)
    {
    return;
    }




/*
 * CImpIConnPtCont::QueryInterface
 * CImpIConnPtCont::AddRef
 * CImpIConnPtCont::Release
 */

STDMETHODIMP CImpIConnPtCont::QueryInterface(REFIID riid, PPVOID ppv)
    {
    return m_pUnkOuter->QueryInterface(riid, ppv);
    }

STDMETHODIMP_(ULONG) CImpIConnPtCont::AddRef(void)
    {
    ++m_cRef;
    return m_pUnkOuter->AddRef();
    }

STDMETHODIMP_(ULONG) CImpIConnPtCont::Release(void)
    {
    --m_cRef;
    return m_pUnkOuter->Release();
    }





/*
 * CImpIConnPtCont::EnumConnectionPoints
 *
 * Purpose:
 *  Not implemented.
 *
 * Return Value:
 *  HRESULT         E_NOTIMPL
 */

STDMETHODIMP CImpIConnPtCont::EnumConnectionPoints
    (LPENUMCONNECTIONPOINTS *ppEnum)
    {
    *ppEnum=NULL;
    return ResultFromScode(E_NOTIMPL);
    }



/*
 * CImpIConnPtCont::FindConnectionPoint
 *
 * Purpose:
 *  Returns a pointer to the IConnectionPoint for a given
 *  outgoing IID.
 *
 * Parameters:
 *  riid            REFIID of the outgoing interface for which
 *                  a connection point is desired.
 *  ppCP            IConnectionPoint ** in which to return
 *                  the pointer after calling AddRef.
 *
 * Return Value:
 *  HRESULT         NOERROR if the connection point is found,
 *                  E_NOINTERFACE if it's not supported.
 */

STDMETHODIMP CImpIConnPtCont::FindConnectionPoint(REFIID riid
    , IConnectionPoint **ppCP)
    {
    *ppCP=NULL;

    if (IID_IPolylineAdviseSink10==riid)
        {
        return m_pObj->m_pConnPt->QueryInterface
            (IID_IConnectionPoint, (PPVOID)ppCP);
        }

    return ResultFromScode(E_NOINTERFACE);
    }





//CConnectionPoint implementation

/*
 * CConnectionPoint::CConnectionPoint
 * CConnectionPoint::~CConnectionPoint
 *
 * Parameters (Constructor):
 *  pObj            PCPolyline of the object we're in.  We can
 *                  query this for the IConnectionPointContainer
 *                  interface we might need.
 */

CConnectionPoint::CConnectionPoint(PCPolyline pObj)
    {
    m_cRef=0;

    /*
     * Our lifetime is controlled by the connectable object itself,
     * although other external clients will call AddRef and Release.
     * Since we're nested in the connectable object's lifetime,
     * there's no need to call AddRef on pObj.
     */
    m_pObj=pObj;
    return;
    }

CConnectionPoint::~CConnectionPoint(void)
    {
    ReleaseInterface(m_pObj->m_pAdv);
    return;
    }



/*
 * CConnectionPoint::QueryInterface
 * CConnectionPoint::AddRef
 * CConnectionPoint::Release
 *
 * Purpose:
 *  Non-delegating IUnknown members for CConnectionPoint.
 */

STDMETHODIMP CConnectionPoint::QueryInterface(REFIID riid
    , LPVOID *ppv)
    {
    *ppv=NULL;

    if (IID_IUnknown==riid || IID_IConnectionPoint==riid)
        *ppv=(LPVOID)this;

    if (NULL!=*ppv)
        {
        ((LPUNKNOWN)*ppv)->AddRef();
        return NOERROR;
        }

    return ResultFromScode(E_NOINTERFACE);
    }

STDMETHODIMP_(ULONG) CConnectionPoint::AddRef(void)
    {
    return ++m_cRef;
    }

STDMETHODIMP_(ULONG) CConnectionPoint::Release(void)
    {
    if (0!=--m_cRef)
        return m_cRef;

    delete this;
    return 0;
    }



/*
 * CConnectionPoint::GetConnectionInterface
 *
 * Purpose:
 *  Returns the IID of the outgoing interface supported through
 *  this connection point.
 *
 * Parameters:
 *  pIID            IID * in which to store the IID.
 */

STDMETHODIMP CConnectionPoint::GetConnectionInterface(IID *pIID)
    {
    if (NULL==pIID)
        return ResultFromScode(E_POINTER);

    *pIID=IID_IPolylineAdviseSink10;
    return NOERROR;
    }



/*
 * CConnectionPoint::GetConnectionPointContainer
 *
 * Purpose:
 *  Returns a pointer to the IConnectionPointContainer that
 *  is manageing this connection point.
 *
 * Parameters:
 *  ppCPC           IConnectionPointContainer ** in which to return
 *                  the pointer after calling AddRef.
 */

STDMETHODIMP CConnectionPoint::GetConnectionPointContainer
    (IConnectionPointContainer **ppCPC)
    {
    return m_pObj->QueryInterface(IID_IConnectionPointContainer
        , (void **)ppCPC);
    }



/*
 * CConnectionPoint::Advise
 *
 * Purpose:
 *  Provides this connection point with a notification sink to
 *  call whenever the appropriate outgoing function/event occurs.
 *
 * Parameters:
 *  pUnkSink        LPUNKNOWN to the sink to notify.  The connection
 *                  point must QueryInterface on this pointer to obtain
 *                  the proper interface to call.  The connection
 *                  point must also insure that any pointer held has
 *                  a reference count (QueryInterface will do it).
 *  pdwCookie       DWORD * in which to store the connection key for
 *                  later calls to Unadvise.
 */

STDMETHODIMP CConnectionPoint::Advise(LPUNKNOWN pUnkSink
    , DWORD *pdwCookie)
    {
    IPolylineAdviseSink10  *pSink;

    *pdwCookie=0;

    //Only allow one connection
    if (NULL!=m_pObj->m_pAdv)
        return ResultFromScode(CONNECT_E_ADVISELIMIT);

    //Check for the right interface on the sink.
    if (FAILED(pUnkSink->QueryInterface(IID_IPolylineAdviseSink10
        , (PPVOID)&pSink)))
        return ResultFromScode(CONNECT_E_CANNOTCONNECT);

    *pdwCookie=ADVISEKEY;
    m_pObj->m_pAdv=pSink;
    return NOERROR;
    }



/*
 * CConnectionPoint::Unadvise
 *
 * Purpose:
 *  Terminates the connection to the notification sink identified
 *  with dwCookie (that was returned from Advise).  The connection
 *  point has to Release any held pointers for that sink.
 *
 * Parameters:
 *  dwCookie        DWORD connection key from Advise.
 */

STDMETHODIMP CConnectionPoint::Unadvise(DWORD dwCookie)
    {
    if (0==dwCookie)
        return ResultFromScode(E_INVALIDARG);

    if (ADVISEKEY!=dwCookie)
        ResultFromScode(CONNECT_E_NOCONNECTION);

    ReleaseInterface(m_pObj->m_pAdv);
    return NOERROR;
    }



/*
 * CConnectionPoint::EnumConnections
 *
 * Purpose:
 *  Not implemented.
 */

STDMETHODIMP CConnectionPoint::EnumConnections
    (LPENUMCONNECTIONS *ppEnum)
    {
    *ppEnum=NULL;
    return ResultFromScode(E_NOTIMPL);
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产入口在线| 日韩二区三区在线观看| 久久久久久久av麻豆果冻| 欧美一区二区性放荡片| 91精品国产免费| 日韩欧美亚洲另类制服综合在线| 制服.丝袜.亚洲.另类.中文| 欧美精品久久天天躁| 3d动漫精品啪啪一区二区竹菊| 欧美日韩在线播放三区四区| 欧美日韩久久不卡| 制服.丝袜.亚洲.中文.综合| 这里只有精品电影| 日韩精品专区在线影院重磅| www久久精品| 国产精品美女视频| 综合av第一页| 亚洲综合一区二区| 五月激情六月综合| 免费人成黄页网站在线一区二区| 另类成人小视频在线| 久久av资源站| 成人综合婷婷国产精品久久免费| 不卡影院免费观看| 欧美视频你懂的| 欧美一二三区在线| 精品91自产拍在线观看一区| 国产偷国产偷精品高清尤物| 17c精品麻豆一区二区免费| 一区二区免费视频| 视频一区二区欧美| 国产一区二区不卡老阿姨| 成人国产视频在线观看| 在线视频亚洲一区| 欧美成人r级一区二区三区| 国产亚洲精品免费| 亚洲欧美日韩在线不卡| 天堂久久久久va久久久久| 狠狠久久亚洲欧美| 99久久精品久久久久久清纯| 欧美日韩一区二区欧美激情| 久久欧美中文字幕| 一区二区三区精品视频在线| 蜜臀99久久精品久久久久久软件| 国产精品香蕉一区二区三区| 91行情网站电视在线观看高清版| 欧美一区二区三区免费大片| 日韩精品一二三区| 国产乱色国产精品免费视频| 91原创在线视频| 欧美猛男男办公室激情| 久久午夜电影网| 一区二区三区四区在线| 国产在线精品一区二区不卡了| 91小视频在线| 久久先锋影音av鲁色资源| 一区二区免费在线| 国产999精品久久久久久绿帽| 欧美性色综合网| 欧美国产日韩在线观看| 日韩精品亚洲一区二区三区免费| 成人免费视频视频| 欧美精品 日韩| 最新不卡av在线| 精品一区二区三区影院在线午夜 | 亚洲精品视频在线观看免费| 日本中文字幕一区| 在线日韩av片| 久久久久国产免费免费 | 风流少妇一区二区| 制服丝袜中文字幕亚洲| 日韩毛片在线免费观看| 韩国精品一区二区| 91精品欧美综合在线观看最新| 国产精品久久三区| 国产一区二区美女| 日韩一区二区高清| 香蕉久久夜色精品国产使用方法| 99re这里都是精品| 国产精品视频线看| 国产一区二区不卡老阿姨| 91精品国产一区二区三区香蕉| 亚洲精选视频在线| 成人精品视频一区| 国产亚洲欧洲一区高清在线观看| 看电影不卡的网站| 欧美一区二区视频观看视频| 亚洲线精品一区二区三区八戒| av电影天堂一区二区在线| 精品国产1区2区3区| 日本成人在线一区| 欧美日本在线观看| 亚洲制服欧美中文字幕中文字幕| 91亚洲资源网| 一区在线播放视频| 成人a区在线观看| 国产欧美日韩麻豆91| 国产精品一级二级三级| 欧美v日韩v国产v| 久久99久久99小草精品免视看| 欧美一区二区日韩一区二区| 日欧美一区二区| 欧美一区二区福利视频| 奇米影视7777精品一区二区| 欧美日本在线一区| 男男成人高潮片免费网站| 欧美另类变人与禽xxxxx| 亚洲综合成人在线| 中文字幕亚洲欧美在线不卡| 国产成人亚洲精品狼色在线| 久久久久9999亚洲精品| 国产精品亚洲第一区在线暖暖韩国| 久久久99精品久久| 国产一区在线视频| 欧美国产一区在线| 99国产精品久久久久久久久久久 | 亚洲国产欧美在线| 欧美亚洲综合网| 日韩一区精品字幕| 日韩欧美在线一区二区三区| 九色综合国产一区二区三区| 精品国产sm最大网站免费看| 国产1区2区3区精品美女| 一区免费观看视频| 欧美三片在线视频观看| 蜜桃av噜噜一区| 国产亚洲欧美激情| 色天天综合色天天久久| 婷婷综合五月天| 2021国产精品久久精品| 成人少妇影院yyyy| 亚洲制服丝袜在线| 欧美成人一级视频| 成人小视频免费观看| 亚洲精品免费在线播放| 91麻豆精品国产91久久久久| 久久国产乱子精品免费女| 中文子幕无线码一区tr| 色琪琪一区二区三区亚洲区| 日本亚洲最大的色成网站www| 精品国产sm最大网站| 99国产精品国产精品久久| 五月天一区二区| 欧美激情中文字幕| 欧美裸体一区二区三区| 国产成人啪午夜精品网站男同| 亚洲另类春色国产| 2019国产精品| 在线精品视频一区二区| 久久精品理论片| 亚洲美女屁股眼交| 日韩精品一区二区三区四区| av中文字幕在线不卡| 欧美aaaaaa午夜精品| 国产精品乱码一区二区三区软件| 欧美日韩亚洲综合一区二区三区| 国产一区 二区| 亚洲电影一级黄| 国产欧美日韩在线| 91 com成人网| 91在线精品一区二区三区| 麻豆精品在线看| 亚洲主播在线播放| 日本一区二区在线不卡| 91精品国产综合久久福利软件| 成人av资源网站| 欧美aaa在线| 一区二区三区在线视频观看58 | 亚洲三级免费电影| 精品国产成人在线影院| 欧美三级电影精品| 成人精品一区二区三区四区| 久久精品国产免费看久久精品| 亚洲精品高清在线| 国产嫩草影院久久久久| 日韩欧美中文字幕制服| 欧美视频日韩视频| 91理论电影在线观看| 国产二区国产一区在线观看| 日韩二区三区四区| 国产成人午夜视频| 三级影片在线观看欧美日韩一区二区 | 国产在线精品一区二区不卡了| 亚洲国产精品精华液网站| 国产精品久99| 国产午夜精品久久久久久久 | 亚洲黄色在线视频| 国产精品家庭影院| 中文在线一区二区| 欧美精品一区二区蜜臀亚洲| 制服丝袜在线91| 欧美精品在线观看一区二区| 一本一道久久a久久精品| 成人在线视频一区| 国产精品资源在线观看| 毛片不卡一区二区| 九九久久精品视频| 精品一区二区在线观看| 日本亚洲免费观看| 日韩av一区二区在线影视|