GetActiveObject function oleaut32
Retrieves a pointer to a running object that has been registered with OLE.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-getactiveobject.
Implementation
@pragma('vm:prefer-inline')
void GetActiveObject(Pointer<GUID> rclsid, Pointer<VTablePointer> ppunk) {
final hr$ = HRESULT(_GetActiveObject(rclsid, nullptr, ppunk));
if (hr$.isError) throw WindowsException(hr$);
}