getDevice method

int getDevice(
  1. Pointer<Utf16> pwstrId,
  2. Pointer<Pointer<COMObject>> ppDevice
)

Implementation

int getDevice(Pointer<Utf16> pwstrId, Pointer<Pointer<COMObject>> ppDevice) =>
    (ptr.ref.vtable + 5)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Pointer<Utf16> pwstrId,
                            Pointer<Pointer<COMObject>> ppDevice)>>>()
            .value
            .asFunction<
                int Function(Pointer, Pointer<Utf16> pwstrId,
                    Pointer<Pointer<COMObject>> ppDevice)>()(
        ptr.ref.lpVtbl, pwstrId, ppDevice);