Component Object Model (COM) Functions
This section provides a comprehensive reference for the functions used in Windows Component Object Model (COM) programming.
Core COM Functions
-
CoCreateInstanceCreates a single uninitialized object of the specified class.
-
CoInitializeExInitializes the COM library on the current thread.
-
CoUninitializeCloses the COM library on the current thread.
-
CoGetClassObjectObtains a pointer to an object's class factory.
-
CoGetInterfaceAndReleaseStreamRetrieves an interface pointer from a marshalled interface.
-
CoMarshalInterfaceMarshals an interface pointer into a stream.
-
CoReleaseMarshalDataReleases data that was previously marshalled by CoMarshalInterface.
-
CoTaskMemAllocAllocates memory that the COM library can use.
-
CoTaskMemFreeFrees memory that was previously allocated by CoTaskMemAlloc.
-
StringFromGUID2Converts a GUID structure to its equivalent string representation.
Reference Counting Functions
-
IUnknown::AddRefIncrements the reference count for an interface on an object.
-
IUnknown::ReleaseDecrements the reference count for an interface on an object.
Type Information Functions
-
ITypeLib::GetTypeInfoCountRetrieves the number of type descriptions in a type library.
-
ITypeLib::GetTypeInfoRetrieves a pointer to a type description.
Error Handling Functions
-
GetErrorInfoRetrieves the current error object.
-
SetErrorInfoAssociates an error object with the current thread.