@node-ctypes/winrt - v0.1.0
    Preparing search index...

    Function readMapView

    • Read a WinRT IMapView<K, V> or IMap<K, V> into a JavaScript Map<K, V> by QueryInterfaceing IIterable<IKeyValuePair<K, V>> (iterablePiid), releasing all COM pointers afterwards.

      Type Parameters

      • K
      • V

      Parameters

      • mapAddr: bigint
      • iterablePiid: string
      • readKey: (
            pair: InterfacePointer<
                ComInterfaceDef<
                    ComInterfaceDef<
                        ComInterfaceDef<
                            undefined,
                            readonly [
                                MethodSpec<
                                    "QueryInterface",
                                    RawFunction<
                                        SimpleCDataConstructor<"int32"> & {},
                                        readonly [
                                            PointerTypeDef<typeof GUID>,
                                            PointerTypeDef<SimpleCDataConstructor<(...)>>,
                                        ],
                                    >,
                                    "method",
                                    "QueryInterface",
                                >,
                                MethodSpec<
                                    "AddRef",
                                    RawFunction<SimpleCDataConstructor<"uint32">, readonly []>,
                                    "method",
                                    "AddRef",
                                >,
                                MethodSpec<
                                    "Release",
                                    RawFunction<SimpleCDataConstructor<"uint32">, readonly []>,
                                    "method",
                                    "Release",
                                >,
                            ],
                            readonly [],
                        >,
                        readonly [
                            MethodSpec<
                                "GetIids",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [
                                        SimpleCDataConstructor<"pointer">,
                                        SimpleCDataConstructor<"pointer">,
                                    ],
                                >,
                                "method",
                                "GetIids",
                            >,
                            MethodSpec<
                                "GetRuntimeClassName",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [SimpleCDataConstructor<"pointer">],
                                >,
                                "method",
                                "GetRuntimeClassName",
                            >,
                            MethodSpec<
                                "GetTrustLevel",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [SimpleCDataConstructor<"pointer">],
                                >,
                                "method",
                                "GetTrustLevel",
                            >,
                        ],
                        readonly [],
                    >,
                    readonly [
                        MethodSpec<
                            "get_Key",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "get_Key",
                        >,
                        MethodSpec<
                            "get_Value",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "get_Value",
                        >,
                    ],
                    readonly [],
                >,
            >,
        ) => K
      • readValue: (
            pair: InterfacePointer<
                ComInterfaceDef<
                    ComInterfaceDef<
                        ComInterfaceDef<
                            undefined,
                            readonly [
                                MethodSpec<
                                    "QueryInterface",
                                    RawFunction<
                                        SimpleCDataConstructor<"int32"> & {},
                                        readonly [
                                            PointerTypeDef<typeof GUID>,
                                            PointerTypeDef<SimpleCDataConstructor<(...)>>,
                                        ],
                                    >,
                                    "method",
                                    "QueryInterface",
                                >,
                                MethodSpec<
                                    "AddRef",
                                    RawFunction<SimpleCDataConstructor<"uint32">, readonly []>,
                                    "method",
                                    "AddRef",
                                >,
                                MethodSpec<
                                    "Release",
                                    RawFunction<SimpleCDataConstructor<"uint32">, readonly []>,
                                    "method",
                                    "Release",
                                >,
                            ],
                            readonly [],
                        >,
                        readonly [
                            MethodSpec<
                                "GetIids",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [
                                        SimpleCDataConstructor<"pointer">,
                                        SimpleCDataConstructor<"pointer">,
                                    ],
                                >,
                                "method",
                                "GetIids",
                            >,
                            MethodSpec<
                                "GetRuntimeClassName",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [SimpleCDataConstructor<"pointer">],
                                >,
                                "method",
                                "GetRuntimeClassName",
                            >,
                            MethodSpec<
                                "GetTrustLevel",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [SimpleCDataConstructor<"pointer">],
                                >,
                                "method",
                                "GetTrustLevel",
                            >,
                        ],
                        readonly [],
                    >,
                    readonly [
                        MethodSpec<
                            "get_Key",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "get_Key",
                        >,
                        MethodSpec<
                            "get_Value",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "get_Value",
                        >,
                    ],
                    readonly [],
                >,
            >,
        ) => V

      Returns Map<K, V>