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