2 Star 0 Fork 0

mirrors_chromium_googlesource/webmdshow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cfactory.h 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
// Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
#pragma once
#include <objbase.h>
class CFactory : public IClassFactory
{
public:
typedef HRESULT (*create_t)(IClassFactory*, IUnknown*, const IID&, void**);
CFactory(ULONG*, create_t);
virtual ~CFactory();
HRESULT STDMETHODCALLTYPE QueryInterface(const IID&, void**);
ULONG STDMETHODCALLTYPE AddRef();
ULONG STDMETHODCALLTYPE Release();
HRESULT STDMETHODCALLTYPE CreateInstance(IUnknown*, const IID&, void**);
HRESULT STDMETHODCALLTYPE LockServer(BOOL);
private:
const create_t m_create;
ULONG* const m_pcLock;
ULONG m_cRef;
CFactory(const CFactory&);
CFactory& operator=(const CFactory&);
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_chromium_googlesource/webmdshow.git
git@gitee.com:mirrors_chromium_googlesource/webmdshow.git
mirrors_chromium_googlesource
webmdshow
webmdshow
main

搜索帮助