⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iparsedn.cpp

📁 英文版的 想要的话可以下载了 为大家服务
💻 CPP
字号:
/*
 * IPARSEDN.H
 *
 * Template IParseDisplayName interface implementation.
 *
 * Copyright (c)1993-1995 Microsoft Corporation, All Right Reserved
 *
 * Kraig Brockschmidt, Microsoft
 * Internet  :  kraigb@microsoft.com
 * Compuserve:  >INTERNET:kraigb@microsoft.com
 */


#include "iparsedn.h"


/*
 * CImpIParseDisplayName::CImpIParseDisplayName
 * CImpIParseDisplayName::~CImpIParseDisplayName
 *
 * Parameters (Constructor):
 *  pObj            LPVOID of the object we're in.
 *  pUnkOuter       LPUNKNOWN to which we delegate.
 */

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

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



/*
 * CImpIParseDisplayName::QueryInterface
 * CImpIParseDisplayName::AddRef
 * CImpIParseDisplayName::Release
 *
 * Purpose:
 *  Delegating IUnknown members for CImpIParseDisplayName.
 */

STDMETHODIMP CImpIParseDisplayName::QueryInterface(REFIID riid
    , LPVOID *ppv)
    {
    return m_pUnkOuter->QueryInterface(riid, ppv);
    }

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

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




/*
 * CImpIParseDisplayName::ParseDisplayName
 *
 * Purpose:
 *  Parses an object's display name into a moniker to the object.
 *
 * Parameters:
 *  pBindCtx        LPBC to the bind context in use.
 *  pszName         LPOLESTR to the display name to parse.
 *  pchEaten        ULONG * in which to store the number of
 *                  characters parsed.
 *  ppmk            LPMONIKER * in which to store the moniker.
 */

STDMETHODIMP CImpIParseDisplayName::ParseDisplayName(LPBC pBindCtx
    , LPOLESTR pszName, ULONG * pchEaten, LPMONIKER *ppmk)
    {
    return ResultFromScode(E_NOTIMPL);
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -