CoInitializeEx function
来源:互联网 发布:萨尔 知乎 编辑:程序博客网 时间:2024/06/04 19:32
CoInitializeEx function
HRESULT CoInitializeEx(
In_opt LPVOID pvReserved,
In DWORD dwCoInit
);
Initializes the COM library for use by the calling thread, sets the thread’s concurrency model, and creates a new apartment for the thread if one is required.
CoInitializeEx是 Windows提供的API函数,为当前线程初始化COM库并设置并发模式 。应用程序调用com库中的函数(除CoGetMalloc和内存分配函数)之前必须初始化com库。
You should call Windows::Foundation::Initialize to initialize the thread instead of CoInitializeEx if you want to use the Windows Runtime APIs or if you want to use both COM and Windows Runtime components. Windows::Foundation::Initialize is sufficient to use for COM components.
Parameters
pvReserved [in, optional]
This parameter is reserved and must be NULL.
dwCoInit [in]
The concurrency model and initialization options for the thread. Values for this parameter are taken from the COINIT enumeration. Any combination of values from COINIT can be used, except that the COINIT_APARTMENTTHREADED and COINIT_MULTITHREADED flags cannot both be set. The default is COINIT_MULTITHREADED
- CoInitializeEx function
- CoInitializeEx function
- CoInitializeEx function
- CoInitializeEx
- CoInitializeEx
- CoInitializeEx
- CoInitializeEx()函数
- CoinitializeEx Remarks
- CoInitializeEx failed ?
- CoInitializeEx()与CFileDialog等
- 'CoInitializeEx' : undeclared identifier
- AfxOleInit()/CoInitialize()/CoInitializeEx()
- 'CoInitializeEx' : undeclared identifier 问题
- CoInitialize()、CoInitializeEx()和AfxOleInit()
- WMI--Windows API--CoInitializeEx
- AfxOleInit()/CoInitialize()/CoInitializeEx()
- CoInitialize \CoInitializeEx\AfxOleInit
- CoInitializeEx、CoInitializeSecurity函数
- rex run 传参
- 38. Count and Say(第十二周)
- 海航集团王健出席海南省脱贫攻坚暨扶贫日主题晚会
- Android之蓝牙开发初编(发现蓝牙,配对蓝牙,连接蓝牙)
- 嵌入式Linux中tftp和nfs的笔记
- CoInitializeEx function
- Python: PS 滤镜--扇形变换
- Linux设备树的用法
- 查询行业数据报告
- SQL Server触发器及其操作语句
- 海航集团王健随同罗保铭书记出访加拿大和美国
- 双向循环型多链接链表
- 16-17年度工作总结
- 使用 Office 365 PowerShell 管理用户帐户和许可证(三)使用 Office 365 PowerShell 向用户帐户分配许可证