Common functions of the COM Library

Source: Internet
Author: User
Common functions of the COM LibraryI. Initialization Function


1. cobuildversion: Get the com library version

2. coinitialize: Initialize the com Library
3. couninitialize: Terminate the CO service

4. cofreeunsedlibraries: release all unused component programs in the process


Ii. guid Function


1. isequalguid: checks whether two guids are equal.

2. isequaliid: determines whether two IIDS are equal
3. isequalclsid: judge whether two CLSID are equal
4. clsidfromprogid: converts string-form object identifiers into CLSID structures.
5. stringfromclsid: converts the CLSID structure to the string format.
6. iidfromstring: Convert the interface ID in string format to the IID Structure
7. stringfromiid: Convert the IID structure to a string

8. stringfromguid2: Convert the guid structure to the string format.

9. progidfromclsid: obtains the Object ID from clsid.


3. Create functions for images


1. cogetclassobject: obtains the class factory of the object.

2. cocreateinstance: Create a COM Object
3. cocreateinstanceex: Creates a COM object. You can specify multiple interfaces or remote objects.
4. coregisterclassobject: registers an object for other applications
Can be connected to this object
5. corevokeclassobject: cancels object registration.

6. codisconnectobject: disconnect other applications from objects


Iv. Memory Management Functions


1. cotaskmemalloc: Memory Allocation Function

2. cotaskmemrealloc: Memory Reallocation Function
3. cotaskmemfree: memory release function

4. cogetmallo: gets the Memory Manager interface of the COM Library


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.