GetForUser method
Implementation
Pointer<COMObject> GetForUser(Pointer<COMObject> user) {
final retValuePtr = calloc<COMObject>();
final hr = _thisPtr.ref.vtable
.elementAt(6)
.cast<
Pointer<
NativeFunction<
HRESULT Function(Pointer, Pointer<COMObject> user,
Pointer<COMObject>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<COMObject> user, Pointer<COMObject>)>()(
_thisPtr.ref.lpVtbl,
user.cast<Pointer<COMObject>>().value,
retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
return retValuePtr;
}