isCOMInitialized top-level property
bool
isCOMInitialized
Determines whether the Component Object Model (COM) is initialized on the current thread.
Implementation
bool get isCOMInitialized {
final pAptType = calloc<Int32>();
final pAptQualifier = calloc<Int32>();
try {
return CoGetApartmentType(pAptType, pAptQualifier) == S_OK;
} finally {
free(pAptType);
free(pAptQualifier);
}
}