diff --git a/build/include/silk.net.mediafoundation.h b/build/include/silk.net.mediafoundation.h new file mode 100644 index 0000000000..555d69543d --- /dev/null +++ b/build/include/silk.net.mediafoundation.h @@ -0,0 +1,2 @@ +#include +#include diff --git a/generator.json b/generator.json index b28a96fd06..a3852f946b 100644 --- a/generator.json +++ b/generator.json @@ -2778,7 +2778,79 @@ "namespace": "Silk.NET.XInput", "extensionsNamespace": "Silk.NET.XInput.Extensions", "typeMaps": [ - {}, + { + "$include.dxTypemap": "build/dx_typemap.json", + "$include.commonTypeMap": "build/csharp_typemap.json" + } + ] + }, + { + "profileName": "MediaFoundation", + "sources": [ + "build/include/silk.net.mediafoundation.h" + ], + "mode": "Clang", + "cacheDir": "build/cache", + "cacheKey": "mediafoundation", + "controlDescriptors": [ + "convert-windows-only", + "typemap-native", + "no-pre-2.17-obsolete-enums" + ], + "converter": {}, + "prefix": "MF", + "clang": { + "args": [ + "--language=c++", + "--std=c++17", + "-m32", + "-Wno-expansion-to-defined", + "-Wno-ignored-attributes", + "-Wno-ignored-pragma-intrinsic", + "-Wno-nonportable-include-path", + "-Wno-pragma-pack", + "-I$windowsSdkIncludes", + "-Ibuild/include" + ], + "traverse": [ + "$windowsSdkDir/Include/$windowsSdkVersion/um/mfmediaengine.h" + ], + "classes": { + "silk.net.mediafoundation.h": "[Core]MediaFoundation" + } + }, + "exclude": [], + "rename": { + "MF_MEDIA_ENGINE_CANPLAY": "MediaEngineCanPlay", + "MF_MEDIA_ENGINE_CREATEFLAGS": "MediaEngineCreateFlags", + "MF_MEDIA_ENGINE_ERR": "MediaEngineError", + "_MF_MEDIA_ENGINE_KEYERR": "MediaEngineKeyError", + "MF_MEDIA_ENGINE_STREAMTYPE_FAILED": "MediaEngineStreamTypeFailed", + "MF_MEDIAKEYS_REQUIREMENT": "MediaKeysRequirement" + }, + "bakery": { + "profileNames": [ + "silk.net.mediafoundation" + ] + }, + "output": { + "mode": "Default", + "path": "src/Microsoft", + "licenseFile": "build/LICENSE_HEADER.txt", + "props": "build/props/bindings.props" + }, + "namespace": "Silk.NET.MediaFoundation", + "extensionsNamespace": "Silk.NET.MediaFoundation.Extensions", + "nameContainer": { + "linux-x64": "libMediaFoundation.so", + "win-x64": "MediaFoundation.dll", + "win-x86": "MediaFoundation.dll", + "osx-x64": "libMediaFoundation.dylib", + "android": "libMediaFoundation.so", + "iOS": "__Internal", + "className": "MediaFoundationLibraryNameContainer" + }, + "typeMaps": [ { "$include.dxTypemap": "build/dx_typemap.json", "$include.commonTypeMap": "build/csharp_typemap.json" diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/HdcpStatus.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/HdcpStatus.gen.cs new file mode 100644 index 0000000000..f226baf9ab --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/HdcpStatus.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "_MF_HDCP_STATUS")] + public enum HdcpStatus : int + { + [NativeName("Name", "MF_HDCP_STATUS_ON")] + On = 0x0, + [NativeName("Name", "MF_HDCP_STATUS_OFF")] + Off = 0x1, + [NativeName("Name", "MF_HDCP_STATUS_ON_WITH_TYPE_ENFORCEMENT")] + OnWithTypeEnforcement = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineCanplay.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineCanplay.gen.cs new file mode 100644 index 0000000000..ba2bfba30e --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineCanplay.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_CANPLAY")] + public enum MediaEngineCanPlay : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_CANPLAY_NOT_SUPPORTED")] + NotSupported = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_CANPLAY_MAYBE")] + Maybe = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_CANPLAY_PROBABLY")] + Probably = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineCreateflags.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineCreateflags.gen.cs new file mode 100644 index 0000000000..8506c5092b --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineCreateflags.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Flags] + [NativeName("Name", "MF_MEDIA_ENGINE_CREATEFLAGS")] + public enum MediaEngineCreateFlags : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "MF_MEDIA_ENGINE_AUDIOONLY")] + Audioonly = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_WAITFORSTABLE_STATE")] + WaitforstableState = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_FORCEMUTE")] + Forcemute = 0x4, + [NativeName("Name", "MF_MEDIA_ENGINE_REAL_TIME_MODE")] + RealTimeMode = 0x8, + [NativeName("Name", "MF_MEDIA_ENGINE_DISABLE_LOCAL_PLUGINS")] + DisableLocalPlugins = 0x10, + [NativeName("Name", "MF_MEDIA_ENGINE_CREATEFLAGS_MASK")] + CreateflagsMask = 0x1F, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineError.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineError.gen.cs new file mode 100644 index 0000000000..fef7bbdd09 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineError.gen.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_ERR")] + public enum MediaEngineError : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_ERR_NOERROR")] + Noerror = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_ERR_ABORTED")] + Aborted = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_ERR_NETWORK")] + Network = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_ERR_DECODE")] + Decode = 0x3, + [NativeName("Name", "MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED")] + SrcNotSupported = 0x4, + [NativeName("Name", "MF_MEDIA_ENGINE_ERR_ENCRYPTED")] + Encrypted = 0x5, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineEvent.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineEvent.gen.cs new file mode 100644 index 0000000000..f6bda12c1d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineEvent.gen.cs @@ -0,0 +1,94 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT")] + public enum MediaEngineEvent : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_LOADSTART")] + Loadstart = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_PROGRESS")] + Progress = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_SUSPEND")] + Suspend = 0x3, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_ABORT")] + Abort = 0x4, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_ERROR")] + Error = 0x5, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_EMPTIED")] + Emptied = 0x6, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_STALLED")] + Stalled = 0x7, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_PLAY")] + Play = 0x8, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_PAUSE")] + Pause = 0x9, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_LOADEDMETADATA")] + Loadedmetadata = 0xA, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_LOADEDDATA")] + Loadeddata = 0xB, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_WAITING")] + Waiting = 0xC, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_PLAYING")] + Playing = 0xD, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_CANPLAY")] + Canplay = 0xE, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_CANPLAYTHROUGH")] + Canplaythrough = 0xF, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_SEEKING")] + Seeking = 0x10, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_SEEKED")] + Seeked = 0x11, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_TIMEUPDATE")] + Timeupdate = 0x12, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_ENDED")] + Ended = 0x13, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_RATECHANGE")] + Ratechange = 0x14, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_DURATIONCHANGE")] + Durationchange = 0x15, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_VOLUMECHANGE")] + Volumechange = 0x16, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_FORMATCHANGE")] + Formatchange = 0x3E8, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_PURGEQUEUEDEVENTS")] + Purgequeuedevents = 0x3E9, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_TIMELINE_MARKER")] + TimelineMarker = 0x3EA, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_BALANCECHANGE")] + Balancechange = 0x3EB, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_DOWNLOADCOMPLETE")] + Downloadcomplete = 0x3EC, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_BUFFERINGSTARTED")] + Bufferingstarted = 0x3ED, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_BUFFERINGENDED")] + Bufferingended = 0x3EE, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_FRAMESTEPCOMPLETED")] + Framestepcompleted = 0x3EF, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_NOTIFYSTABLESTATE")] + Notifystablestate = 0x3F0, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_FIRSTFRAMEREADY")] + Firstframeready = 0x3F1, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_TRACKSCHANGE")] + Trackschange = 0x3F2, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_OPMINFO")] + Opminfo = 0x3F3, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_RESOURCELOST")] + Resourcelost = 0x3F4, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_DELAYLOADEVENT_CHANGED")] + DelayloadeventChanged = 0x3F5, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_STREAMRENDERINGERROR")] + Streamrenderingerror = 0x3F6, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_SUPPORTEDRATES_CHANGED")] + SupportedratesChanged = 0x3F7, + [NativeName("Name", "MF_MEDIA_ENGINE_EVENT_AUDIOENDPOINTCHANGE")] + Audioendpointchange = 0x3F8, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineExtensionType.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineExtensionType.gen.cs new file mode 100644 index 0000000000..43c8679556 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineExtensionType.gen.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_EXTENSION_TYPE")] + public enum MediaEngineExtensionType : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_EXTENSION_TYPE_MEDIASOURCE")] + Mediasource = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_EXTENSION_TYPE_BYTESTREAM")] + Bytestream = 0x1, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineFrameProtectionFlags.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineFrameProtectionFlags.gen.cs new file mode 100644 index 0000000000..18446e72b6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineFrameProtectionFlags.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Flags] + [NativeName("Name", "MF_MEDIA_ENGINE_FRAME_PROTECTION_FLAGS")] + public enum MediaEngineFrameProtectionFlags : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "MF_MEDIA_ENGINE_FRAME_PROTECTION_FLAG_PROTECTED")] + Protected = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_FRAME_PROTECTION_FLAG_REQUIRES_SURFACE_PROTECTION")] + RequiresSurfaceProtection = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_FRAME_PROTECTION_FLAG_REQUIRES_ANTI_SCREEN_SCRAPE_PROTECTION")] + RequiresAntiScreenScrapeProtection = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineKeyError.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineKeyError.gen.cs new file mode 100644 index 0000000000..5ad1a38f8e --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineKeyError.gen.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "_MF_MEDIA_ENGINE_KEYERR")] + public enum MediaEngineKeyError : int + { + [NativeName("Name", "MF_MEDIAENGINE_KEYERR_UNKNOWN")] + Unknown = 0x1, + [NativeName("Name", "MF_MEDIAENGINE_KEYERR_CLIENT")] + Client = 0x2, + [NativeName("Name", "MF_MEDIAENGINE_KEYERR_SERVICE")] + Service = 0x3, + [NativeName("Name", "MF_MEDIAENGINE_KEYERR_OUTPUT")] + Output = 0x4, + [NativeName("Name", "MF_MEDIAENGINE_KEYERR_HARDWARECHANGE")] + Hardwarechange = 0x5, + [NativeName("Name", "MF_MEDIAENGINE_KEYERR_DOMAIN")] + Domain = 0x6, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineNetwork.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineNetwork.gen.cs new file mode 100644 index 0000000000..3feddc6e17 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineNetwork.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_NETWORK")] + public enum MediaEngineNetwork : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_NETWORK_EMPTY")] + Empty = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_NETWORK_IDLE")] + Idle = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_NETWORK_LOADING")] + Loading = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_NETWORK_NO_SOURCE")] + NoSource = 0x3, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineOpmStatus.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineOpmStatus.gen.cs new file mode 100644 index 0000000000..8141eec4b8 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineOpmStatus.gen.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_STATUS")] + public enum MediaEngineOpmStatus : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_NOT_REQUESTED")] + NotRequested = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_ESTABLISHED")] + Established = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_FAILED_VM")] + FailedVM = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_FAILED_BDA")] + FailedBda = 0x3, + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_FAILED_UNSIGNED_DRIVER")] + FailedUnsignedDriver = 0x4, + [NativeName("Name", "MF_MEDIA_ENGINE_OPM_FAILED")] + Failed = 0x5, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEnginePreload.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEnginePreload.gen.cs new file mode 100644 index 0000000000..671d7afb2a --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEnginePreload.gen.cs @@ -0,0 +1,26 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_PRELOAD")] + public enum MediaEnginePreload : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_PRELOAD_MISSING")] + Missing = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_PRELOAD_EMPTY")] + Empty = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_PRELOAD_NONE")] + None = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_PRELOAD_METADATA")] + Metadata = 0x3, + [NativeName("Name", "MF_MEDIA_ENGINE_PRELOAD_AUTOMATIC")] + Automatic = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineProtectionFlags.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineProtectionFlags.gen.cs new file mode 100644 index 0000000000..774530c73c --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineProtectionFlags.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Flags] + [NativeName("Name", "MF_MEDIA_ENGINE_PROTECTION_FLAGS")] + public enum MediaEngineProtectionFlags : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "MF_MEDIA_ENGINE_ENABLE_PROTECTED_CONTENT")] + EnableProtectedContent = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_USE_PMP_FOR_ALL_CONTENT")] + UsePmpForAllContent = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_USE_UNPROTECTED_PMP")] + UseUnprotectedPmp = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineReady.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineReady.gen.cs new file mode 100644 index 0000000000..2f1ddb3fb8 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineReady.gen.cs @@ -0,0 +1,26 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_READY")] + public enum MediaEngineReady : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_READY_HAVE_NOTHING")] + Nothing = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_READY_HAVE_METADATA")] + Metadata = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_READY_HAVE_CURRENT_DATA")] + CurrentData = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_READY_HAVE_FUTURE_DATA")] + FutureData = 0x3, + [NativeName("Name", "MF_MEDIA_ENGINE_READY_HAVE_ENOUGH_DATA")] + EnoughData = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineS3DPackingMode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineS3DPackingMode.gen.cs new file mode 100644 index 0000000000..d9a566c1a7 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineS3DPackingMode.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_S3D_PACKING_MODE")] + public enum MediaEngineS3DPackingMode : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_S3D_PACKING_MODE_NONE")] + None = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_S3D_PACKING_MODE_SIDE_BY_SIDE")] + SideBySide = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_S3D_PACKING_MODE_TOP_BOTTOM")] + TopBottom = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineSeekMode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineSeekMode.gen.cs new file mode 100644 index 0000000000..ccd0312315 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineSeekMode.gen.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_SEEK_MODE")] + public enum MediaEngineSeekMode : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_SEEK_MODE_NORMAL")] + Normal = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_SEEK_MODE_APPROXIMATE")] + Approximate = 0x1, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineStatistic.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineStatistic.gen.cs new file mode 100644 index 0000000000..4cfe59b881 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineStatistic.gen.cs @@ -0,0 +1,32 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC")] + public enum MediaEngineStatistic : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_FRAMES_RENDERED")] + FramesRendered = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_FRAMES_DROPPED")] + FramesDropped = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_BYTES_DOWNLOADED")] + BytesDownloaded = 0x2, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_BUFFER_PROGRESS")] + BufferProgress = 0x3, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_FRAMES_PER_SECOND")] + FramesPerSecond = 0x4, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_PLAYBACK_JITTER")] + PlaybackJitter = 0x5, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_FRAMES_CORRUPTED")] + FramesCorrupted = 0x6, + [NativeName("Name", "MF_MEDIA_ENGINE_STATISTIC_TOTAL_FRAME_DELAY")] + TotalFrameDelay = 0x7, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineStreamtypeFailed.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineStreamtypeFailed.gen.cs new file mode 100644 index 0000000000..2f926811df --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediaEngineStreamtypeFailed.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIA_ENGINE_STREAMTYPE_FAILED")] + public enum MediaEngineStreamTypeFailed : int + { + [NativeName("Name", "MF_MEDIA_ENGINE_STREAMTYPE_FAILED_UNKNOWN")] + Unknown = 0x0, + [NativeName("Name", "MF_MEDIA_ENGINE_STREAMTYPE_FAILED_AUDIO")] + Audio = 0x1, + [NativeName("Name", "MF_MEDIA_ENGINE_STREAMTYPE_FAILED_VIDEO")] + Video = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediakeysRequirement.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediakeysRequirement.gen.cs new file mode 100644 index 0000000000..5a7bbf05f5 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MediakeysRequirement.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MEDIAKEYS_REQUIREMENT")] + public enum MediaKeysRequirement : int + { + [NativeName("Name", "MF_MEDIAKEYS_REQUIREMENT_REQUIRED")] + Required = 0x1, + [NativeName("Name", "MF_MEDIAKEYS_REQUIREMENT_OPTIONAL")] + Optional = 0x2, + [NativeName("Name", "MF_MEDIAKEYS_REQUIREMENT_NOT_ALLOWED")] + NotAllowed = 0x3, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseAppendMode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseAppendMode.gen.cs new file mode 100644 index 0000000000..3c553d9db3 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseAppendMode.gen.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MSE_APPEND_MODE")] + public enum MseAppendMode : int + { + [NativeName("Name", "MF_MSE_APPEND_MODE_SEGMENTS")] + Segments = 0x0, + [NativeName("Name", "MF_MSE_APPEND_MODE_SEQUENCE")] + Sequence = 0x1, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseError.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseError.gen.cs new file mode 100644 index 0000000000..e32e16ffab --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseError.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MSE_ERROR")] + public enum MseError : int + { + [NativeName("Name", "MF_MSE_ERROR_NOERROR")] + Noerror = 0x0, + [NativeName("Name", "MF_MSE_ERROR_NETWORK")] + Network = 0x1, + [NativeName("Name", "MF_MSE_ERROR_DECODE")] + Decode = 0x2, + [NativeName("Name", "MF_MSE_ERROR_UNKNOWN_ERROR")] + UnknownError = 0x3, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseOpusSupportType.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseOpusSupportType.gen.cs new file mode 100644 index 0000000000..466490da7f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseOpusSupportType.gen.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MSE_OPUS_SUPPORT_TYPE")] + public enum MseOpusSupportType : int + { + [NativeName("Name", "MF_MSE_OPUS_SUPPORT_ON")] + On = 0x0, + [NativeName("Name", "MF_MSE_OPUS_SUPPORT_OFF")] + Off = 0x1, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseReady.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseReady.gen.cs new file mode 100644 index 0000000000..cec2cb3069 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseReady.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MSE_READY")] + public enum MseReady : int + { + [NativeName("Name", "MF_MSE_READY_CLOSED")] + Closed = 0x1, + [NativeName("Name", "MF_MSE_READY_OPEN")] + Open = 0x2, + [NativeName("Name", "MF_MSE_READY_ENDED")] + Ended = 0x3, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseVP9SupportType.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseVP9SupportType.gen.cs new file mode 100644 index 0000000000..6b208622a5 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/MseVP9SupportType.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_MSE_VP9_SUPPORT_TYPE")] + public enum MseVP9SupportType : int + { + [NativeName("Name", "MF_MSE_VP9_SUPPORT_DEFAULT")] + Default = 0x0, + [NativeName("Name", "MF_MSE_VP9_SUPPORT_ON")] + On = 0x1, + [NativeName("Name", "MF_MSE_VP9_SUPPORT_OFF")] + Off = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextAlignment.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextAlignment.gen.cs new file mode 100644 index 0000000000..271c5aa028 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextAlignment.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_ALIGNMENT")] + public enum TimedTextAlignment : int + { + [NativeName("Name", "MF_TIMED_TEXT_ALIGNMENT_START")] + Start = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_ALIGNMENT_END")] + End = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_ALIGNMENT_CENTER")] + Center = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextBoutenPosition.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextBoutenPosition.gen.cs new file mode 100644 index 0000000000..ee0017d867 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextBoutenPosition.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_POSITION")] + public enum TimedTextBoutenPosition : int + { + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_POSITION_BEFORE")] + Before = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_POSITION_AFTER")] + After = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_POSITION_OUTSIDE")] + Outside = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextBoutenType.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextBoutenType.gen.cs new file mode 100644 index 0000000000..d77c924f26 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextBoutenType.gen.cs @@ -0,0 +1,32 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE")] + public enum TimedTextBoutenType : int + { + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_NONE")] + None = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_AUTO")] + Auto = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_FILLEDCIRCLE")] + Filledcircle = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_OPENCIRCLE")] + Opencircle = 0x3, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_FILLEDDOT")] + Filleddot = 0x4, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_OPENDOT")] + Opendot = 0x5, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_FILLEDSESAME")] + Filledsesame = 0x6, + [NativeName("Name", "MF_TIMED_TEXT_BOUTEN_TYPE_OPENSESAME")] + Opensesame = 0x7, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextCueEvent.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextCueEvent.gen.cs new file mode 100644 index 0000000000..7a5e050c86 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextCueEvent.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_CUE_EVENT")] + public enum TimedTextCueEvent : int + { + [NativeName("Name", "MF_TIMED_TEXT_CUE_EVENT_ACTIVE")] + Active = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_CUE_EVENT_INACTIVE")] + Inactive = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_CUE_EVENT_CLEAR")] + Clear = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextDecoration.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextDecoration.gen.cs new file mode 100644 index 0000000000..3758546ab6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextDecoration.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Flags] + [NativeName("Name", "MF_TIMED_TEXT_DECORATION")] + public enum TimedTextDecoration : int + { + [NativeName("Name", "MF_TIMED_TEXT_DECORATION_NONE")] + None = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_DECORATION_UNDERLINE")] + Underline = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_DECORATION_LINE_THROUGH")] + LineThrough = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_DECORATION_OVERLINE")] + Overline = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextDisplayAlignment.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextDisplayAlignment.gen.cs new file mode 100644 index 0000000000..bbba4e0bd2 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextDisplayAlignment.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_DISPLAY_ALIGNMENT")] + public enum TimedTextDisplayAlignment : int + { + [NativeName("Name", "MF_TIMED_TEXT_DISPLAY_ALIGNMENT_BEFORE")] + Before = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_DISPLAY_ALIGNMENT_AFTER")] + After = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_DISPLAY_ALIGNMENT_CENTER")] + Center = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextErrorCode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextErrorCode.gen.cs new file mode 100644 index 0000000000..5f9a0b14fc --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextErrorCode.gen.cs @@ -0,0 +1,26 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_ERROR_CODE")] + public enum TimedTextErrorCode : int + { + [NativeName("Name", "MF_TIMED_TEXT_ERROR_CODE_NOERROR")] + Noerror = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_ERROR_CODE_FATAL")] + Fatal = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_ERROR_CODE_DATA_FORMAT")] + DataFormat = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_ERROR_CODE_NETWORK")] + Network = 0x3, + [NativeName("Name", "MF_TIMED_TEXT_ERROR_CODE_INTERNAL")] + Internal = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextFontStyle.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextFontStyle.gen.cs new file mode 100644 index 0000000000..8ef2f87ff6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextFontStyle.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_FONT_STYLE")] + public enum TimedTextFontStyle : int + { + [NativeName("Name", "MF_TIMED_TEXT_FONT_STYLE_NORMAL")] + Normal = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_FONT_STYLE_OBLIQUE")] + Oblique = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_FONT_STYLE_ITALIC")] + Italic = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyAlign.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyAlign.gen.cs new file mode 100644 index 0000000000..f8f776f834 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyAlign.gen.cs @@ -0,0 +1,28 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN")] + public enum TimedTextRubyAlign : int + { + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN_CENTER")] + Center = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN_START")] + Start = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN_END")] + End = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN_SPACEAROUND")] + Spacearound = 0x3, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN_SPACEBETWEEN")] + Spacebetween = 0x4, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_ALIGN_WITHBASE")] + Withbase = 0x5, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyPosition.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyPosition.gen.cs new file mode 100644 index 0000000000..303dc514a7 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyPosition.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_RUBY_POSITION")] + public enum TimedTextRubyPosition : int + { + [NativeName("Name", "MF_TIMED_TEXT_RUBY_POSITION_BEFORE")] + Before = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_POSITION_AFTER")] + After = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_POSITION_OUTSIDE")] + Outside = 0x2, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyReserve.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyReserve.gen.cs new file mode 100644 index 0000000000..52c7dfa941 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextRubyReserve.gen.cs @@ -0,0 +1,26 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_RUBY_RESERVE")] + public enum TimedTextRubyReserve : int + { + [NativeName("Name", "MF_TIMED_TEXT_RUBY_RESERVE_NONE")] + None = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_RESERVE_BEFORE")] + Before = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_RESERVE_AFTER")] + After = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_RESERVE_BOTH")] + Both = 0x3, + [NativeName("Name", "MF_TIMED_TEXT_RUBY_RESERVE_OUTSIDE")] + Outside = 0x4, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextScrollMode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextScrollMode.gen.cs new file mode 100644 index 0000000000..8a1584cc18 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextScrollMode.gen.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_SCROLL_MODE")] + public enum TimedTextScrollMode : int + { + [NativeName("Name", "MF_TIMED_TEXT_SCROLL_MODE_POP_ON")] + PopOn = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_SCROLL_MODE_ROLL_UP")] + RollUp = 0x1, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextTrackKind.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextTrackKind.gen.cs new file mode 100644 index 0000000000..d1bd5fed2a --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextTrackKind.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_TRACK_KIND")] + public enum TimedTextTrackKind : int + { + [NativeName("Name", "MF_TIMED_TEXT_TRACK_KIND_UNKNOWN")] + Unknown = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_TRACK_KIND_SUBTITLES")] + Subtitles = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_TRACK_KIND_CAPTIONS")] + Captions = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_TRACK_KIND_METADATA")] + Metadata = 0x3, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextTrackReadyState.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextTrackReadyState.gen.cs new file mode 100644 index 0000000000..46244877a6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextTrackReadyState.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_TRACK_READY_STATE")] + public enum TimedTextTrackReadyState : int + { + [NativeName("Name", "MF_TIMED_TEXT_TRACK_READY_STATE_NONE")] + None = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_TRACK_READY_STATE_LOADING")] + Loading = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_TRACK_READY_STATE_LOADED")] + Loaded = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_TRACK_READY_STATE_ERROR")] + Error = 0x3, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextUnitType.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextUnitType.gen.cs new file mode 100644 index 0000000000..f487e7fae2 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextUnitType.gen.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_UNIT_TYPE")] + public enum TimedTextUnitType : int + { + [NativeName("Name", "MF_TIMED_TEXT_UNIT_TYPE_PIXELS")] + Pixels = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_UNIT_TYPE_PERCENTAGE")] + Percentage = 0x1, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextWritingMode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextWritingMode.gen.cs new file mode 100644 index 0000000000..95f5fdb975 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Enums/TimedTextWritingMode.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE")] + public enum TimedTextWritingMode : int + { + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_LRTB")] + Lrtb = 0x0, + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_RLTB")] + Rltb = 0x1, + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_TBRL")] + Tbrl = 0x2, + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_TBLR")] + Tblr = 0x3, + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_LR")] + LR = 0x4, + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_RL")] + RL = 0x5, + [NativeName("Name", "MF_TIMED_TEXT_WRITING_MODE_TB")] + TB = 0x6, + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/MediaFoundation.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/MediaFoundation.gen.cs new file mode 100644 index 0000000000..da9bbb80b3 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/MediaFoundation.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + public unsafe partial class MediaFoundation + { + [NativeName("Type", "unsigned long long")] + [NativeName("Name", "MF_INVALID_PRESENTATION_TIME")] + public const ulong InvalidPresentationTime = unchecked((ulong) 0x8000000000000000); + + } +} + diff --git a/src/Microsoft/Silk.NET.MediaFoundation/MediaFoundationLibraryNameContainer.cs b/src/Microsoft/Silk.NET.MediaFoundation/MediaFoundationLibraryNameContainer.cs new file mode 100644 index 0000000000..300459338f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/MediaFoundationLibraryNameContainer.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.Core.Loader; + +namespace Silk.NET.MediaFoundation +{ + /// + /// Contains the library name of MediaFoundation. + /// + internal class MediaFoundationLibraryNameContainer : SearchPathContainer + { + /// + public override string[] Linux => new[] { "libMediaFoundation.so" }; + + /// + public override string[] MacOS => new[] { "libMediaFoundation.dylib" }; + + /// + public override string[] Android => new[] { "libMediaFoundation.so" }; + + /// + public override string[] IOS => new[] { "__Internal" }; + + /// + public override string[] Windows64 => new[] { "MediaFoundation.dll" }; + + /// + public override string[] Windows86 => new[] { "MediaFoundation.dll" }; + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Silk.NET.MediaFoundation.csproj b/src/Microsoft/Silk.NET.MediaFoundation/Silk.NET.MediaFoundation.csproj new file mode 100644 index 0000000000..4428e8ae81 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Silk.NET.MediaFoundation.csproj @@ -0,0 +1,13 @@ + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 + true + 10 + + + + + + + diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/AudioSourceProviderVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/AudioSourceProviderVtblExtensions.gen.cs new file mode 100644 index 0000000000..52f5f982d7 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/AudioSourceProviderVtblExtensions.gen.cs @@ -0,0 +1,193 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class AudioSourceProviderVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, uint* pdwChannelCount, float* pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCount, pInterleavedAudioData); + return ret; + } + + /// To be documented. + public static unsafe int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, uint* pdwChannelCount, ref float pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (float* pInterleavedAudioDataPtr = &pInterleavedAudioData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCount, pInterleavedAudioDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, ref uint pdwChannelCount, float* pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pdwChannelCountPtr = &pdwChannelCount) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCountPtr, pInterleavedAudioData); + } + return ret; + } + + /// To be documented. + public static int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, ref uint pdwChannelCount, ref float pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pdwChannelCountPtr = &pdwChannelCount) + { + fixed (float* pInterleavedAudioDataPtr = &pInterleavedAudioData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCountPtr, pInterleavedAudioDataPtr); + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, uint* pdwChannelCount, Span pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->ProvideInput(dwSampleCount, pdwChannelCount, ref pInterleavedAudioData.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, Span pdwChannelCount, float* pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->ProvideInput(dwSampleCount, ref pdwChannelCount.GetPinnableReference(), pInterleavedAudioData); + } + + /// To be documented. + public static int ProvideInput(this ComPtr thisVtbl, uint dwSampleCount, Span pdwChannelCount, Span pInterleavedAudioData) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->ProvideInput(dwSampleCount, ref pdwChannelCount.GetPinnableReference(), ref pInterleavedAudioData.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IAudioSourceProvider.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IAudioSourceProvider.gen.cs new file mode 100644 index 0000000000..6b8b6c653d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IAudioSourceProvider.gen.cs @@ -0,0 +1,180 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("ebbaf249-afc2-4582-91c6-b60df2e84954")] + [NativeName("Name", "IAudioSourceProvider")] + public unsafe partial struct IAudioSourceProvider : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("ebbaf249-afc2-4582-91c6-b60df2e84954"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IAudioSourceProvider val) + => Unsafe.As(ref val); + + public IAudioSourceProvider + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int ProvideInput(uint dwSampleCount, uint* pdwChannelCount, float* pInterleavedAudioData) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCount, pInterleavedAudioData); + return ret; + } + + /// To be documented. + public readonly unsafe int ProvideInput(uint dwSampleCount, uint* pdwChannelCount, ref float pInterleavedAudioData) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (float* pInterleavedAudioDataPtr = &pInterleavedAudioData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCount, pInterleavedAudioDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int ProvideInput(uint dwSampleCount, ref uint pdwChannelCount, float* pInterleavedAudioData) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pdwChannelCountPtr = &pdwChannelCount) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCountPtr, pInterleavedAudioData); + } + return ret; + } + + /// To be documented. + public readonly int ProvideInput(uint dwSampleCount, ref uint pdwChannelCount, ref float pInterleavedAudioData) + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pdwChannelCountPtr = &pdwChannelCount) + { + fixed (float* pInterleavedAudioDataPtr = &pInterleavedAudioData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwSampleCount, pdwChannelCountPtr, pInterleavedAudioDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IAudioSourceProvider*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFBufferListNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFBufferListNotify.gen.cs new file mode 100644 index 0000000000..b8080d1c66 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFBufferListNotify.gen.cs @@ -0,0 +1,146 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("24cd47f7-81d8-4785-adb2-af697a963cd2")] + [NativeName("Name", "IMFBufferListNotify")] + public unsafe partial struct IMFBufferListNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("24cd47f7-81d8-4785-adb2-af697a963cd2"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFBufferListNotify val) + => Unsafe.As(ref val); + + public IMFBufferListNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly void OnAddSourceBuffer() + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + } + + /// To be documented. + public readonly void OnRemoveSourceBuffer() + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFBufferListNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFCdmSuspendNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFCdmSuspendNotify.gen.cs new file mode 100644 index 0000000000..8c1230e87e --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFCdmSuspendNotify.gen.cs @@ -0,0 +1,150 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("7a5645d2-43bd-47fd-87b7-dcd24cc7d692")] + [NativeName("Name", "IMFCdmSuspendNotify")] + public unsafe partial struct IMFCdmSuspendNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("7a5645d2-43bd-47fd-87b7-dcd24cc7d692"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFCdmSuspendNotify val) + => Unsafe.As(ref val); + + public IMFCdmSuspendNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly int Begin() + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly int End() + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFCdmSuspendNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFExtendedDRMTypeSupport.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFExtendedDRMTypeSupport.gen.cs new file mode 100644 index 0000000000..23e8dc3572 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFExtendedDRMTypeSupport.gen.cs @@ -0,0 +1,381 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("332ec562-3758-468d-a784-e38f23552128")] + [NativeName("Name", "IMFExtendedDRMTypeSupport")] + public unsafe partial struct IMFExtendedDRMTypeSupport : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("332ec562-3758-468d-a784-e38f23552128"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFExtendedDRMTypeSupport val) + => Unsafe.As(ref val); + + public IMFExtendedDRMTypeSupport + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(char* type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystem, pAnswer); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(char* type, char* keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystem, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(char* type, ref char keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswer); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(char* type, ref char keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswer); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswerPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(ref char type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswer); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(ref char type, char* keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(ref char type, ref char keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + } + } + return ret; + } + + /// To be documented. + public readonly int IsTypeSupportedEx(ref char type, ref char keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx(ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly int IsTypeSupportedEx(ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswerPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int IsTypeSupportedEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupportedEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int IsTypeSupportedEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFExtendedDRMTypeSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFHDCPStatus.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFHDCPStatus.gen.cs new file mode 100644 index 0000000000..68b08665d7 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFHDCPStatus.gen.cs @@ -0,0 +1,189 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("de400f54-5bf1-40cf-8964-0bea136b1e3d")] + [NativeName("Name", "IMFHDCPStatus")] + public unsafe partial struct IMFHDCPStatus : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("de400f54-5bf1-40cf-8964-0bea136b1e3d"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFHDCPStatus val) + => Unsafe.As(ref val); + + public IMFHDCPStatus + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int Query(HdcpStatus* pStatus, int* pfStatus) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pfStatus); + return ret; + } + + /// To be documented. + public readonly unsafe int Query(HdcpStatus* pStatus, ref int pfStatus) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pfStatusPtr = &pfStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pfStatusPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int Query(ref HdcpStatus pStatus, int* pfStatus) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (HdcpStatus* pStatusPtr = &pStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pfStatus); + } + return ret; + } + + /// To be documented. + public readonly int Query(ref HdcpStatus pStatus, ref int pfStatus) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (HdcpStatus* pStatusPtr = &pStatus) + { + fixed (int* pfStatusPtr = &pfStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pfStatusPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int Set(HdcpStatus status) + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, status); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFHDCPStatus*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngine.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngine.gen.cs new file mode 100644 index 0000000000..1e0828411f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngine.gen.cs @@ -0,0 +1,1106 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("98a1b0bb-03eb-4935-ae7c-93c1fa0e1c93")] + [NativeName("Name", "IMFMediaEngine")] + public unsafe partial struct IMFMediaEngine : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("98a1b0bb-03eb-4935-ae7c-93c1fa0e1c93"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngine val) + => Unsafe.As(ref val); + + public IMFMediaEngine + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(IMFMediaError** ppError) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppError); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ref IMFMediaError* ppError) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetErrorCode(MediaEngineError error) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, error); + return ret; + } + + /// To be documented. + public readonly unsafe int SetSourceElements(IMFMediaEngineSrcElements* pSrcElements) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElements); + return ret; + } + + /// To be documented. + public readonly int SetSourceElements(ref IMFMediaEngineSrcElements pSrcElements) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaEngineSrcElements* pSrcElementsPtr = &pSrcElements) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElementsPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetSource(char* pUrl) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrl); + return ret; + } + + /// To be documented. + public readonly int SetSource(ref char pUrl) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pUrlPtr = &pUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetSource([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pUrl) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pUrlPtr = (byte*) SilkMarshal.StringToPtr(pUrl, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + SilkMarshal.Free((nint)pUrlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCurrentSource(char** ppUrl) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrl); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCurrentSource(ref char* ppUrl) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** ppUrlPtr = &ppUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrlPtr); + } + return ret; + } + + /// To be documented. + public readonly ushort GetNetworkState() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly MediaEnginePreload GetPreload() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + MediaEnginePreload ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + return ret; + } + + /// To be documented. + public readonly int SetPreload(MediaEnginePreload Preload) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, Preload); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBuffered(IMFMediaTimeRange** ppBuffered) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBuffered); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBuffered(ref IMFMediaTimeRange* ppBuffered) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppBufferedPtr = &ppBuffered) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBufferedPtr); + } + return ret; + } + + /// To be documented. + public readonly int Load() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(char* type, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswer); + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(char* type, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(ref char type, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + } + return ret; + } + + /// To be documented. + public readonly int CanPlayType(ref char type, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int CanPlayType([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly ushort GetReadyState() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsSeeking() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this); + return ret; + } + + /// To be documented. + public readonly double GetCurrentTime() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[16])(@this); + return ret; + } + + /// To be documented. + public readonly int SetCurrentTime(double seekTime) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[17])(@this, seekTime); + return ret; + } + + /// To be documented. + public readonly double GetStartTime() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[18])(@this); + return ret; + } + + /// To be documented. + public readonly double GetDuration() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[19])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsPaused() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[20])(@this); + return ret; + } + + /// To be documented. + public readonly double GetDefaultPlaybackRate() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[21])(@this); + return ret; + } + + /// To be documented. + public readonly int SetDefaultPlaybackRate(double Rate) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[22])(@this, Rate); + return ret; + } + + /// To be documented. + public readonly double GetPlaybackRate() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[23])(@this); + return ret; + } + + /// To be documented. + public readonly int SetPlaybackRate(double Rate) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[24])(@this, Rate); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPlayed(IMFMediaTimeRange** ppPlayed) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayed); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPlayed(ref IMFMediaTimeRange* ppPlayed) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppPlayedPtr = &ppPlayed) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayedPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSeekable(IMFMediaTimeRange** ppSeekable) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekable); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSeekable(ref IMFMediaTimeRange* ppSeekable) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppSeekablePtr = &ppSeekable) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekablePtr); + } + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsEnded() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[27])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetAutoPlay() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[28])(@this); + return ret; + } + + /// To be documented. + public readonly int SetAutoPlay(Silk.NET.Core.Bool32 AutoPlay) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[29])(@this, AutoPlay); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetLoop() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[30])(@this); + return ret; + } + + /// To be documented. + public readonly int SetLoop(Silk.NET.Core.Bool32 Loop) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[31])(@this, Loop); + return ret; + } + + /// To be documented. + public readonly int Play() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[32])(@this); + return ret; + } + + /// To be documented. + public readonly int Pause() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[33])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetMuted() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[34])(@this); + return ret; + } + + /// To be documented. + public readonly int SetMuted(Silk.NET.Core.Bool32 Muted) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[35])(@this, Muted); + return ret; + } + + /// To be documented. + public readonly double GetVolume() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[36])(@this); + return ret; + } + + /// To be documented. + public readonly int SetVolume(double Volume) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[37])(@this, Volume); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 HasVideo() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[38])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 HasAudio() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[39])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetNativeVideoSize(uint* cx, uint* cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cy); + return ret; + } + + /// To be documented. + public readonly unsafe int GetNativeVideoSize(uint* cx, ref uint cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetNativeVideoSize(ref uint cx, uint* cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public readonly int GetNativeVideoSize(ref uint cx, ref uint cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoAspectRatio(uint* cx, uint* cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cy); + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoAspectRatio(uint* cx, ref uint cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoAspectRatio(ref uint cx, uint* cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public readonly int GetVideoAspectRatio(ref uint cx, ref uint cy) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int Shutdown() + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[42])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClr); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr); + } + } + } + return ret; + } + + /// To be documented. + public readonly int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int OnVideoStreamTick(long* pPts) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPts); + return ret; + } + + /// To be documented. + public readonly int OnVideoStreamTick(ref long pPts) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (long* pPtsPtr = &pPts) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPtsPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetError(ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public readonly int SetSourceElements(ComPtr pSrcElements) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->SetSourceElements((IMFMediaEngineSrcElements*) pSrcElements.Handle); + } + + /// To be documented. + public readonly int GetCurrentSource(string[] ppUrlSa) + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var ppUrl = (char**) SilkMarshal.StringArrayToPtr(ppUrlSa); + var ret = @this->GetCurrentSource(ppUrl); + SilkMarshal.CopyPtrToStringArray((nint) ppUrl, ppUrlSa); + SilkMarshal.Free((nint) ppUrl); + return ret; + } + + /// To be documented. + public readonly int GetBuffered(ref ComPtr ppBuffered) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetBuffered((IMFMediaTimeRange**) ppBuffered.GetAddressOf()); + } + + /// To be documented. + public readonly int GetPlayed(ref ComPtr ppPlayed) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetPlayed((IMFMediaTimeRange**) ppPlayed.GetAddressOf()); + } + + /// To be documented. + public readonly int GetSeekable(ref ComPtr ppSeekable) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSeekable((IMFMediaTimeRange**) ppSeekable.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public readonly int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngine*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineAudioEndpointId.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineAudioEndpointId.gen.cs new file mode 100644 index 0000000000..739c31dbef --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineAudioEndpointId.gen.cs @@ -0,0 +1,197 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("7a3bac98-0e76-49fb-8c20-8a86fd98eaf2")] + [NativeName("Name", "IMFMediaEngineAudioEndpointId")] + public unsafe partial struct IMFMediaEngineAudioEndpointId : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("7a3bac98-0e76-49fb-8c20-8a86fd98eaf2"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineAudioEndpointId val) + => Unsafe.As(ref val); + + public IMFMediaEngineAudioEndpointId + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int SetAudioEndpointId([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* pszEndpointId) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pszEndpointId); + return ret; + } + + /// To be documented. + public readonly int SetAudioEndpointId([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char pszEndpointId) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pszEndpointIdPtr = &pszEndpointId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pszEndpointIdPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetAudioEndpointId([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pszEndpointId) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pszEndpointIdPtr = (byte*) SilkMarshal.StringToPtr(pszEndpointId, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pszEndpointIdPtr); + SilkMarshal.Free((nint)pszEndpointIdPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetAudioEndpointId(char** ppszEndpointId) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppszEndpointId); + return ret; + } + + /// To be documented. + public readonly unsafe int GetAudioEndpointId(ref char* ppszEndpointId) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** ppszEndpointIdPtr = &ppszEndpointId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppszEndpointIdPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetAudioEndpointId(string[] ppszEndpointIdSa) + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var ppszEndpointId = (char**) SilkMarshal.StringArrayToPtr(ppszEndpointIdSa); + var ret = @this->GetAudioEndpointId(ppszEndpointId); + SilkMarshal.CopyPtrToStringArray((nint) ppszEndpointId, ppszEndpointIdSa); + SilkMarshal.Free((nint) ppszEndpointId); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineAudioEndpointId*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory.gen.cs new file mode 100644 index 0000000000..40b96ce2d5 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory.gen.cs @@ -0,0 +1,254 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("4d645ace-26aa-4688-9be1-df3516990b93")] + [NativeName("Name", "IMFMediaEngineClassFactory")] + public unsafe partial struct IMFMediaEngineClassFactory : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("4d645ace-26aa-4688-9be1-df3516990b93"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineClassFactory val) + => Unsafe.As(ref val); + + public IMFMediaEngineClassFactory + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, IMFAttributes* pAttr, IMFMediaEngine** ppPlayer) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayer); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, IMFAttributes* pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayerPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, ref IMFAttributes pAttr, IMFMediaEngine** ppPlayer) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayer); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, ref IMFAttributes pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateTimeRange(IMFMediaTimeRange** ppTimeRange) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRange); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateTimeRange(ref IMFMediaTimeRange* ppTimeRange) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppTimeRangePtr = &ppTimeRange) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRangePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateError(IMFMediaError** ppError) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppError); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateError(ref IMFMediaError* ppError) + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, IMFAttributes* pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateInstance(dwFlags, pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateInstance(uint dwFlags, ref IMFAttributes pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateInstance(dwFlags, ref pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateTimeRange(ref ComPtr ppTimeRange) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateTimeRange((IMFMediaTimeRange**) ppTimeRange.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateError(ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory2.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory2.gen.cs new file mode 100644 index 0000000000..dd874649cc --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory2.gen.cs @@ -0,0 +1,1185 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("09083cef-867f-4bf6-8776-dee3a7b42fca")] + [NativeName("Name", "IMFMediaEngineClassFactory2")] + public unsafe partial struct IMFMediaEngineClassFactory2 : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("09083cef-867f-4bf6-8776-dee3a7b42fca"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineClassFactory2 val) + => Unsafe.As(ref val); + + public IMFMediaEngineClassFactory2 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePath, ppKeysPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, ref defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2(ref char keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys2([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory3.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory3.gen.cs new file mode 100644 index 0000000000..52280ffa93 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory3.gen.cs @@ -0,0 +1,344 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("3787614f-65f7-4003-b673-ead8293a0e60")] + [NativeName("Name", "IMFMediaEngineClassFactory3")] + public unsafe partial struct IMFMediaEngineClassFactory3 : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("3787614f-65f7-4003-b673-ead8293a0e60"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineClassFactory3 val) + => Unsafe.As(ref val); + + public IMFMediaEngineClassFactory3 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(char* keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArray, uSize, ppKeyAccess); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(char* keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArray, uSize, ppKeyAccessPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(char* keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccess); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(char* keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccessPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(ref char keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccess); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(ref char keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccessPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(ref char keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccess); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(ref char keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccessPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccess); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccessPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccess); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccessPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(char* keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(char* keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ref ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(ref char keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem, ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess(ref char keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem, ref ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeySystemAccess([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ref ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory3*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory4.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory4.gen.cs new file mode 100644 index 0000000000..a1efdd9fd2 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactory4.gen.cs @@ -0,0 +1,350 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("fbe256c1-43cf-4a9b-8cb8-ce8632a34186")] + [NativeName("Name", "IMFMediaEngineClassFactory4")] + public unsafe partial struct IMFMediaEngineClassFactory4 : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("fbe256c1-43cf-4a9b-8cb8-ce8632a34186"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineClassFactory4 val) + => Unsafe.As(ref val); + + public IMFMediaEngineClassFactory4 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObject); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObjectPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObject); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObjectPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObject); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObjectPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->CreateContentDecryptionModuleFactory(keySystem, SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->CreateContentDecryptionModuleFactory(in keySystem, SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->CreateContentDecryptionModuleFactory(keySystem, SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + /// To be documented. + public readonly unsafe ComPtr CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->CreateContentDecryptionModuleFactory(keySystem, out ComPtr silkRet)); + return silkRet; + } + + /// To be documented. + public readonly ComPtr CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->CreateContentDecryptionModuleFactory(in keySystem, out ComPtr silkRet)); + return silkRet; + } + + /// To be documented. + public readonly ComPtr CreateContentDecryptionModuleFactory([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactory4*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->CreateContentDecryptionModuleFactory(keySystem, out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactoryEx.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactoryEx.gen.cs new file mode 100644 index 0000000000..7fd58c3cc2 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineClassFactoryEx.gen.cs @@ -0,0 +1,891 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("c56156c6-ea5b-48a5-9df8-fbe035d0929e")] + [NativeName("Name", "IMFMediaEngineClassFactoryEx")] + public unsafe partial struct IMFMediaEngineClassFactoryEx : IComVtbl, IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("c56156c6-ea5b-48a5-9df8-fbe035d0929e"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator IMFMediaEngineClassFactory(IMFMediaEngineClassFactoryEx val) + => Unsafe.As(ref val); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineClassFactoryEx val) + => Unsafe.As(ref val); + + public IMFMediaEngineClassFactoryEx + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, IMFAttributes* pAttr, IMFMediaEngine** ppPlayer) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayer); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, IMFAttributes* pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayerPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, ref IMFAttributes pAttr, IMFMediaEngine** ppPlayer) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayer); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, ref IMFAttributes pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateTimeRange(IMFMediaTimeRange** ppTimeRange) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRange); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateTimeRange(ref IMFMediaTimeRange* ppTimeRange) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppTimeRangePtr = &ppTimeRange) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRangePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateError(IMFMediaError** ppError) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppError); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateError(ref IMFMediaError* ppError) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaSourceExtension(uint dwFlags, IMFAttributes* pAttr, IMFMediaSourceExtension** ppMSE) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttr, ppMSE); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaSourceExtension(uint dwFlags, IMFAttributes* pAttr, ref IMFMediaSourceExtension* ppMSE) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttr, ppMSEPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaSourceExtension(uint dwFlags, ref IMFAttributes pAttr, IMFMediaSourceExtension** ppMSE) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttrPtr, ppMSE); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaSourceExtension(uint dwFlags, ref IMFAttributes pAttr, ref IMFMediaSourceExtension* ppMSE) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttrPtr, ppMSEPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePath, ppKeys); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePath, ppKeysPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, ref char cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeys); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, ref char cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)cdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)cdmStorePathPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeys); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, ref char cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, ref char cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)cdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)cdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeys); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)cdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)cdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(char* type, char* keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystem, isSupported); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(char* type, char* keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystem, isSupportedPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(char* type, ref char keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupported); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(char* type, ref char keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupportedPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupported); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupportedPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(ref char type, char* keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupported); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(ref char type, char* keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupportedPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(ref char type, ref char keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + } + } + return ret; + } + + /// To be documented. + public readonly int IsTypeSupported(ref char type, ref char keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported(ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly int IsTypeSupported(ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupported); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupportedPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref int isSupported) + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateInstance(uint dwFlags, IMFAttributes* pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateInstance(dwFlags, pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateInstance(uint dwFlags, ref IMFAttributes pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateInstance(dwFlags, ref pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateTimeRange(ref ComPtr ppTimeRange) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateTimeRange((IMFMediaTimeRange**) ppTimeRange.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateError(ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaSourceExtension(uint dwFlags, IMFAttributes* pAttr, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaSourceExtension(dwFlags, pAttr, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaSourceExtension(uint dwFlags, ref IMFAttributes pAttr, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaSourceExtension(dwFlags, ref pAttr, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, char* cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, ref char cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref char keySystem, char* cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(ref keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys(ref char keySystem, ref char cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(ref keySystem, ref cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys(ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(ref keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineClassFactoryEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEME.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEME.gen.cs new file mode 100644 index 0000000000..ea17b7ff41 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEME.gen.cs @@ -0,0 +1,190 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("50dc93e4-ba4f-4275-ae66-83e836e57469")] + [NativeName("Name", "IMFMediaEngineEME")] + public unsafe partial struct IMFMediaEngineEME : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("50dc93e4-ba4f-4275-ae66-83e836e57469"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineEME val) + => Unsafe.As(ref val); + + public IMFMediaEngineEME + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeys(IMFMediaKeys** keys) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keys); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeys(ref IMFMediaKeys* keys) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeys** keysPtr = &keys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keysPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetMediaKeys(IMFMediaKeys* keys) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keys); + return ret; + } + + /// To be documented. + public readonly int SetMediaKeys(ref IMFMediaKeys keys) + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeys* keysPtr = &keys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keysPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetKeys(ref ComPtr keys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetKeys((IMFMediaKeys**) keys.GetAddressOf()); + } + + /// To be documented. + public readonly int SetMediaKeys(ComPtr keys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->SetMediaKeys((IMFMediaKeys*) keys.Handle); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineEME*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEMENotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEMENotify.gen.cs new file mode 100644 index 0000000000..eaf62fb440 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEMENotify.gen.cs @@ -0,0 +1,232 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("9e184d15-cdb7-4f86-b49e-566689f4a601")] + [NativeName("Name", "IMFMediaEngineEMENotify")] + public unsafe partial struct IMFMediaEngineEMENotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("9e184d15-cdb7-4f86-b49e-566689f4a601"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineEMENotify val) + => Unsafe.As(ref val); + + public IMFMediaEngineEMENotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, char* bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitData, cb, bstrInitDataType); + } + + /// To be documented. + public readonly unsafe void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, ref char bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* bstrInitDataTypePtr = &bstrInitDataType) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitData, cb, bstrInitDataTypePtr); + } + } + + /// To be documented. + public readonly unsafe void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var bstrInitDataTypePtr = (byte*) SilkMarshal.StringToPtr(bstrInitDataType, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitData, cb, bstrInitDataTypePtr); + SilkMarshal.Free((nint)bstrInitDataTypePtr); + } + + /// To be documented. + public readonly unsafe void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb, char* bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* pbInitDataPtr = &pbInitData) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataType); + } + } + + /// To be documented. + public readonly void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb, ref char bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* pbInitDataPtr = &pbInitData) + { + fixed (char* bstrInitDataTypePtr = &bstrInitDataType) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + } + } + } + + /// To be documented. + public readonly void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* pbInitDataPtr = &pbInitData) + { + var bstrInitDataTypePtr = (byte*) SilkMarshal.StringToPtr(bstrInitDataType, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + SilkMarshal.Free((nint)bstrInitDataTypePtr); + } + } + + /// To be documented. + public readonly unsafe void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, char* bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataType); + SilkMarshal.Free((nint)pbInitDataPtr); + } + + /// To be documented. + public readonly void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, ref char bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + fixed (char* bstrInitDataTypePtr = &bstrInitDataType) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + } + SilkMarshal.Free((nint)pbInitDataPtr); + } + + /// To be documented. + public readonly void Encrypted([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + var bstrInitDataTypePtr = (byte*) SilkMarshal.StringToPtr(bstrInitDataType, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + SilkMarshal.Free((nint)bstrInitDataTypePtr); + SilkMarshal.Free((nint)pbInitDataPtr); + } + + /// To be documented. + public readonly void WaitingForKey() + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineEMENotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEx.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEx.gen.cs new file mode 100644 index 0000000000..fc22ce8f69 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineEx.gen.cs @@ -0,0 +1,1867 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("83015ead-b1e6-40d0-a98a-37145ffe1ad1")] + [NativeName("Name", "IMFMediaEngineEx")] + public unsafe partial struct IMFMediaEngineEx : IComVtbl, IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("83015ead-b1e6-40d0-a98a-37145ffe1ad1"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator IMFMediaEngine(IMFMediaEngineEx val) + => Unsafe.As(ref val); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineEx val) + => Unsafe.As(ref val); + + public IMFMediaEngineEx + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(IMFMediaError** ppError) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppError); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ref IMFMediaError* ppError) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetErrorCode(MediaEngineError error) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, error); + return ret; + } + + /// To be documented. + public readonly unsafe int SetSourceElements(IMFMediaEngineSrcElements* pSrcElements) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElements); + return ret; + } + + /// To be documented. + public readonly int SetSourceElements(ref IMFMediaEngineSrcElements pSrcElements) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaEngineSrcElements* pSrcElementsPtr = &pSrcElements) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElementsPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetSource(char* pUrl) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrl); + return ret; + } + + /// To be documented. + public readonly int SetSource(ref char pUrl) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pUrlPtr = &pUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetSource([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pUrl) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pUrlPtr = (byte*) SilkMarshal.StringToPtr(pUrl, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + SilkMarshal.Free((nint)pUrlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCurrentSource(char** ppUrl) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrl); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCurrentSource(ref char* ppUrl) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** ppUrlPtr = &ppUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrlPtr); + } + return ret; + } + + /// To be documented. + public readonly ushort GetNetworkState() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly MediaEnginePreload GetPreload() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + MediaEnginePreload ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + return ret; + } + + /// To be documented. + public readonly int SetPreload(MediaEnginePreload Preload) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, Preload); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBuffered(IMFMediaTimeRange** ppBuffered) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBuffered); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBuffered(ref IMFMediaTimeRange* ppBuffered) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppBufferedPtr = &ppBuffered) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBufferedPtr); + } + return ret; + } + + /// To be documented. + public readonly int Load() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(char* type, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswer); + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(char* type, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(ref char type, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + } + return ret; + } + + /// To be documented. + public readonly int CanPlayType(ref char type, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly int CanPlayType([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly ushort GetReadyState() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsSeeking() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this); + return ret; + } + + /// To be documented. + public readonly double GetCurrentTime() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[16])(@this); + return ret; + } + + /// To be documented. + public readonly int SetCurrentTime(double seekTime) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[17])(@this, seekTime); + return ret; + } + + /// To be documented. + public readonly double GetStartTime() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[18])(@this); + return ret; + } + + /// To be documented. + public readonly double GetDuration() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[19])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsPaused() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[20])(@this); + return ret; + } + + /// To be documented. + public readonly double GetDefaultPlaybackRate() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[21])(@this); + return ret; + } + + /// To be documented. + public readonly int SetDefaultPlaybackRate(double Rate) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[22])(@this, Rate); + return ret; + } + + /// To be documented. + public readonly double GetPlaybackRate() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[23])(@this); + return ret; + } + + /// To be documented. + public readonly int SetPlaybackRate(double Rate) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[24])(@this, Rate); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPlayed(IMFMediaTimeRange** ppPlayed) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayed); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPlayed(ref IMFMediaTimeRange* ppPlayed) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppPlayedPtr = &ppPlayed) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayedPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSeekable(IMFMediaTimeRange** ppSeekable) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekable); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSeekable(ref IMFMediaTimeRange* ppSeekable) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppSeekablePtr = &ppSeekable) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekablePtr); + } + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsEnded() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[27])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetAutoPlay() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[28])(@this); + return ret; + } + + /// To be documented. + public readonly int SetAutoPlay(Silk.NET.Core.Bool32 AutoPlay) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[29])(@this, AutoPlay); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetLoop() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[30])(@this); + return ret; + } + + /// To be documented. + public readonly int SetLoop(Silk.NET.Core.Bool32 Loop) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[31])(@this, Loop); + return ret; + } + + /// To be documented. + public readonly int Play() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[32])(@this); + return ret; + } + + /// To be documented. + public readonly int Pause() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[33])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetMuted() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[34])(@this); + return ret; + } + + /// To be documented. + public readonly int SetMuted(Silk.NET.Core.Bool32 Muted) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[35])(@this, Muted); + return ret; + } + + /// To be documented. + public readonly double GetVolume() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[36])(@this); + return ret; + } + + /// To be documented. + public readonly int SetVolume(double Volume) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[37])(@this, Volume); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 HasVideo() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[38])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 HasAudio() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[39])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetNativeVideoSize(uint* cx, uint* cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cy); + return ret; + } + + /// To be documented. + public readonly unsafe int GetNativeVideoSize(uint* cx, ref uint cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetNativeVideoSize(ref uint cx, uint* cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public readonly int GetNativeVideoSize(ref uint cx, ref uint cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoAspectRatio(uint* cx, uint* cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cy); + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoAspectRatio(uint* cx, ref uint cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoAspectRatio(ref uint cx, uint* cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public readonly int GetVideoAspectRatio(ref uint cx, ref uint cy) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int Shutdown() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[42])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClr); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr); + } + } + } + return ret; + } + + /// To be documented. + public readonly int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int OnVideoStreamTick(long* pPts) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPts); + return ret; + } + + /// To be documented. + public readonly int OnVideoStreamTick(ref long pPts) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (long* pPtsPtr = &pPts) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPtsPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetSourceFromByteStream(IMFByteStream* pByteStream, char* pURL) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStream, pURL); + return ret; + } + + /// To be documented. + public readonly unsafe int SetSourceFromByteStream(IMFByteStream* pByteStream, ref char pURL) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStream, pURLPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetSourceFromByteStream(IMFByteStream* pByteStream, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStream, pURLPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int SetSourceFromByteStream(ref IMFByteStream pByteStream, char* pURL) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStreamPtr, pURL); + } + return ret; + } + + /// To be documented. + public readonly int SetSourceFromByteStream(ref IMFByteStream pByteStream, ref char pURL) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStreamPtr, pURLPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int SetSourceFromByteStream(ref IMFByteStream pByteStream, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStreamPtr, pURLPtr); + SilkMarshal.Free((nint)pURLPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetStatistics(MediaEngineStatistic StatisticID, tagPROPVARIANT* pStatistic) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[46])(@this, StatisticID, pStatistic); + return ret; + } + + /// To be documented. + public readonly int GetStatistics(MediaEngineStatistic StatisticID, ref tagPROPVARIANT pStatistic) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (tagPROPVARIANT* pStatisticPtr = &pStatistic) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[46])(@this, StatisticID, pStatisticPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDst, pBorderClr); + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDst, pBorderClrPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDstPtr, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDstPtr, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public readonly int UpdateVideoStream([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly double GetBalance() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[48])(@this); + return ret; + } + + /// To be documented. + public readonly int SetBalance(double balance) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[49])(@this, balance); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsPlaybackRateSupported(double rate) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[50])(@this, rate); + return ret; + } + + /// To be documented. + public readonly int FrameStep(Silk.NET.Core.Bool32 Forward) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[51])(@this, Forward); + return ret; + } + + /// To be documented. + public readonly unsafe int GetResourceCharacteristics(uint* pCharacteristics) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[52])(@this, pCharacteristics); + return ret; + } + + /// To be documented. + public readonly int GetResourceCharacteristics(ref uint pCharacteristics) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pCharacteristicsPtr = &pCharacteristics) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[52])(@this, pCharacteristicsPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPresentationAttribute(Guid* guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttribute, pvValue); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPresentationAttribute(Guid* guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttribute, pvValuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPresentationAttribute(ref Guid guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttributePtr, pvValue); + } + return ret; + } + + /// To be documented. + public readonly int GetPresentationAttribute(ref Guid guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttributePtr, pvValuePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetNumberOfStreams(uint* pdwStreamCount) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[54])(@this, pdwStreamCount); + return ret; + } + + /// To be documented. + public readonly int GetNumberOfStreams(ref uint pdwStreamCount) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pdwStreamCountPtr = &pdwStreamCount) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[54])(@this, pdwStreamCountPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetStreamAttribute(uint dwStreamIndex, Guid* guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttribute, pvValue); + return ret; + } + + /// To be documented. + public readonly unsafe int GetStreamAttribute(uint dwStreamIndex, Guid* guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttribute, pvValuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetStreamAttribute(uint dwStreamIndex, ref Guid guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttributePtr, pvValue); + } + return ret; + } + + /// To be documented. + public readonly int GetStreamAttribute(uint dwStreamIndex, ref Guid guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttributePtr, pvValuePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetStreamSelection(uint dwStreamIndex, int* pEnabled) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[56])(@this, dwStreamIndex, pEnabled); + return ret; + } + + /// To be documented. + public readonly int GetStreamSelection(uint dwStreamIndex, ref int pEnabled) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pEnabledPtr = &pEnabled) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[56])(@this, dwStreamIndex, pEnabledPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetStreamSelection(uint dwStreamIndex, Silk.NET.Core.Bool32 Enabled) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[57])(@this, dwStreamIndex, Enabled); + return ret; + } + + /// To be documented. + public readonly int ApplyStreamSelections() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[58])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int IsProtected(int* pProtected) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[59])(@this, pProtected); + return ret; + } + + /// To be documented. + public readonly int IsProtected(ref int pProtected) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pProtectedPtr = &pProtected) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[59])(@this, pProtectedPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int InsertVideoEffect(Silk.NET.Core.Native.IUnknown* pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[60])(@this, pEffect, fOptional); + return ret; + } + + /// To be documented. + public readonly int InsertVideoEffect(ref Silk.NET.Core.Native.IUnknown pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pEffectPtr = &pEffect) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[60])(@this, pEffectPtr, fOptional); + } + return ret; + } + + /// To be documented. + public readonly unsafe int InsertAudioEffect(Silk.NET.Core.Native.IUnknown* pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[61])(@this, pEffect, fOptional); + return ret; + } + + /// To be documented. + public readonly int InsertAudioEffect(ref Silk.NET.Core.Native.IUnknown pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pEffectPtr = &pEffect) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[61])(@this, pEffectPtr, fOptional); + } + return ret; + } + + /// To be documented. + public readonly int RemoveAllEffects() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[62])(@this); + return ret; + } + + /// To be documented. + public readonly int SetTimelineMarkerTimer(double timeToFire) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[63])(@this, timeToFire); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTimelineMarkerTimer(double* pTimeToFire) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[64])(@this, pTimeToFire); + return ret; + } + + /// To be documented. + public readonly int GetTimelineMarkerTimer(ref double pTimeToFire) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pTimeToFirePtr = &pTimeToFire) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[64])(@this, pTimeToFirePtr); + } + return ret; + } + + /// To be documented. + public readonly int CancelTimelineMarkerTimer() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[65])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsStereo3D() + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[66])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetStereo3DFramePackingMode(MediaEngineS3DPackingMode* packMode) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[67])(@this, packMode); + return ret; + } + + /// To be documented. + public readonly int GetStereo3DFramePackingMode(ref MediaEngineS3DPackingMode packMode) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineS3DPackingMode* packModePtr = &packMode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[67])(@this, packModePtr); + } + return ret; + } + + /// To be documented. + public readonly int SetStereo3DFramePackingMode(MediaEngineS3DPackingMode packMode) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[68])(@this, packMode); + return ret; + } + + /// To be documented. + public readonly unsafe int GetStereo3DRenderMode(_MF3DVideoOutputType* outputType) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[69])(@this, outputType); + return ret; + } + + /// To be documented. + public readonly int GetStereo3DRenderMode(ref _MF3DVideoOutputType outputType) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MF3DVideoOutputType* outputTypePtr = &outputType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[69])(@this, outputTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int SetStereo3DRenderMode(_MF3DVideoOutputType outputType) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[70])(@this, outputType); + return ret; + } + + /// To be documented. + public readonly int EnableWindowlessSwapchainMode(Silk.NET.Core.Bool32 fEnable) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[71])(@this, fEnable); + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoSwapchainHandle(void** phSwapchain) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[72])(@this, phSwapchain); + return ret; + } + + /// To be documented. + public readonly unsafe int GetVideoSwapchainHandle(ref void* phSwapchain) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** phSwapchainPtr = &phSwapchain) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[72])(@this, phSwapchainPtr); + } + return ret; + } + + /// To be documented. + public readonly int EnableHorizontalMirrorMode(Silk.NET.Core.Bool32 fEnable) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[73])(@this, fEnable); + return ret; + } + + /// To be documented. + public readonly unsafe int GetAudioStreamCategory(uint* pCategory) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[74])(@this, pCategory); + return ret; + } + + /// To be documented. + public readonly int GetAudioStreamCategory(ref uint pCategory) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pCategoryPtr = &pCategory) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[74])(@this, pCategoryPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetAudioStreamCategory(uint category) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[75])(@this, category); + return ret; + } + + /// To be documented. + public readonly unsafe int GetAudioEndpointRole(uint* pRole) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[76])(@this, pRole); + return ret; + } + + /// To be documented. + public readonly int GetAudioEndpointRole(ref uint pRole) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pRolePtr = &pRole) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[76])(@this, pRolePtr); + } + return ret; + } + + /// To be documented. + public readonly int SetAudioEndpointRole(uint role) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[77])(@this, role); + return ret; + } + + /// To be documented. + public readonly unsafe int GetRealTimeMode(int* pfEnabled) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[78])(@this, pfEnabled); + return ret; + } + + /// To be documented. + public readonly int GetRealTimeMode(ref int pfEnabled) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pfEnabledPtr = &pfEnabled) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[78])(@this, pfEnabledPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetRealTimeMode(Silk.NET.Core.Bool32 fEnable) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[79])(@this, fEnable); + return ret; + } + + /// To be documented. + public readonly int SetCurrentTimeEx(double seekTime, MediaEngineSeekMode seekMode) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[80])(@this, seekTime, seekMode); + return ret; + } + + /// To be documented. + public readonly int EnableTimeUpdateTimer(Silk.NET.Core.Bool32 fEnableTimer) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[81])(@this, fEnableTimer); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetError(ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public readonly int SetSourceElements(ComPtr pSrcElements) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->SetSourceElements((IMFMediaEngineSrcElements*) pSrcElements.Handle); + } + + /// To be documented. + public readonly int GetCurrentSource(string[] ppUrlSa) + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var ppUrl = (char**) SilkMarshal.StringArrayToPtr(ppUrlSa); + var ret = @this->GetCurrentSource(ppUrl); + SilkMarshal.CopyPtrToStringArray((nint) ppUrl, ppUrlSa); + SilkMarshal.Free((nint) ppUrl); + return ret; + } + + /// To be documented. + public readonly int GetBuffered(ref ComPtr ppBuffered) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetBuffered((IMFMediaTimeRange**) ppBuffered.GetAddressOf()); + } + + /// To be documented. + public readonly int GetPlayed(ref ComPtr ppPlayed) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetPlayed((IMFMediaTimeRange**) ppPlayed.GetAddressOf()); + } + + /// To be documented. + public readonly int GetSeekable(ref ComPtr ppSeekable) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSeekable((IMFMediaTimeRange**) ppSeekable.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public readonly int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public readonly int InsertVideoEffect(ComPtr pEffect, Silk.NET.Core.Bool32 fOptional) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->InsertVideoEffect((Silk.NET.Core.Native.IUnknown*) pEffect.Handle, fOptional); + } + + /// To be documented. + public readonly int InsertAudioEffect(ComPtr pEffect, Silk.NET.Core.Bool32 fOptional) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->InsertAudioEffect((Silk.NET.Core.Native.IUnknown*) pEffect.Handle, fOptional); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineExtension.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineExtension.gen.cs new file mode 100644 index 0000000000..ed98d5aedc --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineExtension.gen.cs @@ -0,0 +1,1386 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("2f69d622-20b5-41e9-afdf-89ced1dda04e")] + [NativeName("Name", "IMFMediaEngineExtension")] + public unsafe partial struct IMFMediaEngineExtension : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("2f69d622-20b5-41e9-afdf-89ced1dda04e"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineExtension val) + => Unsafe.As(ref val); + + public IMFMediaEngineExtension + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(Silk.NET.Core.Bool32 AudioOnly, char* MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeType, pAnswer); + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(Silk.NET.Core.Bool32 AudioOnly, char* MimeType, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeType, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(Silk.NET.Core.Bool32 AudioOnly, ref char MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* MimeTypePtr = &MimeType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswer); + } + return ret; + } + + /// To be documented. + public readonly int CanPlayType(Silk.NET.Core.Bool32 AudioOnly, ref char MimeType, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* MimeTypePtr = &MimeType) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CanPlayType(Silk.NET.Core.Bool32 AudioOnly, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var MimeTypePtr = (byte*) SilkMarshal.StringToPtr(MimeType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswer); + SilkMarshal.Free((nint)MimeTypePtr); + return ret; + } + + /// To be documented. + public readonly int CanPlayType(Silk.NET.Core.Bool32 AudioOnly, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string MimeType, ref MediaEngineCanPlay pAnswer) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var MimeTypePtr = (byte*) SilkMarshal.StringToPtr(MimeType, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswerPtr); + } + SilkMarshal.Free((nint)MimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkState); + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkState); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkState); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CancelObjectCreation(Silk.NET.Core.Native.IUnknown* pIUnknownCancelCookie) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pIUnknownCancelCookie); + return ret; + } + + /// To be documented. + public readonly int CancelObjectCreation(ref Silk.NET.Core.Native.IUnknown pIUnknownCancelCookie) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pIUnknownCancelCookiePtr = &pIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pIUnknownCancelCookiePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int EndCreateObject(IMFAsyncResult* pResult, Silk.NET.Core.Native.IUnknown** ppObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResult, ppObject); + return ret; + } + + /// To be documented. + public readonly unsafe int EndCreateObject(IMFAsyncResult* pResult, ref Silk.NET.Core.Native.IUnknown* ppObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppObjectPtr = &ppObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResult, ppObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int EndCreateObject(ref IMFAsyncResult pResult, Silk.NET.Core.Native.IUnknown** ppObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAsyncResult* pResultPtr = &pResult) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResultPtr, ppObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int EndCreateObject(ref IMFAsyncResult pResult, ref Silk.NET.Core.Native.IUnknown* ppObject) + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFAsyncResult* pResultPtr = &pResult) + { + fixed (Silk.NET.Core.Native.IUnknown** ppObjectPtr = &ppObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResultPtr, ppObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public readonly int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject(ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public readonly int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly unsafe int BeginCreateObject([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public readonly int CancelObjectCreation(ComPtr pIUnknownCancelCookie) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CancelObjectCreation((Silk.NET.Core.Native.IUnknown*) pIUnknownCancelCookie.Handle); + } + + /// To be documented. + public readonly unsafe int EndCreateObject(IMFAsyncResult* pResult, ref ComPtr ppObject) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->EndCreateObject(pResult, (Silk.NET.Core.Native.IUnknown**) ppObject.GetAddressOf()); + } + + /// To be documented. + public readonly int EndCreateObject(ref IMFAsyncResult pResult, ref ComPtr ppObject) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->EndCreateObject(ref pResult, (Silk.NET.Core.Native.IUnknown**) ppObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineNeedKeyNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineNeedKeyNotify.gen.cs new file mode 100644 index 0000000000..ce7344c756 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineNeedKeyNotify.gen.cs @@ -0,0 +1,158 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("46a30204-a696-4b18-8804-246b8f031bb1")] + [NativeName("Name", "IMFMediaEngineNeedKeyNotify")] + public unsafe partial struct IMFMediaEngineNeedKeyNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("46a30204-a696-4b18-8804-246b8f031bb1"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineNeedKeyNotify val) + => Unsafe.As(ref val); + + public IMFMediaEngineNeedKeyNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe void NeedKey([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, initData, cb); + } + + /// To be documented. + public readonly void NeedKey([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* initDataPtr = &initData) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, initDataPtr, cb); + } + } + + /// To be documented. + public readonly void NeedKey([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb) + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, initDataPtr, cb); + SilkMarshal.Free((nint)initDataPtr); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineNeedKeyNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineNotify.gen.cs new file mode 100644 index 0000000000..e3a8fd59f0 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineNotify.gen.cs @@ -0,0 +1,141 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("fee7c112-e776-42b5-9bbf-0048524e2bd5")] + [NativeName("Name", "IMFMediaEngineNotify")] + public unsafe partial struct IMFMediaEngineNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("fee7c112-e776-42b5-9bbf-0048524e2bd5"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineNotify val) + => Unsafe.As(ref val); + + public IMFMediaEngineNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly int EventNotify(uint @event, nuint param1, uint param2) + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, @event, param1, param2); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineOPMInfo.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineOPMInfo.gen.cs new file mode 100644 index 0000000000..45ecfd0043 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineOPMInfo.gen.cs @@ -0,0 +1,180 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("765763e6-6c01-4b01-bb0f-b829f60ed28c")] + [NativeName("Name", "IMFMediaEngineOPMInfo")] + public unsafe partial struct IMFMediaEngineOPMInfo : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("765763e6-6c01-4b01-bb0f-b829f60ed28c"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineOPMInfo val) + => Unsafe.As(ref val); + + public IMFMediaEngineOPMInfo + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetOPMInfo(MediaEngineOpmStatus* pStatus, int* pConstricted) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pConstricted); + return ret; + } + + /// To be documented. + public readonly unsafe int GetOPMInfo(MediaEngineOpmStatus* pStatus, ref int pConstricted) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pConstrictedPtr = &pConstricted) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pConstrictedPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetOPMInfo(ref MediaEngineOpmStatus pStatus, int* pConstricted) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineOpmStatus* pStatusPtr = &pStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pConstricted); + } + return ret; + } + + /// To be documented. + public readonly int GetOPMInfo(ref MediaEngineOpmStatus pStatus, ref int pConstricted) + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MediaEngineOpmStatus* pStatusPtr = &pStatus) + { + fixed (int* pConstrictedPtr = &pConstricted) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pConstrictedPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineOPMInfo*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineProtectedContent.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineProtectedContent.gen.cs new file mode 100644 index 0000000000..3da880c577 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineProtectedContent.gen.cs @@ -0,0 +1,900 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("9f8021e8-9c8c-487e-bb5c-79aa4779938c")] + [NativeName("Name", "IMFMediaEngineProtectedContent")] + public unsafe partial struct IMFMediaEngineProtectedContent : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("9f8021e8-9c8c-487e-bb5c-79aa4779938c"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineProtectedContent val) + => Unsafe.As(ref val); + + public IMFMediaEngineProtectedContent + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int ShareResources(Silk.NET.Core.Native.IUnknown* pUnkDeviceContext) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pUnkDeviceContext); + return ret; + } + + /// To be documented. + public readonly int ShareResources(ref Silk.NET.Core.Native.IUnknown pUnkDeviceContext) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pUnkDeviceContextPtr = &pUnkDeviceContext) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pUnkDeviceContextPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetRequiredProtections(uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pFrameProtectionFlags); + return ret; + } + + /// To be documented. + public readonly int GetRequiredProtections(ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pFrameProtectionFlagsPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetOPMWindow(nint hwnd) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, hwnd); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClr, pFrameProtectionFlags); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly int TransferVideoFrame(ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetContentProtectionManager(IMFContentProtectionManager* pCPM) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pCPM); + return ret; + } + + /// To be documented. + public readonly int SetContentProtectionManager(ref IMFContentProtectionManager pCPM) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFContentProtectionManager* pCPMPtr = &pCPM) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pCPMPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetApplicationCertificate([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbBlob, uint cbBlob) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbBlob, cbBlob); + return ret; + } + + /// To be documented. + public readonly int SetApplicationCertificate([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbBlob, uint cbBlob) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* pbBlobPtr = &pbBlob) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbBlobPtr, cbBlob); + } + return ret; + } + + /// To be documented. + public readonly int SetApplicationCertificate([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbBlob, uint cbBlob) + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pbBlobPtr = (byte*) SilkMarshal.StringToPtr(pbBlob, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbBlobPtr, cbBlob); + SilkMarshal.Free((nint)pbBlobPtr); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int ShareResources(ComPtr pUnkDeviceContext) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->ShareResources((Silk.NET.Core.Native.IUnknown*) pUnkDeviceContext.Handle); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly unsafe int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public readonly int TransferVideoFrame(ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineProtectedContent*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSrcElements.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSrcElements.gen.cs new file mode 100644 index 0000000000..bdf530d42e --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSrcElements.gen.cs @@ -0,0 +1,627 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("7a5e5354-b114-4c72-b991-3131d75032ea")] + [NativeName("Name", "IMFMediaEngineSrcElements")] + public unsafe partial struct IMFMediaEngineSrcElements : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("7a5e5354-b114-4c72-b991-3131d75032ea"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineSrcElements val) + => Unsafe.As(ref val); + + public IMFMediaEngineSrcElements + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetLength() + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetURL(uint index, char** pURL) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURL); + return ret; + } + + /// To be documented. + public readonly unsafe int GetURL(uint index, ref char* pURL) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURLPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetType(uint index, char** pType) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetType(uint index, ref char* pType) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetMedia(uint index, char** pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMedia); + return ret; + } + + /// To be documented. + public readonly unsafe int GetMedia(uint index, ref char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, char* pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMedia); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, char* pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, ref char pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, ref char pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, char* pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, char* pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, ref char pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, ref char pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int RemoveAllElements() + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetURL(uint index, string[] pURLSa) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pURL = (char**) SilkMarshal.StringArrayToPtr(pURLSa); + var ret = @this->GetURL(index, pURL); + SilkMarshal.CopyPtrToStringArray((nint) pURL, pURLSa); + SilkMarshal.Free((nint) pURL); + return ret; + } + + /// To be documented. + public readonly int GetType(uint index, string[] pTypeSa) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pType = (char**) SilkMarshal.StringArrayToPtr(pTypeSa); + var ret = @this->GetType(index, pType); + SilkMarshal.CopyPtrToStringArray((nint) pType, pTypeSa); + SilkMarshal.Free((nint) pType); + return ret; + } + + /// To be documented. + public readonly int GetMedia(uint index, string[] pMediaSa) + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pMedia = (char**) SilkMarshal.StringArrayToPtr(pMediaSa); + var ret = @this->GetMedia(index, pMedia); + SilkMarshal.CopyPtrToStringArray((nint) pMedia, pMediaSa); + SilkMarshal.Free((nint) pMedia); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineSrcElements*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSrcElementsEx.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSrcElementsEx.gen.cs new file mode 100644 index 0000000000..3e714d8fc2 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSrcElementsEx.gen.cs @@ -0,0 +1,1932 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("654a6bb3-e1a3-424a-9908-53a43a0dfda0")] + [NativeName("Name", "IMFMediaEngineSrcElementsEx")] + public unsafe partial struct IMFMediaEngineSrcElementsEx : IComVtbl, IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("654a6bb3-e1a3-424a-9908-53a43a0dfda0"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator IMFMediaEngineSrcElements(IMFMediaEngineSrcElementsEx val) + => Unsafe.As(ref val); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineSrcElementsEx val) + => Unsafe.As(ref val); + + public IMFMediaEngineSrcElementsEx + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetLength() + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetURL(uint index, char** pURL) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURL); + return ret; + } + + /// To be documented. + public readonly unsafe int GetURL(uint index, ref char* pURL) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURLPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetType(uint index, char** pType) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetType(uint index, ref char* pType) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetMedia(uint index, char** pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMedia); + return ret; + } + + /// To be documented. + public readonly unsafe int GetMedia(uint index, ref char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, char* pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMedia); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, char* pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, ref char pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, ref char pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, char* pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, char* pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, ref char pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, ref char pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElement(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElement([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int RemoveAllElements() + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMedia, keySystem); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMedia, keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystem); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystem); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystem); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystem); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, ref char pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, ref char pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, ref char pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, ref char pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + } + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, ref char pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, ref char pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int AddElementEx(ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystem); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly int AddElementEx([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(uint index, char** pType) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, index, pType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(uint index, ref char* pType) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, index, pTypePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetURL(uint index, string[] pURLSa) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pURL = (char**) SilkMarshal.StringArrayToPtr(pURLSa); + var ret = @this->GetURL(index, pURL); + SilkMarshal.CopyPtrToStringArray((nint) pURL, pURLSa); + SilkMarshal.Free((nint) pURL); + return ret; + } + + /// To be documented. + public readonly int GetType(uint index, string[] pTypeSa) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pType = (char**) SilkMarshal.StringArrayToPtr(pTypeSa); + var ret = @this->GetType(index, pType); + SilkMarshal.CopyPtrToStringArray((nint) pType, pTypeSa); + SilkMarshal.Free((nint) pType); + return ret; + } + + /// To be documented. + public readonly int GetMedia(uint index, string[] pMediaSa) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pMedia = (char**) SilkMarshal.StringArrayToPtr(pMediaSa); + var ret = @this->GetMedia(index, pMedia); + SilkMarshal.CopyPtrToStringArray((nint) pMedia, pMediaSa); + SilkMarshal.Free((nint) pMedia); + return ret; + } + + /// To be documented. + public readonly int GetKeySystem(uint index, string[] pTypeSa) + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pType = (char**) SilkMarshal.StringArrayToPtr(pTypeSa); + var ret = @this->GetKeySystem(index, pType); + SilkMarshal.CopyPtrToStringArray((nint) pType, pTypeSa); + SilkMarshal.Free((nint) pType); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineSrcElementsEx*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSupportsSourceTransfer.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSupportsSourceTransfer.gen.cs new file mode 100644 index 0000000000..926a0b4f9f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineSupportsSourceTransfer.gen.cs @@ -0,0 +1,433 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("a724b056-1b2e-4642-a6f3-db9420c52908")] + [NativeName("Name", "IMFMediaEngineSupportsSourceTransfer")] + public unsafe partial struct IMFMediaEngineSupportsSourceTransfer : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("a724b056-1b2e-4642-a6f3-db9420c52908"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineSupportsSourceTransfer val) + => Unsafe.As(ref val); + + public IMFMediaEngineSupportsSourceTransfer + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int ShouldTransferSource(int* pfShouldTransfer) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pfShouldTransfer); + return ret; + } + + /// To be documented. + public readonly int ShouldTransferSource(ref int pfShouldTransfer) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pfShouldTransferPtr = &pfShouldTransfer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pfShouldTransferPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(IMFByteStream** ppByteStream, IMFMediaSource** ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSource, ppMSE); + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(IMFByteStream** ppByteStream, IMFMediaSource** ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSource, ppMSEPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(IMFByteStream** ppByteStream, ref IMFMediaSource* ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSourcePtr, ppMSE); + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(IMFByteStream** ppByteStream, ref IMFMediaSource* ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSourcePtr, ppMSEPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(ref IMFByteStream* ppByteStream, IMFMediaSource** ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSource, ppMSE); + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(ref IMFByteStream* ppByteStream, IMFMediaSource** ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSource, ppMSEPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(ref IMFByteStream* ppByteStream, ref IMFMediaSource* ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSourcePtr, ppMSE); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(ref IMFByteStream* ppByteStream, ref IMFMediaSource* ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSourcePtr, ppMSEPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSource, pMSE); + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSource, pMSEPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(IMFByteStream* pByteStream, ref IMFMediaSource pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSourcePtr, pMSE); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(IMFByteStream* pByteStream, ref IMFMediaSource pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSourcePtr, pMSEPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(ref IMFByteStream pByteStream, IMFMediaSource* pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSource, pMSE); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(ref IMFByteStream pByteStream, IMFMediaSource* pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSource, pMSEPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(ref IMFByteStream pByteStream, ref IMFMediaSource pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSourcePtr, pMSE); + } + } + return ret; + } + + /// To be documented. + public readonly int AttachMediaSource(ref IMFByteStream pByteStream, ref IMFMediaSource pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSourcePtr, pMSEPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(IMFByteStream** ppByteStream, IMFMediaSource** ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->DetachMediaSource(ppByteStream, ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(IMFByteStream** ppByteStream, ref IMFMediaSource* ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->DetachMediaSource(ppByteStream, ref ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(ref IMFByteStream* ppByteStream, IMFMediaSource** ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->DetachMediaSource(ref ppByteStream, ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int DetachMediaSource(ref IMFByteStream* ppByteStream, ref IMFMediaSource* ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->DetachMediaSource(ref ppByteStream, ref ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AttachMediaSource(pByteStream, pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(IMFByteStream* pByteStream, ref IMFMediaSource pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AttachMediaSource(pByteStream, ref pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public readonly unsafe int AttachMediaSource(ref IMFByteStream pByteStream, IMFMediaSource* pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AttachMediaSource(ref pByteStream, pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public readonly int AttachMediaSource(ref IMFByteStream pByteStream, ref IMFMediaSource pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AttachMediaSource(ref pByteStream, ref pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineSupportsSourceTransfer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineTransferSource.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineTransferSource.gen.cs new file mode 100644 index 0000000000..faa56f967c --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineTransferSource.gen.cs @@ -0,0 +1,161 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("24230452-fe54-40cc-94f3-fcc394c340d6")] + [NativeName("Name", "IMFMediaEngineTransferSource")] + public unsafe partial struct IMFMediaEngineTransferSource : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("24230452-fe54-40cc-94f3-fcc394c340d6"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineTransferSource val) + => Unsafe.As(ref val); + + public IMFMediaEngineTransferSource + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int TransferSourceToMediaEngine(IMFMediaEngine* destination) + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destination); + return ret; + } + + /// To be documented. + public readonly int TransferSourceToMediaEngine(ref IMFMediaEngine destination) + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaEngine* destinationPtr = &destination) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int TransferSourceToMediaEngine(ComPtr destination) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->TransferSourceToMediaEngine((IMFMediaEngine*) destination.Handle); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineTransferSource*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineWebSupport.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineWebSupport.gen.cs new file mode 100644 index 0000000000..dbbbb32409 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaEngineWebSupport.gen.cs @@ -0,0 +1,179 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("ba2743a1-07e0-48ef-84b6-9a2ed023ca6c")] + [NativeName("Name", "IMFMediaEngineWebSupport")] + public unsafe partial struct IMFMediaEngineWebSupport : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("ba2743a1-07e0-48ef-84b6-9a2ed023ca6c"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaEngineWebSupport val) + => Unsafe.As(ref val); + + public IMFMediaEngineWebSupport + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 ShouldDelayTheLoadEvent() + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int ConnectWebAudio(uint dwSampleRate, IAudioSourceProvider** ppSourceProvider) + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, dwSampleRate, ppSourceProvider); + return ret; + } + + /// To be documented. + public readonly unsafe int ConnectWebAudio(uint dwSampleRate, ref IAudioSourceProvider* ppSourceProvider) + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IAudioSourceProvider** ppSourceProviderPtr = &ppSourceProvider) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, dwSampleRate, ppSourceProviderPtr); + } + return ret; + } + + /// To be documented. + public readonly int DisconnectWebAudio() + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int ConnectWebAudio(uint dwSampleRate, ref ComPtr ppSourceProvider) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->ConnectWebAudio(dwSampleRate, (IAudioSourceProvider**) ppSourceProvider.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaEngineWebSupport*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaError.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaError.gen.cs new file mode 100644 index 0000000000..953d1018ad --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaError.gen.cs @@ -0,0 +1,168 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("fc0e10d2-ab2a-4501-a951-06bb1075184c")] + [NativeName("Name", "IMFMediaError")] + public unsafe partial struct IMFMediaError : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("fc0e10d2-ab2a-4501-a951-06bb1075184c"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaError val) + => Unsafe.As(ref val); + + public IMFMediaError + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly ushort GetErrorCode() + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly int GetExtendedErrorCode() + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public readonly int SetErrorCode(MediaEngineError error) + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, error); + return ret; + } + + /// To be documented. + public readonly int SetExtendedErrorCode(int error) + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, error); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaError*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySession.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySession.gen.cs new file mode 100644 index 0000000000..287e1cd311 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySession.gen.cs @@ -0,0 +1,287 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("24fa67d5-d1d0-4dc5-995c-c0efdc191fb5")] + [NativeName("Name", "IMFMediaKeySession")] + public unsafe partial struct IMFMediaKeySession : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("24fa67d5-d1d0-4dc5-995c-c0efdc191fb5"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeySession val) + => Unsafe.As(ref val); + + public IMFMediaKeySession + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ushort* code, uint* systemCode) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCode); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ushort* code, ref uint systemCode) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCodePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ref ushort code, uint* systemCode) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (ushort* codePtr = &code) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCode); + } + return ret; + } + + /// To be documented. + public readonly int GetError(ref ushort code, ref uint systemCode) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (ushort* codePtr = &code) + { + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCodePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(char** keySystem) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(ref char* keySystem) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSessionId(char** sessionId) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionId); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSessionId(ref char* sessionId) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** sessionIdPtr = &sessionId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionIdPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int Update([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* key, uint cb) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, key, cb); + return ret; + } + + /// To be documented. + public readonly int Update([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte key, uint cb) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* keyPtr = &key) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + } + return ret; + } + + /// To be documented. + public readonly int Update([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string key, uint cb) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keyPtr = (byte*) SilkMarshal.StringToPtr(key, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + SilkMarshal.Free((nint)keyPtr); + return ret; + } + + /// To be documented. + public readonly int Close() + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetKeySystem(string[] keySystemSa) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public readonly int GetSessionId(string[] sessionIdSa) + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var sessionId = (char**) SilkMarshal.StringArrayToPtr(sessionIdSa); + var ret = @this->GetSessionId(sessionId); + SilkMarshal.CopyPtrToStringArray((nint) sessionId, sessionIdSa); + SilkMarshal.Free((nint) sessionId); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySession*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySession2.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySession2.gen.cs new file mode 100644 index 0000000000..fa20286040 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySession2.gen.cs @@ -0,0 +1,561 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("e9707e05-6d55-4636-b185-3de21210bd75")] + [NativeName("Name", "IMFMediaKeySession2")] + public unsafe partial struct IMFMediaKeySession2 : IComVtbl, IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("e9707e05-6d55-4636-b185-3de21210bd75"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator IMFMediaKeySession(IMFMediaKeySession2 val) + => Unsafe.As(ref val); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeySession2 val) + => Unsafe.As(ref val); + + public IMFMediaKeySession2 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ushort* code, uint* systemCode) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCode); + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ushort* code, ref uint systemCode) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCodePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetError(ref ushort code, uint* systemCode) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (ushort* codePtr = &code) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCode); + } + return ret; + } + + /// To be documented. + public readonly int GetError(ref ushort code, ref uint systemCode) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (ushort* codePtr = &code) + { + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCodePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(char** keySystem) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(ref char* keySystem) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSessionId(char** sessionId) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionId); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSessionId(ref char* sessionId) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** sessionIdPtr = &sessionId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionIdPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int Update([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* key, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, key, cb); + return ret; + } + + /// To be documented. + public readonly int Update([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte key, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* keyPtr = &key) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + } + return ret; + } + + /// To be documented. + public readonly int Update([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string key, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var keyPtr = (byte*) SilkMarshal.StringToPtr(key, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + SilkMarshal.Free((nint)keyPtr); + return ret; + } + + /// To be documented. + public readonly int Close() + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeyStatuses(MFMediaKeyStatus** pKeyStatusesArray, uint* puSize) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArray, puSize); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeyStatuses(MFMediaKeyStatus** pKeyStatusesArray, ref uint puSize) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* puSizePtr = &puSize) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArray, puSizePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeyStatuses(ref MFMediaKeyStatus* pKeyStatusesArray, uint* puSize) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MFMediaKeyStatus** pKeyStatusesArrayPtr = &pKeyStatusesArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArrayPtr, puSize); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeyStatuses(ref MFMediaKeyStatus* pKeyStatusesArray, ref uint puSize) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (MFMediaKeyStatus** pKeyStatusesArrayPtr = &pKeyStatusesArray) + { + fixed (uint* puSizePtr = &puSize) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArrayPtr, puSizePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int Load(char* bstrSessionId, int* pfLoaded) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionId, pfLoaded); + return ret; + } + + /// To be documented. + public readonly unsafe int Load(char* bstrSessionId, ref int pfLoaded) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* pfLoadedPtr = &pfLoaded) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionId, pfLoadedPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int Load(ref char bstrSessionId, int* pfLoaded) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrSessionIdPtr = &bstrSessionId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoaded); + } + return ret; + } + + /// To be documented. + public readonly int Load(ref char bstrSessionId, ref int pfLoaded) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* bstrSessionIdPtr = &bstrSessionId) + { + fixed (int* pfLoadedPtr = &pfLoaded) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoadedPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int Load([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrSessionId, int* pfLoaded) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrSessionIdPtr = (byte*) SilkMarshal.StringToPtr(bstrSessionId, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoaded); + SilkMarshal.Free((nint)bstrSessionIdPtr); + return ret; + } + + /// To be documented. + public readonly int Load([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrSessionId, ref int pfLoaded) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var bstrSessionIdPtr = (byte*) SilkMarshal.StringToPtr(bstrSessionId, NativeStringEncoding.BStr); + fixed (int* pfLoadedPtr = &pfLoaded) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoadedPtr); + } + SilkMarshal.Free((nint)bstrSessionIdPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GenerateRequest(char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataType, pbInitData, cb); + return ret; + } + + /// To be documented. + public readonly unsafe int GenerateRequest(char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* pbInitDataPtr = &pbInitData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataType, pbInitDataPtr, cb); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GenerateRequest(char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataType, pbInitDataPtr, cb); + SilkMarshal.Free((nint)pbInitDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GenerateRequest(ref char initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* initDataTypePtr = &initDataType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitData, cb); + } + return ret; + } + + /// To be documented. + public readonly int GenerateRequest(ref char initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* initDataTypePtr = &initDataType) + { + fixed (byte* pbInitDataPtr = &pbInitData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + } + } + return ret; + } + + /// To be documented. + public readonly int GenerateRequest(ref char initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* initDataTypePtr = &initDataType) + { + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + SilkMarshal.Free((nint)pbInitDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GenerateRequest([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataTypePtr = (byte*) SilkMarshal.StringToPtr(initDataType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitData, cb); + SilkMarshal.Free((nint)initDataTypePtr); + return ret; + } + + /// To be documented. + public readonly int GenerateRequest([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataTypePtr = (byte*) SilkMarshal.StringToPtr(initDataType, NativeStringEncoding.BStr); + fixed (byte* pbInitDataPtr = &pbInitData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + } + SilkMarshal.Free((nint)initDataTypePtr); + return ret; + } + + /// To be documented. + public readonly int GenerateRequest([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataTypePtr = (byte*) SilkMarshal.StringToPtr(initDataType, NativeStringEncoding.BStr); + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + SilkMarshal.Free((nint)pbInitDataPtr); + SilkMarshal.Free((nint)initDataTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetExpiration(double* dblExpiration) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, dblExpiration); + return ret; + } + + /// To be documented. + public readonly int GetExpiration(ref double dblExpiration) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* dblExpirationPtr = &dblExpiration) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, dblExpirationPtr); + } + return ret; + } + + /// To be documented. + public readonly int Remove() + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public readonly int Shutdown() + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetKeySystem(string[] keySystemSa) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public readonly int GetSessionId(string[] sessionIdSa) + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var sessionId = (char**) SilkMarshal.StringArrayToPtr(sessionIdSa); + var ret = @this->GetSessionId(sessionId); + SilkMarshal.CopyPtrToStringArray((nint) sessionId, sessionIdSa); + SilkMarshal.Free((nint) sessionId); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySession2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySessionNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySessionNotify.gen.cs new file mode 100644 index 0000000000..cc74daff37 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySessionNotify.gen.cs @@ -0,0 +1,239 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("6a0083f9-8947-4c1d-9ce0-cdee22b23135")] + [NativeName("Name", "IMFMediaKeySessionNotify")] + public unsafe partial struct IMFMediaKeySessionNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("6a0083f9-8947-4c1d-9ce0-cdee22b23135"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeySessionNotify val) + => Unsafe.As(ref val); + + public IMFMediaKeySessionNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe void KeyMessage(char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, message, cb); + } + + /// To be documented. + public readonly unsafe void KeyMessage(char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + } + } + + /// To be documented. + public readonly unsafe void KeyMessage(char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + + /// To be documented. + public readonly unsafe void KeyMessage(ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + } + } + + /// To be documented. + public readonly void KeyMessage(ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + } + } + + /// To be documented. + public readonly void KeyMessage(ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + } + + /// To be documented. + public readonly unsafe void KeyMessage([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyMessage([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyMessage([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyAdded() + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public readonly void KeyError(ushort code, uint systemCode) + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, code, systemCode); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySessionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySessionNotify2.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySessionNotify2.gen.cs new file mode 100644 index 0000000000..293c8ff64a --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySessionNotify2.gen.cs @@ -0,0 +1,342 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("c3a9e92a-da88-46b0-a110-6cf953026cb9")] + [NativeName("Name", "IMFMediaKeySessionNotify2")] + public unsafe partial struct IMFMediaKeySessionNotify2 : IComVtbl, IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("c3a9e92a-da88-46b0-a110-6cf953026cb9"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator IMFMediaKeySessionNotify(IMFMediaKeySessionNotify2 val) + => Unsafe.As(ref val); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeySessionNotify2 val) + => Unsafe.As(ref val); + + public IMFMediaKeySessionNotify2 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe void KeyMessage(char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, message, cb); + } + + /// To be documented. + public readonly unsafe void KeyMessage(char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + } + } + + /// To be documented. + public readonly unsafe void KeyMessage(char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + + /// To be documented. + public readonly unsafe void KeyMessage(ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + } + } + + /// To be documented. + public readonly void KeyMessage(ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + } + } + + /// To be documented. + public readonly void KeyMessage(ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + } + + /// To be documented. + public readonly unsafe void KeyMessage([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyMessage([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyMessage([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyAdded() + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public readonly void KeyError(ushort code, uint systemCode) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, code, systemCode); + } + + /// To be documented. + public readonly unsafe void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURL, pbMessage, cbMessage); + } + + /// To be documented. + public readonly unsafe void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (byte* pbMessagePtr = &pbMessage) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURL, pbMessagePtr, cbMessage); + } + } + + /// To be documented. + public readonly unsafe void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var pbMessagePtr = (byte*) SilkMarshal.StringToPtr(pbMessage, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURL, pbMessagePtr, cbMessage); + SilkMarshal.Free((nint)pbMessagePtr); + } + + /// To be documented. + public readonly unsafe void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessage, cbMessage); + } + } + + /// To be documented. + public readonly void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + fixed (byte* pbMessagePtr = &pbMessage) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + } + } + } + + /// To be documented. + public readonly void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (char* destinationURLPtr = &destinationURL) + { + var pbMessagePtr = (byte*) SilkMarshal.StringToPtr(pbMessage, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + SilkMarshal.Free((nint)pbMessagePtr); + } + } + + /// To be documented. + public readonly unsafe void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessage, cbMessage); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + fixed (byte* pbMessagePtr = &pbMessage) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + } + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyMessage2(MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + var pbMessagePtr = (byte*) SilkMarshal.StringToPtr(pbMessage, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + SilkMarshal.Free((nint)pbMessagePtr); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public readonly void KeyStatusChange() + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySessionNotify2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySystemAccess.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySystemAccess.gen.cs new file mode 100644 index 0000000000..5e933854a3 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeySystemAccess.gen.cs @@ -0,0 +1,250 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("aec63fda-7a97-4944-b35c-6c6df8085cc3")] + [NativeName("Name", "IMFMediaKeySystemAccess")] + public unsafe partial struct IMFMediaKeySystemAccess : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("aec63fda-7a97-4944-b35c-6c6df8085cc3"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeySystemAccess val) + => Unsafe.As(ref val); + + public IMFMediaKeySystemAccess + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(IPropertyStore* pCdmCustomConfig, IMFMediaKeys2** ppKeys) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfig, ppKeys); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(IPropertyStore* pCdmCustomConfig, ref IMFMediaKeys2* ppKeys) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeys2** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfig, ppKeysPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref IPropertyStore pCdmCustomConfig, IMFMediaKeys2** ppKeys) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IPropertyStore* pCdmCustomConfigPtr = &pCdmCustomConfig) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfigPtr, ppKeys); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(ref IPropertyStore pCdmCustomConfig, ref IMFMediaKeys2* ppKeys) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IPropertyStore* pCdmCustomConfigPtr = &pCdmCustomConfig) + { + fixed (IMFMediaKeys2** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfigPtr, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSupportedConfiguration(IPropertyStore** ppSupportedConfiguration) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppSupportedConfiguration); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSupportedConfiguration(ref IPropertyStore* ppSupportedConfiguration) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IPropertyStore** ppSupportedConfigurationPtr = &ppSupportedConfiguration) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppSupportedConfigurationPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(char** pKeySystem) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pKeySystem); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(ref char* pKeySystem) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** pKeySystemPtr = &pKeySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pKeySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateMediaKeys(IPropertyStore* pCdmCustomConfig, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(pCdmCustomConfig, (IMFMediaKeys2**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateMediaKeys(ref IPropertyStore pCdmCustomConfig, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateMediaKeys(ref pCdmCustomConfig, (IMFMediaKeys2**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public readonly int GetKeySystem(string[] pKeySystemSa) + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var pKeySystem = (char**) SilkMarshal.StringArrayToPtr(pKeySystemSa); + var ret = @this->GetKeySystem(pKeySystem); + SilkMarshal.CopyPtrToStringArray((nint) pKeySystem, pKeySystemSa); + SilkMarshal.Free((nint) pKeySystem); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeySystemAccess*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeys.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeys.gen.cs new file mode 100644 index 0000000000..8cde1fd99b --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeys.gen.cs @@ -0,0 +1,2687 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("5cb31c05-61ff-418f-afda-caaf41421a38")] + [NativeName("Name", "IMFMediaKeys")] + public unsafe partial struct IMFMediaKeys : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("5cb31c05-61ff-418f-afda-caaf41421a38"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeys val) + => Unsafe.As(ref val); + + public IMFMediaKeys + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSession); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(char** keySystem) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(ref char* keySystem) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly int Shutdown() + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSuspendNotify(IMFCdmSuspendNotify** notify) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notify); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSuspendNotify(ref IMFCdmSuspendNotify* notify) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFCdmSuspendNotify** notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notifyPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int GetKeySystem(string[] keySystemSa) + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public readonly int GetSuspendNotify(ref ComPtr notify) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSuspendNotify((IMFCdmSuspendNotify**) notify.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeys*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeys2.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeys2.gen.cs new file mode 100644 index 0000000000..e14c132059 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaKeys2.gen.cs @@ -0,0 +1,2815 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("45892507-ad66-4de2-83a2-acbb13cd8d43")] + [NativeName("Name", "IMFMediaKeys2")] + public unsafe partial struct IMFMediaKeys2 : IComVtbl, IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("45892507-ad66-4de2-83a2-acbb13cd8d43"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator IMFMediaKeys(IMFMediaKeys2 val) + => Unsafe.As(ref val); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaKeys2 val) + => Unsafe.As(ref val); + + public IMFMediaKeys2 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSession); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(char** keySystem) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public readonly unsafe int GetKeySystem(ref char* keySystem) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public readonly int Shutdown() + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSuspendNotify(IMFCdmSuspendNotify** notify) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notify); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSuspendNotify(ref IMFCdmSuspendNotify* notify) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFCdmSuspendNotify** notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notifyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2, IMFMediaKeySession2** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2, ppSession); + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySession2** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2, ppSessionPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, ref IMFMediaKeySessionNotify2 pMFMediaKeySessionNotify2, IMFMediaKeySession2** ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2Ptr = &pMFMediaKeySessionNotify2) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2Ptr, ppSession); + } + return ret; + } + + /// To be documented. + public readonly unsafe int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, ref IMFMediaKeySessionNotify2 pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2Ptr = &pMFMediaKeySessionNotify2) + { + fixed (IMFMediaKeySession2** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2Ptr, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetServerCertificate([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbServerCertificate, uint cb) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbServerCertificate, cb); + return ret; + } + + /// To be documented. + public readonly int SetServerCertificate([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbServerCertificate, uint cb) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* pbServerCertificatePtr = &pbServerCertificate) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbServerCertificatePtr, cb); + } + return ret; + } + + /// To be documented. + public readonly int SetServerCertificate([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbServerCertificate, uint cb) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pbServerCertificatePtr = (byte*) SilkMarshal.StringToPtr(pbServerCertificate, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbServerCertificatePtr, cb); + SilkMarshal.Free((nint)pbServerCertificatePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetDOMException(int systemCode, int* code) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, systemCode, code); + return ret; + } + + /// To be documented. + public readonly int GetDOMException(int systemCode, ref int code) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* codePtr = &code) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, systemCode, codePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession(ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly int GetKeySystem(string[] keySystemSa) + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public readonly int GetSuspendNotify(ref ComPtr notify) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSuspendNotify((IMFCdmSuspendNotify**) notify.GetAddressOf()); + } + + /// To be documented. + public readonly int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, ComPtr pMFMediaKeySessionNotify2, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession2(eSessionType, (IMFMediaKeySessionNotify2*) pMFMediaKeySessionNotify2.Handle, (IMFMediaKeySession2**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, ComPtr pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession2(eSessionType, (IMFMediaKeySessionNotify2*) pMFMediaKeySessionNotify2.Handle, ref ppSession); + } + + /// To be documented. + public readonly int CreateSession2(MF_MEDIAKEYSESSION_TYPE eSessionType, ref IMFMediaKeySessionNotify2 pMFMediaKeySessionNotify2, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->CreateSession2(eSessionType, ref pMFMediaKeySessionNotify2, (IMFMediaKeySession2**) ppSession.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaKeys2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtension.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtension.gen.cs new file mode 100644 index 0000000000..43861edbaf --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtension.gen.cs @@ -0,0 +1,492 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("e467b94e-a713-4562-a802-816a42e9008a")] + [NativeName("Name", "IMFMediaSourceExtension")] + public unsafe partial struct IMFMediaSourceExtension : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("e467b94e-a713-4562-a802-816a42e9008a"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaSourceExtension val) + => Unsafe.As(ref val); + + public IMFMediaSourceExtension + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe IMFSourceBufferList* GetSourceBuffers() + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + IMFSourceBufferList* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe IMFSourceBufferList* GetActiveSourceBuffers() + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + IMFSourceBufferList* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public readonly MseReady GetReadyState() + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + MseReady ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public readonly double GetDuration() + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this); + return ret; + } + + /// To be documented. + public readonly int SetDuration(double duration) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, duration); + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotify, ppSourceBuffer); + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotify, ppSourceBufferPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, ref IMFSourceBufferNotify pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotifyPtr, ppSourceBuffer); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, ref IMFSourceBufferNotify pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotifyPtr, ppSourceBufferPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(ref char type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBuffer); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(ref char type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBufferPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(ref char type, ref IMFSourceBufferNotify pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBuffer); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(ref char type, ref IMFSourceBufferNotify pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* typePtr = &type) + { + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBufferPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBuffer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBufferPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref IMFSourceBufferNotify pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBuffer); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref IMFSourceBufferNotify pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBufferPtr); + } + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int RemoveSourceBuffer(IMFSourceBuffer* pSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pSourceBuffer); + return ret; + } + + /// To be documented. + public readonly int RemoveSourceBuffer(ref IMFSourceBuffer pSourceBuffer) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFSourceBuffer* pSourceBufferPtr = &pSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pSourceBufferPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetEndOfStream(MseError error) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, error); + return ret; + } + + /// To be documented. + public readonly unsafe Silk.NET.Core.Bool32 IsTypeSupported(char* type) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, type); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsTypeSupported(ref char type) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, typePtr); + } + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsTypeSupported([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, typePtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public readonly unsafe IMFSourceBuffer* GetSourceBuffer(uint dwStreamIndex) + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + IMFSourceBuffer* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, dwStreamIndex); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, ComPtr pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, ComPtr pNotify, ref IMFSourceBuffer* ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, ref ppSourceBuffer); + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(char* type, ref IMFSourceBufferNotify pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(type, ref pNotify, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public readonly int AddSourceBuffer(ref char type, ComPtr pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(ref type, (IMFSourceBufferNotify*) pNotify.Handle, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer(ref char type, ComPtr pNotify, ref IMFSourceBuffer* ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(ref type, (IMFSourceBufferNotify*) pNotify.Handle, ref ppSourceBuffer); + } + + /// To be documented. + public readonly int AddSourceBuffer(ref char type, ref IMFSourceBufferNotify pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(ref type, ref pNotify, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public readonly int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ComPtr pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ComPtr pNotify, ref IMFSourceBuffer* ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, ref ppSourceBuffer); + } + + /// To be documented. + public readonly int AddSourceBuffer([UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref IMFSourceBufferNotify pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddSourceBuffer(type, ref pNotify, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public readonly int RemoveSourceBuffer(ComPtr pSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->RemoveSourceBuffer((IMFSourceBuffer*) pSourceBuffer.Handle); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaSourceExtension*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtensionLiveSeekableRange.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtensionLiveSeekableRange.gen.cs new file mode 100644 index 0000000000..a775c4afcc --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtensionLiveSeekableRange.gen.cs @@ -0,0 +1,150 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("5d1abfd6-450a-4d92-9efc-d6b6cbc1f4da")] + [NativeName("Name", "IMFMediaSourceExtensionLiveSeekableRange")] + public unsafe partial struct IMFMediaSourceExtensionLiveSeekableRange : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("5d1abfd6-450a-4d92-9efc-d6b6cbc1f4da"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaSourceExtensionLiveSeekableRange val) + => Unsafe.As(ref val); + + public IMFMediaSourceExtensionLiveSeekableRange + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly int SetLiveSeekableRange(double start, double end) + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, start, end); + return ret; + } + + /// To be documented. + public readonly int ClearLiveSeekableRange() + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaSourceExtensionLiveSeekableRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtensionNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtensionNotify.gen.cs new file mode 100644 index 0000000000..3fa61a44f4 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaSourceExtensionNotify.gen.cs @@ -0,0 +1,153 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("a7901327-05dd-4469-a7b7-0e01979e361d")] + [NativeName("Name", "IMFMediaSourceExtensionNotify")] + public unsafe partial struct IMFMediaSourceExtensionNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("a7901327-05dd-4469-a7b7-0e01979e361d"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaSourceExtensionNotify val) + => Unsafe.As(ref val); + + public IMFMediaSourceExtensionNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly void OnSourceOpen() + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + } + + /// To be documented. + public readonly void OnSourceEnded() + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public readonly void OnSourceClose() + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaSourceExtensionNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaTimeRange.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaTimeRange.gen.cs new file mode 100644 index 0000000000..3777ef41c6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFMediaTimeRange.gen.cs @@ -0,0 +1,210 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("db71a2fc-078a-414e-9df9-8c2531b0aa6c")] + [NativeName("Name", "IMFMediaTimeRange")] + public unsafe partial struct IMFMediaTimeRange : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("db71a2fc-078a-414e-9df9-8c2531b0aa6c"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFMediaTimeRange val) + => Unsafe.As(ref val); + + public IMFMediaTimeRange + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetLength() + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetStart(uint index, double* pStart) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pStart); + return ret; + } + + /// To be documented. + public readonly int GetStart(uint index, ref double pStart) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pStartPtr = &pStart) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pStartPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetEnd(uint index, double* pEnd) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pEnd); + return ret; + } + + /// To be documented. + public readonly int GetEnd(uint index, ref double pEnd) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pEndPtr = &pEnd) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pEndPtr); + } + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 ContainsTime(double time) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, time); + return ret; + } + + /// To be documented. + public readonly int AddRange(double startTime, double endTime) + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, startTime, endTime); + return ret; + } + + /// To be documented. + public readonly int Clear() + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFMediaTimeRange*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBuffer.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBuffer.gen.cs new file mode 100644 index 0000000000..14a51ac93f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBuffer.gen.cs @@ -0,0 +1,322 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("e2cd3a4b-af25-4d3d-9110-da0e6f8ee877")] + [NativeName("Name", "IMFSourceBuffer")] + public unsafe partial struct IMFSourceBuffer : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("e2cd3a4b-af25-4d3d-9110-da0e6f8ee877"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFSourceBuffer val) + => Unsafe.As(ref val); + + public IMFSourceBuffer + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 GetUpdating() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBuffered(IMFMediaTimeRange** ppBuffered) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppBuffered); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBuffered(ref IMFMediaTimeRange* ppBuffered) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFMediaTimeRange** ppBufferedPtr = &ppBuffered) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppBufferedPtr); + } + return ret; + } + + /// To be documented. + public readonly double GetTimeStampOffset() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public readonly int SetTimeStampOffset(double offset) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, offset); + return ret; + } + + /// To be documented. + public readonly double GetAppendWindowStart() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public readonly int SetAppendWindowStart(double time) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, time); + return ret; + } + + /// To be documented. + public readonly double GetAppendWindowEnd() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + return ret; + } + + /// To be documented. + public readonly int SetAppendWindowEnd(double time) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, time); + return ret; + } + + /// To be documented. + public readonly unsafe int Append([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pData, uint len) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, pData, len); + return ret; + } + + /// To be documented. + public readonly int Append([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pData, uint len) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* pDataPtr = &pData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, pDataPtr, len); + } + return ret; + } + + /// To be documented. + public readonly int Append([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pData, uint len) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var pDataPtr = (byte*) SilkMarshal.StringToPtr(pData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, pDataPtr, len); + SilkMarshal.Free((nint)pDataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AppendByteStream(IMFByteStream* pStream, ulong* pMaxLen) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStream, pMaxLen); + return ret; + } + + /// To be documented. + public readonly unsafe int AppendByteStream(IMFByteStream* pStream, ref ulong pMaxLen) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (ulong* pMaxLenPtr = &pMaxLen) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStream, pMaxLenPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AppendByteStream(ref IMFByteStream pStream, ulong* pMaxLen) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pStreamPtr = &pStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStreamPtr, pMaxLen); + } + return ret; + } + + /// To be documented. + public readonly int AppendByteStream(ref IMFByteStream pStream, ref ulong pMaxLen) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* pStreamPtr = &pStream) + { + fixed (ulong* pMaxLenPtr = &pMaxLen) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStreamPtr, pMaxLenPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int Abort() + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this); + return ret; + } + + /// To be documented. + public readonly int Remove(double start, double end) + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, start, end); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetBuffered(ref ComPtr ppBuffered) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetBuffered((IMFMediaTimeRange**) ppBuffered.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBuffer*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferAppendMode.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferAppendMode.gen.cs new file mode 100644 index 0000000000..47ba379b6f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferAppendMode.gen.cs @@ -0,0 +1,150 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("19666fb4-babe-4c55-bc03-0a074da37e2a")] + [NativeName("Name", "IMFSourceBufferAppendMode")] + public unsafe partial struct IMFSourceBufferAppendMode : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("19666fb4-babe-4c55-bc03-0a074da37e2a"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFSourceBufferAppendMode val) + => Unsafe.As(ref val); + + public IMFSourceBufferAppendMode + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly MseAppendMode GetAppendMode() + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + MseAppendMode ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly int SetAppendMode(MseAppendMode mode) + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, mode); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBufferAppendMode*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferList.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferList.gen.cs new file mode 100644 index 0000000000..8909405083 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferList.gen.cs @@ -0,0 +1,150 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("249981f8-8325-41f3-b80c-3b9e3aad0cbe")] + [NativeName("Name", "IMFSourceBufferList")] + public unsafe partial struct IMFSourceBufferList : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("249981f8-8325-41f3-b80c-3b9e3aad0cbe"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFSourceBufferList val) + => Unsafe.As(ref val); + + public IMFSourceBufferList + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetLength() + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe IMFSourceBuffer* GetSourceBuffer(uint index) + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + IMFSourceBuffer* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBufferList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferNotify.gen.cs new file mode 100644 index 0000000000..03a08fec29 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFSourceBufferNotify.gen.cs @@ -0,0 +1,167 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("87e47623-2ceb-45d6-9b88-d8520c4dcbbc")] + [NativeName("Name", "IMFSourceBufferNotify")] + public unsafe partial struct IMFSourceBufferNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("87e47623-2ceb-45d6-9b88-d8520c4dcbbc"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFSourceBufferNotify val) + => Unsafe.As(ref val); + + public IMFSourceBufferNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly void OnUpdateStart() + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + } + + /// To be documented. + public readonly void OnAbort() + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public readonly void OnError(int hr) + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, hr); + } + + /// To be documented. + public readonly void OnUpdate() + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this); + } + + /// To be documented. + public readonly void OnUpdateEnd() + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFSourceBufferNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedText.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedText.gen.cs new file mode 100644 index 0000000000..cd818fa7e6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedText.gen.cs @@ -0,0 +1,2073 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("1f2a94c9-a3df-430d-9d0f-acd85ddc29af")] + [NativeName("Name", "IMFTimedText")] + public unsafe partial struct IMFTimedText : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("1f2a94c9-a3df-430d-9d0f-acd85ddc29af"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedText val) + => Unsafe.As(ref val); + + public IMFTimedText + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int RegisterNotifications(IMFTimedTextNotify* notify) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, notify); + return ret; + } + + /// To be documented. + public readonly int RegisterNotifications(ref IMFTimedTextNotify notify) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, notifyPtr); + } + return ret; + } + + /// To be documented. + public readonly int SelectTrack(uint trackId, Silk.NET.Core.Bool32 selected) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, trackId, selected); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, language, kind, isDefault, trackId); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, language, kind, isDefault, trackIdPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + } + return ret; + } + + /// To be documented. + public readonly int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public readonly int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly int AddDataSource(ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, language, kind, isDefault, trackId); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, language, kind, isDefault, trackIdPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + } + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly int AddDataSourceFromUrl([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, language, kind, track); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, language, kind, trackPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, track); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* languagePtr = &language) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, trackPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, track); + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, trackPtr); + } + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, track); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, trackPtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, track); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, trackPtr); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int RemoveTrack(IMFTimedTextTrack* track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, track); + return ret; + } + + /// To be documented. + public readonly int RemoveTrack(ref IMFTimedTextTrack track) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrack* trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, trackPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueTimeOffset(double* offset) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, offset); + return ret; + } + + /// To be documented. + public readonly int GetCueTimeOffset(ref double offset) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* offsetPtr = &offset) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, offsetPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetCueTimeOffset(double offset) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, offset); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTracks(IMFTimedTextTrackList** tracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, tracks); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTracks(ref IMFTimedTextTrackList* tracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrackList** tracksPtr = &tracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, tracksPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetActiveTracks(IMFTimedTextTrackList** activeTracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, activeTracks); + return ret; + } + + /// To be documented. + public readonly unsafe int GetActiveTracks(ref IMFTimedTextTrackList* activeTracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrackList** activeTracksPtr = &activeTracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, activeTracksPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextTracks(IMFTimedTextTrackList** textTracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textTracks); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextTracks(ref IMFTimedTextTrackList* textTracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrackList** textTracksPtr = &textTracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textTracksPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetMetadataTracks(IMFTimedTextTrackList** metadataTracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, metadataTracks); + return ret; + } + + /// To be documented. + public readonly unsafe int GetMetadataTracks(ref IMFTimedTextTrackList* metadataTracks) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrackList** metadataTracksPtr = &metadataTracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, metadataTracksPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetInBandEnabled(Silk.NET.Core.Bool32 enabled) + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, enabled); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsInBandEnabled() + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[16])(@this); + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int RegisterNotifications(ComPtr notify) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->RegisterNotifications((IMFTimedTextNotify*) notify.Handle); + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(label, in language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(in label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(in label, in language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(in label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(label, in language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly int AddTrack([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly int RemoveTrack(ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->RemoveTrack((IMFTimedTextTrack*) track.Handle); + } + + /// To be documented. + public readonly int GetTracks(ref ComPtr tracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetTracks((IMFTimedTextTrackList**) tracks.GetAddressOf()); + } + + /// To be documented. + public readonly int GetActiveTracks(ref ComPtr activeTracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetActiveTracks((IMFTimedTextTrackList**) activeTracks.GetAddressOf()); + } + + /// To be documented. + public readonly int GetTextTracks(ref ComPtr textTracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetTextTracks((IMFTimedTextTrackList**) textTracks.GetAddressOf()); + } + + /// To be documented. + public readonly int GetMetadataTracks(ref ComPtr metadataTracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetMetadataTracks((IMFTimedTextTrackList**) metadataTracks.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextBinary.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextBinary.gen.cs new file mode 100644 index 0000000000..c3cd524013 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextBinary.gen.cs @@ -0,0 +1,204 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("4ae3a412-0545-43c4-bf6f-6b97a5c6c432")] + [NativeName("Name", "IMFTimedTextBinary")] + public unsafe partial struct IMFTimedTextBinary : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("4ae3a412-0545-43c4-bf6f-6b97a5c6c432"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextBinary val) + => Unsafe.As(ref val); + + public IMFTimedTextBinary + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetData([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte** data, uint* length) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, data, length); + return ret; + } + + /// To be documented. + public readonly unsafe int GetData([Flow(Silk.NET.Core.Native.FlowDirection.In)] byte** data, ref uint length) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* lengthPtr = &length) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, data, lengthPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetData([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte* data, uint* length) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte** dataPtr = &data) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dataPtr, length); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetData([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte* data, ref uint length) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte** dataPtr = &data) + { + fixed (uint* lengthPtr = &length) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dataPtr, lengthPtr); + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int GetData([Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] dataSa, uint* length) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var data = (byte**) SilkMarshal.StringArrayToPtr(dataSa); + var ret = @this->GetData(data, length); + SilkMarshal.CopyPtrToStringArray((nint) data, dataSa); + SilkMarshal.Free((nint) data); + return ret; + } + + /// To be documented. + public readonly int GetData([Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] dataSa, ref uint length) + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var data = (byte**) SilkMarshal.StringArrayToPtr(dataSa); + var ret = @this->GetData(data, ref length); + SilkMarshal.CopyPtrToStringArray((nint) data, dataSa); + SilkMarshal.Free((nint) data); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextBinary*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextBouten.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextBouten.gen.cs new file mode 100644 index 0000000000..a4406560f5 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextBouten.gen.cs @@ -0,0 +1,195 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("3c5f3e8a-90c0-464e-8136-898d2975f847")] + [NativeName("Name", "IMFTimedTextBouten")] + public unsafe partial struct IMFTimedTextBouten : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("3c5f3e8a-90c0-464e-8136-898d2975f847"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextBouten val) + => Unsafe.As(ref val); + + public IMFTimedTextBouten + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBoutenType(TimedTextBoutenType* value) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetBoutenType(ref TimedTextBoutenType value) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextBoutenType* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetBoutenColor(_MFARGB* value) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetBoutenColor(ref _MFARGB value) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetBoutenPosition(TimedTextBoutenPosition* value) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetBoutenPosition(ref TimedTextBoutenPosition value) + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextBoutenPosition* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextBouten*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextCue.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextCue.gen.cs new file mode 100644 index 0000000000..b318e18cb4 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextCue.gen.cs @@ -0,0 +1,335 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("1e560447-9a2b-43e1-a94c-b0aaabfbfbc9")] + [NativeName("Name", "IMFTimedTextCue")] + public unsafe partial struct IMFTimedTextCue : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("1e560447-9a2b-43e1-a94c-b0aaabfbfbc9"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextCue val) + => Unsafe.As(ref val); + + public IMFTimedTextCue + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetId() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetOriginalId(char** originalId) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, originalId); + return ret; + } + + /// To be documented. + public readonly unsafe int GetOriginalId(ref char* originalId) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** originalIdPtr = &originalId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, originalIdPtr); + } + return ret; + } + + /// To be documented. + public readonly TimedTextTrackKind GetCueKind() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + TimedTextTrackKind ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public readonly double GetStartTime() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this); + return ret; + } + + /// To be documented. + public readonly double GetDuration() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetTrackId() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetData(IMFTimedTextBinary** data) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, data); + return ret; + } + + /// To be documented. + public readonly unsafe int GetData(ref IMFTimedTextBinary* data) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextBinary** dataPtr = &data) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, dataPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetRegion(IMFTimedTextRegion** region) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, region); + return ret; + } + + /// To be documented. + public readonly unsafe int GetRegion(ref IMFTimedTextRegion* region) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextRegion** regionPtr = ®ion) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, regionPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetStyle(IMFTimedTextStyle** style) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, style); + return ret; + } + + /// To be documented. + public readonly unsafe int GetStyle(ref IMFTimedTextStyle* style) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, stylePtr); + } + return ret; + } + + /// To be documented. + public readonly uint GetLineCount() + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLine(uint index, IMFTimedTextFormattedText** line) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, index, line); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLine(uint index, ref IMFTimedTextFormattedText* line) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextFormattedText** linePtr = &line) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, index, linePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetOriginalId(string[] originalIdSa) + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var originalId = (char**) SilkMarshal.StringArrayToPtr(originalIdSa); + var ret = @this->GetOriginalId(originalId); + SilkMarshal.CopyPtrToStringArray((nint) originalId, originalIdSa); + SilkMarshal.Free((nint) originalId); + return ret; + } + + /// To be documented. + public readonly int GetData(ref ComPtr data) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetData((IMFTimedTextBinary**) data.GetAddressOf()); + } + + /// To be documented. + public readonly int GetRegion(ref ComPtr region) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetRegion((IMFTimedTextRegion**) region.GetAddressOf()); + } + + /// To be documented. + public readonly int GetStyle(ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetStyle((IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public readonly int GetLine(uint index, ref ComPtr line) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetLine(index, (IMFTimedTextFormattedText**) line.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextCue*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextCueList.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextCueList.gen.cs new file mode 100644 index 0000000000..2d8e141c34 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextCueList.gen.cs @@ -0,0 +1,519 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("ad128745-211b-40a0-9981-fe65f166d0fd")] + [NativeName("Name", "IMFTimedTextCueList")] + public unsafe partial struct IMFTimedTextCueList : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("ad128745-211b-40a0-9981-fe65f166d0fd"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextCueList val) + => Unsafe.As(ref val); + + public IMFTimedTextCueList + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetLength() + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByIndex(uint index, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, cue); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByIndex(uint index, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, cuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueById(uint id, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, id, cue); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueById(uint id, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, id, cuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* originalId, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalId, cue); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* originalId, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalId, cuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char originalId, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* originalIdPtr = &originalId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cue); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char originalId, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* originalIdPtr = &originalId) + { + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cuePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string originalId, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var originalIdPtr = (byte*) SilkMarshal.StringToPtr(originalId, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cue); + SilkMarshal.Free((nint)originalIdPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string originalId, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var originalIdPtr = (byte*) SilkMarshal.StringToPtr(originalId, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cuePtr); + } + SilkMarshal.Free((nint)originalIdPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* text, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, text, cue); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* text, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, text, cuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char text, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* textPtr = &text) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cue); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char text, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* textPtr = &text) + { + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cuePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string text, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var textPtr = (byte*) SilkMarshal.StringToPtr(text, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cue); + SilkMarshal.Free((nint)textPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string text, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var textPtr = (byte*) SilkMarshal.StringToPtr(text, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cuePtr); + } + SilkMarshal.Free((nint)textPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, data, dataSize, cue); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, data, dataSize, cuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* dataPtr = &data) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cue); + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (byte* dataPtr = &data) + { + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cuePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var dataPtr = (byte*) SilkMarshal.StringToPtr(data, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cue); + SilkMarshal.Free((nint)dataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var dataPtr = (byte*) SilkMarshal.StringToPtr(data, NativeStringEncoding.UTF8); + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cuePtr); + } + SilkMarshal.Free((nint)dataPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int RemoveCue(IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, cue); + return ret; + } + + /// To be documented. + public readonly int RemoveCue(ref IMFTimedTextCue cue) + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCue* cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, cuePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetCueByIndex(uint index, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetCueByIndex(index, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int GetCueById(uint id, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetCueById(id, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* originalId, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetCueByOriginalId(originalId, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char originalId, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetCueByOriginalId(in originalId, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int GetCueByOriginalId([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string originalId, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetCueByOriginalId(originalId, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* text, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTextCue(start, duration, text, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char text, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTextCue(start, duration, in text, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int AddTextCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string text, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddTextCue(start, duration, text, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* data, uint dataSize, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddDataCue(start, duration, data, dataSize, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte data, uint dataSize, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddDataCue(start, duration, in data, dataSize, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int AddDataCue(double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, uint dataSize, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->AddDataCue(start, duration, data, dataSize, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public readonly int RemoveCue(ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->RemoveCue((IMFTimedTextCue*) cue.Handle); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextCueList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextFormattedText.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextFormattedText.gen.cs new file mode 100644 index 0000000000..5eee1ffd9d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextFormattedText.gen.cs @@ -0,0 +1,314 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("e13af3c1-4d47-4354-b1f5-e83ae0ecae60")] + [NativeName("Name", "IMFTimedTextFormattedText")] + public unsafe partial struct IMFTimedTextFormattedText : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("e13af3c1-4d47-4354-b1f5-e83ae0ecae60"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextFormattedText val) + => Unsafe.As(ref val); + + public IMFTimedTextFormattedText + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetText(char** text) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, text); + return ret; + } + + /// To be documented. + public readonly unsafe int GetText(ref char* text) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** textPtr = &text) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, textPtr); + } + return ret; + } + + /// To be documented. + public readonly uint GetSubformattingCount() + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, uint* firstChar, uint* charLength, IMFTimedTextStyle** style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLength, style); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, uint* firstChar, uint* charLength, ref IMFTimedTextStyle* style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLength, stylePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, uint* firstChar, ref uint charLength, IMFTimedTextStyle** style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* charLengthPtr = &charLength) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLengthPtr, style); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, uint* firstChar, ref uint charLength, ref IMFTimedTextStyle* style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* charLengthPtr = &charLength) + { + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLengthPtr, stylePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, ref uint firstChar, uint* charLength, IMFTimedTextStyle** style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLength, style); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, ref uint firstChar, uint* charLength, ref IMFTimedTextStyle* style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLength, stylePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, ref uint firstChar, ref uint charLength, IMFTimedTextStyle** style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + fixed (uint* charLengthPtr = &charLength) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLengthPtr, style); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, ref uint firstChar, ref uint charLength, ref IMFTimedTextStyle* style) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + fixed (uint* charLengthPtr = &charLength) + { + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLengthPtr, stylePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetText(string[] textSa) + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var text = (char**) SilkMarshal.StringArrayToPtr(textSa); + var ret = @this->GetText(text); + SilkMarshal.CopyPtrToStringArray((nint) text, textSa); + SilkMarshal.Free((nint) text); + return ret; + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, uint* firstChar, uint* charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSubformatting(index, firstChar, charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, uint* firstChar, ref uint charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSubformatting(index, firstChar, ref charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public readonly unsafe int GetSubformatting(uint index, ref uint firstChar, uint* charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSubformatting(index, ref firstChar, charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public readonly int GetSubformatting(uint index, ref uint firstChar, ref uint charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetSubformatting(index, ref firstChar, ref charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextFormattedText*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextNotify.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextNotify.gen.cs new file mode 100644 index 0000000000..89746c9763 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextNotify.gen.cs @@ -0,0 +1,199 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("df6b87b6-ce12-45db-aba7-432fe054e57d")] + [NativeName("Name", "IMFTimedTextNotify")] + public unsafe partial struct IMFTimedTextNotify : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("df6b87b6-ce12-45db-aba7-432fe054e57d"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextNotify val) + => Unsafe.As(ref val); + + public IMFTimedTextNotify + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly void TrackAdded(uint trackId) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, trackId); + } + + /// To be documented. + public readonly void TrackRemoved(uint trackId) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, trackId); + } + + /// To be documented. + public readonly void TrackSelected(uint trackId, Silk.NET.Core.Bool32 selected) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, trackId, selected); + } + + /// To be documented. + public readonly void TrackReadyStateChanged(uint trackId) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, trackId); + } + + /// To be documented. + public readonly void Error(TimedTextErrorCode errorCode, int extendedErrorCode, uint sourceTrackId) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, errorCode, extendedErrorCode, sourceTrackId); + } + + /// To be documented. + public readonly unsafe void Cue(TimedTextCueEvent cueEvent, double currentTime, IMFTimedTextCue* cue) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, cueEvent, currentTime, cue); + } + + /// To be documented. + public readonly void Cue(TimedTextCueEvent cueEvent, double currentTime, ref IMFTimedTextCue cue) + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + fixed (IMFTimedTextCue* cuePtr = &cue) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, cueEvent, currentTime, cuePtr); + } + } + + /// To be documented. + public readonly void Reset() + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly void Cue(TimedTextCueEvent cueEvent, double currentTime, ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + @this->Cue(cueEvent, currentTime, (IMFTimedTextCue*) cue.Handle); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextNotify*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextRegion.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextRegion.gen.cs new file mode 100644 index 0000000000..e8e1f3c6b4 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextRegion.gen.cs @@ -0,0 +1,1104 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("c8d22afc-bc47-4bdf-9b04-787e49ce3f58")] + [NativeName("Name", "IMFTimedTextRegion")] + public unsafe partial struct IMFTimedTextRegion : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("c8d22afc-bc47-4bdf-9b04-787e49ce3f58"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextRegion val) + => Unsafe.As(ref val); + + public IMFTimedTextRegion + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetName(char** name) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, name); + return ret; + } + + /// To be documented. + public readonly unsafe int GetName(ref char* name) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** namePtr = &name) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, namePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(double* pX, double* pY, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pY, unitType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(double* pX, double* pY, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pY, unitTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(double* pX, ref double pY, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pYPtr = &pY) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pYPtr, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(double* pX, ref double pY, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pYPtr = &pY) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pYPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(ref double pX, double* pY, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pXPtr = &pX) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pY, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(ref double pX, double* pY, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pXPtr = &pX) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pY, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPosition(ref double pX, ref double pY, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pXPtr = &pX) + { + fixed (double* pYPtr = &pY) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pYPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly int GetPosition(ref double pX, ref double pY, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pXPtr = &pX) + { + fixed (double* pYPtr = &pY) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pYPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(double* pWidth, double* pHeight, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeight, unitType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(double* pWidth, double* pHeight, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeight, unitTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(double* pWidth, ref double pHeight, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pHeightPtr = &pHeight) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeightPtr, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(double* pWidth, ref double pHeight, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pHeightPtr = &pHeight) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeightPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(ref double pWidth, double* pHeight, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeight, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(ref double pWidth, double* pHeight, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeight, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetExtent(ref double pWidth, ref double pHeight, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + fixed (double* pHeightPtr = &pHeight) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeightPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly int GetExtent(ref double pWidth, ref double pHeight, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + fixed (double* pHeightPtr = &pHeight) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeightPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetBackgroundColor(_MFARGB* bgColor) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, bgColor); + return ret; + } + + /// To be documented. + public readonly int GetBackgroundColor(ref _MFARGB bgColor) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* bgColorPtr = &bgColor) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, bgColorPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetWritingMode(TimedTextWritingMode* writingMode) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, writingMode); + return ret; + } + + /// To be documented. + public readonly int GetWritingMode(ref TimedTextWritingMode writingMode) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextWritingMode* writingModePtr = &writingMode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, writingModePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetDisplayAlignment(TimedTextDisplayAlignment* displayAlign) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, displayAlign); + return ret; + } + + /// To be documented. + public readonly int GetDisplayAlignment(ref TimedTextDisplayAlignment displayAlign) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextDisplayAlignment* displayAlignPtr = &displayAlign) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, displayAlignPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetLineHeight(double* pLineHeight, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeight, unitType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLineHeight(double* pLineHeight, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeight, unitTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetLineHeight(ref double pLineHeight, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pLineHeightPtr = &pLineHeight) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeightPtr, unitType); + } + return ret; + } + + /// To be documented. + public readonly int GetLineHeight(ref double pLineHeight, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* pLineHeightPtr = &pLineHeight) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeightPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetClipOverflow(int* clipOverflow) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, clipOverflow); + return ret; + } + + /// To be documented. + public readonly int GetClipOverflow(ref int clipOverflow) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* clipOverflowPtr = &clipOverflow) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, clipOverflowPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, end, unitType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, end, unitTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, endPtr, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, endPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, end, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, end, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, endPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, double* start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, endPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, end, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, end, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, endPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, endPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, end, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, end, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, endPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(double* before, ref double start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, endPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, end, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, end, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, endPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, endPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, end, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, end, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, endPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, double* start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, endPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, end, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, end, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, endPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, endPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, end, unitType); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, end, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetPadding(ref double before, ref double start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, endPtr, unitType); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly int GetPadding(ref double before, ref double start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, endPtr, unitTypePtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetWrap(int* wrap) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, wrap); + return ret; + } + + /// To be documented. + public readonly int GetWrap(ref int wrap) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* wrapPtr = &wrap) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, wrapPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetZIndex(int* zIndex) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, zIndex); + return ret; + } + + /// To be documented. + public readonly int GetZIndex(ref int zIndex) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* zIndexPtr = &zIndex) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, zIndexPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetScrollMode(TimedTextScrollMode* scrollMode) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, scrollMode); + return ret; + } + + /// To be documented. + public readonly int GetScrollMode(ref TimedTextScrollMode scrollMode) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextScrollMode* scrollModePtr = &scrollMode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, scrollModePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetName(string[] nameSa) + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var name = (char**) SilkMarshal.StringArrayToPtr(nameSa); + var ret = @this->GetName(name); + SilkMarshal.CopyPtrToStringArray((nint) name, nameSa); + SilkMarshal.Free((nint) name); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextRegion*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextRuby.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextRuby.gen.cs new file mode 100644 index 0000000000..376d1ac031 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextRuby.gen.cs @@ -0,0 +1,228 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("76c6a6f5-4955-4de5-b27b-14b734cc14b4")] + [NativeName("Name", "IMFTimedTextRuby")] + public unsafe partial struct IMFTimedTextRuby : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("76c6a6f5-4955-4de5-b27b-14b734cc14b4"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextRuby val) + => Unsafe.As(ref val); + + public IMFTimedTextRuby + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetRubyText(char** rubyText) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, rubyText); + return ret; + } + + /// To be documented. + public readonly unsafe int GetRubyText(ref char* rubyText) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** rubyTextPtr = &rubyText) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, rubyTextPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetRubyPosition(TimedTextRubyPosition* value) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetRubyPosition(ref TimedTextRubyPosition value) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextRubyPosition* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetRubyAlign(TimedTextRubyAlign* value) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetRubyAlign(ref TimedTextRubyAlign value) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextRubyAlign* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetRubyReserve(TimedTextRubyReserve* value) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetRubyReserve(ref TimedTextRubyReserve value) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextRubyReserve* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetRubyText(string[] rubyTextSa) + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var rubyText = (char**) SilkMarshal.StringArrayToPtr(rubyTextSa); + var ret = @this->GetRubyText(rubyText); + SilkMarshal.CopyPtrToStringArray((nint) rubyText, rubyTextSa); + SilkMarshal.Free((nint) rubyText); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextRuby*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextStyle.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextStyle.gen.cs new file mode 100644 index 0000000000..aacc726217 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextStyle.gen.cs @@ -0,0 +1,663 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("09b2455d-b834-4f01-a347-9052e21c450e")] + [NativeName("Name", "IMFTimedTextStyle")] + public unsafe partial struct IMFTimedTextStyle : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("09b2455d-b834-4f01-a347-9052e21c450e"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextStyle val) + => Unsafe.As(ref val); + + public IMFTimedTextStyle + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetName(char** name) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, name); + return ret; + } + + /// To be documented. + public readonly unsafe int GetName(ref char* name) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** namePtr = &name) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, namePtr); + } + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsExternal() + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontFamily(char** fontFamily) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, fontFamily); + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontFamily(ref char* fontFamily) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** fontFamilyPtr = &fontFamily) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, fontFamilyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontSize(double* fontSize, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSize, unitType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontSize(double* fontSize, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSize, unitTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontSize(ref double fontSize, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* fontSizePtr = &fontSize) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSizePtr, unitType); + } + return ret; + } + + /// To be documented. + public readonly int GetFontSize(ref double fontSize, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* fontSizePtr = &fontSize) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSizePtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetColor(_MFARGB* color) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, color); + return ret; + } + + /// To be documented. + public readonly int GetColor(ref _MFARGB color) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, colorPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetBackgroundColor(_MFARGB* bgColor) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, bgColor); + return ret; + } + + /// To be documented. + public readonly int GetBackgroundColor(ref _MFARGB bgColor) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* bgColorPtr = &bgColor) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, bgColorPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetShowBackgroundAlways(int* showBackgroundAlways) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, showBackgroundAlways); + return ret; + } + + /// To be documented. + public readonly int GetShowBackgroundAlways(ref int showBackgroundAlways) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* showBackgroundAlwaysPtr = &showBackgroundAlways) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, showBackgroundAlwaysPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontStyle(TimedTextFontStyle* fontStyle) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, fontStyle); + return ret; + } + + /// To be documented. + public readonly int GetFontStyle(ref TimedTextFontStyle fontStyle) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextFontStyle* fontStylePtr = &fontStyle) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, fontStylePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetBold(int* bold) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, bold); + return ret; + } + + /// To be documented. + public readonly int GetBold(ref int bold) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* boldPtr = &bold) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, boldPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetRightToLeft(int* rightToLeft) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, rightToLeft); + return ret; + } + + /// To be documented. + public readonly int GetRightToLeft(ref int rightToLeft) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* rightToLeftPtr = &rightToLeft) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, rightToLeftPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextAlignment(TimedTextAlignment* textAlign) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textAlign); + return ret; + } + + /// To be documented. + public readonly int GetTextAlignment(ref TimedTextAlignment textAlign) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextAlignment* textAlignPtr = &textAlign) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textAlignPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextDecoration(uint* textDecoration) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, textDecoration); + return ret; + } + + /// To be documented. + public readonly int GetTextDecoration(ref uint textDecoration) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (uint* textDecorationPtr = &textDecoration) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, textDecorationPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, double* thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadius, unitType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, double* thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadius, unitTypePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, double* thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadiusPtr, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, double* thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadiusPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, ref double thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadius, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, ref double thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadius, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, ref double thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadiusPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(_MFARGB* color, ref double thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadiusPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, double* thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadius, unitType); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, double* thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadius, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, double* thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadiusPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, double* thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadiusPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, ref double thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadius, unitType); + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, ref double thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadius, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTextOutline(ref _MFARGB color, ref double thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadiusPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public readonly int GetTextOutline(ref _MFARGB color, ref double thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadiusPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetName(string[] nameSa) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var name = (char**) SilkMarshal.StringArrayToPtr(nameSa); + var ret = @this->GetName(name); + SilkMarshal.CopyPtrToStringArray((nint) name, nameSa); + SilkMarshal.Free((nint) name); + return ret; + } + + /// To be documented. + public readonly int GetFontFamily(string[] fontFamilySa) + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var fontFamily = (char**) SilkMarshal.StringArrayToPtr(fontFamilySa); + var ret = @this->GetFontFamily(fontFamily); + SilkMarshal.CopyPtrToStringArray((nint) fontFamily, fontFamilySa); + SilkMarshal.Free((nint) fontFamily); + return ret; + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextStyle*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextStyle2.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextStyle2.gen.cs new file mode 100644 index 0000000000..1234d38b12 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextStyle2.gen.cs @@ -0,0 +1,232 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("db639199-c809-4c89-bfca-d0bbb9729d6e")] + [NativeName("Name", "IMFTimedTextStyle2")] + public unsafe partial struct IMFTimedTextStyle2 : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("db639199-c809-4c89-bfca-d0bbb9729d6e"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextStyle2 val) + => Unsafe.As(ref val); + + public IMFTimedTextStyle2 + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetRuby(IMFTimedTextRuby** ruby) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ruby); + return ret; + } + + /// To be documented. + public readonly unsafe int GetRuby(ref IMFTimedTextRuby* ruby) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextRuby** rubyPtr = &ruby) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, rubyPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetBouten(IMFTimedTextBouten** bouten) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bouten); + return ret; + } + + /// To be documented. + public readonly unsafe int GetBouten(ref IMFTimedTextBouten* bouten) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextBouten** boutenPtr = &bouten) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, boutenPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int IsTextCombined(int* value) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, value); + return ret; + } + + /// To be documented. + public readonly int IsTextCombined(ref int value) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (int* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetFontAngleInDegrees(double* value) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, value); + return ret; + } + + /// To be documented. + public readonly int GetFontAngleInDegrees(ref double value) + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (double* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetRuby(ref ComPtr ruby) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetRuby((IMFTimedTextRuby**) ruby.GetAddressOf()); + } + + /// To be documented. + public readonly int GetBouten(ref ComPtr bouten) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetBouten((IMFTimedTextBouten**) bouten.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextStyle2*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextTrack.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextTrack.gen.cs new file mode 100644 index 0000000000..5bba503f0a --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextTrack.gen.cs @@ -0,0 +1,376 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("8822c32d-654e-4233-bf21-d7f2e67d30d4")] + [NativeName("Name", "IMFTimedTextTrack")] + public unsafe partial struct IMFTimedTextTrack : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("8822c32d-654e-4233-bf21-d7f2e67d30d4"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextTrack val) + => Unsafe.As(ref val); + + public IMFTimedTextTrack + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetId() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLabel(char** label) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, label); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLabel(ref char* label) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, labelPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int SetLabel([Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, label); + return ret; + } + + /// To be documented. + public readonly int SetLabel([Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, labelPtr); + } + return ret; + } + + /// To be documented. + public readonly int SetLabel([Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, labelPtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLanguage(char** language) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, language); + return ret; + } + + /// To be documented. + public readonly unsafe int GetLanguage(ref char* language) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, languagePtr); + } + return ret; + } + + /// To be documented. + public readonly TimedTextTrackKind GetTrackKind() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + TimedTextTrackKind ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsInBand() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetInBandMetadataTrackDispatchType(char** dispatchType) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, dispatchType); + return ret; + } + + /// To be documented. + public readonly unsafe int GetInBandMetadataTrackDispatchType(ref char* dispatchType) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (char** dispatchTypePtr = &dispatchType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, dispatchTypePtr); + } + return ret; + } + + /// To be documented. + public readonly Silk.NET.Core.Bool32 IsActive() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this); + return ret; + } + + /// To be documented. + public readonly TimedTextErrorCode GetErrorCode() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + TimedTextErrorCode ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this); + return ret; + } + + /// To be documented. + public readonly int GetExtendedErrorCode() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetDataFormat(Guid* format) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, format); + return ret; + } + + /// To be documented. + public readonly int GetDataFormat(ref Guid format) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* formatPtr = &format) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, formatPtr); + } + return ret; + } + + /// To be documented. + public readonly TimedTextTrackReadyState GetReadyState() + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + TimedTextTrackReadyState ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueList(IMFTimedTextCueList** cues) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, cues); + return ret; + } + + /// To be documented. + public readonly unsafe int GetCueList(ref IMFTimedTextCueList* cues) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextCueList** cuesPtr = &cues) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, cuesPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetLabel(string[] labelSa) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var label = (char**) SilkMarshal.StringArrayToPtr(labelSa); + var ret = @this->GetLabel(label); + SilkMarshal.CopyPtrToStringArray((nint) label, labelSa); + SilkMarshal.Free((nint) label); + return ret; + } + + /// To be documented. + public readonly int GetLanguage(string[] languageSa) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var language = (char**) SilkMarshal.StringArrayToPtr(languageSa); + var ret = @this->GetLanguage(language); + SilkMarshal.CopyPtrToStringArray((nint) language, languageSa); + SilkMarshal.Free((nint) language); + return ret; + } + + /// To be documented. + public readonly int GetInBandMetadataTrackDispatchType(string[] dispatchTypeSa) + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // StringArrayOverloader + var dispatchType = (char**) SilkMarshal.StringArrayToPtr(dispatchTypeSa); + var ret = @this->GetInBandMetadataTrackDispatchType(dispatchType); + SilkMarshal.CopyPtrToStringArray((nint) dispatchType, dispatchTypeSa); + SilkMarshal.Free((nint) dispatchType); + return ret; + } + + /// To be documented. + public readonly int GetCueList(ref ComPtr cues) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetCueList((IMFTimedTextCueList**) cues.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextTrack*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextTrackList.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextTrackList.gen.cs new file mode 100644 index 0000000000..775c278b3d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/IMFTimedTextTrackList.gen.cs @@ -0,0 +1,199 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [Guid("23ff334c-442c-445f-bccc-edc438aa11e2")] + [NativeName("Name", "IMFTimedTextTrackList")] + public unsafe partial struct IMFTimedTextTrackList : IComVtbl, IComVtbl + { + public static readonly Guid Guid = new("23ff334c-442c-445f-bccc-edc438aa11e2"); + + void*** IComVtbl.AsVtblPtr() + => (void***) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + + public static implicit operator Silk.NET.Core.Native.IUnknown(IMFTimedTextTrackList val) + => Unsafe.As(ref val); + + public IMFTimedTextTrackList + ( + void** lpVtbl = null + ) : this() + { + if (lpVtbl is not null) + { + LpVtbl = lpVtbl; + } + } + + + [NativeName("Type", "")] + [NativeName("Type.Name", "")] + [NativeName("Name", "lpVtbl")] + public void** LpVtbl; + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, void** ppvObject) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(Guid* riid, ref void* ppvObject) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, void** ppvObject) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public readonly unsafe int QueryInterface(ref Guid riid, ref void* ppvObject) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public readonly uint AddRef() + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public readonly uint Release() + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public readonly uint GetLength() + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTrack(uint index, IMFTimedTextTrack** track) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, track); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTrack(uint index, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, trackPtr); + } + return ret; + } + + /// To be documented. + public readonly unsafe int GetTrackById(uint trackId, IMFTimedTextTrack** track) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, trackId, track); + return ret; + } + + /// To be documented. + public readonly unsafe int GetTrackById(uint trackId, ref IMFTimedTextTrack* track) + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + int ret = default; + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, trackId, trackPtr); + } + return ret; + } + + /// To be documented. + public readonly int QueryInterface(out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public readonly int GetTrack(uint index, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetTrack(index, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly int GetTrackById(uint trackId, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // ComPtrOverloader + return @this->GetTrackById(trackId, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public readonly ComPtr QueryInterface() where TI0 : unmanaged, IComVtbl + { + var @this = (IMFTimedTextTrackList*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)); + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + } +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFBufferListNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFBufferListNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..6637c1840b --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFBufferListNotifyVtblExtensions.gen.cs @@ -0,0 +1,135 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFBufferListNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static void OnAddSourceBuffer(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + } + + /// To be documented. + public static void OnRemoveSourceBuffer(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFCdmSuspendNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFCdmSuspendNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..7750468727 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFCdmSuspendNotifyVtblExtensions.gen.cs @@ -0,0 +1,139 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFCdmSuspendNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static int Begin(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static int End(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFExtendedDRMTypeSupportVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFExtendedDRMTypeSupportVtblExtensions.gen.cs new file mode 100644 index 0000000000..c59e6fe064 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFExtendedDRMTypeSupportVtblExtensions.gen.cs @@ -0,0 +1,482 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFExtendedDRMTypeSupportVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystem, pAnswer); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, char* keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystem, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, ref char keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswer); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, ref char keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswer); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, type, keySystemPtr, pAnswerPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, ref char type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswer); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, ref char type, char* keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, ref char type, ref char keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + } + } + return ret; + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, ref char type, ref char keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystem, pAnswerPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswer); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, typePtr, keySystemPtr, pAnswerPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, char* keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, keySystem, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, Span keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, ref keySystem.GetPinnableReference(), pAnswer); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, Span keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, ref keySystem.GetPinnableReference(), ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, keySystem, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, Span type, char* keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(ref type.GetPinnableReference(), keySystem, pAnswer); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, Span type, char* keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(ref type.GetPinnableReference(), keySystem, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, Span type, Span keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(ref type.GetPinnableReference(), ref keySystem.GetPinnableReference(), pAnswer); + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, Span type, Span keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(ref type.GetPinnableReference(), ref keySystem.GetPinnableReference(), ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, Span type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(ref type.GetPinnableReference(), keySystem, pAnswer); + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, Span type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(ref type.GetPinnableReference(), keySystem, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, keySystem, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span keySystem, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, ref keySystem.GetPinnableReference(), pAnswer); + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, ref keySystem.GetPinnableReference(), ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static int IsTypeSupportedEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupportedEx(type, keySystem, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFHDCPStatusVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFHDCPStatusVtblExtensions.gen.cs new file mode 100644 index 0000000000..136b0890ca --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFHDCPStatusVtblExtensions.gen.cs @@ -0,0 +1,202 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFHDCPStatusVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int Query(this ComPtr thisVtbl, HdcpStatus* pStatus, int* pfStatus) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pfStatus); + return ret; + } + + /// To be documented. + public static unsafe int Query(this ComPtr thisVtbl, HdcpStatus* pStatus, ref int pfStatus) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pfStatusPtr = &pfStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pfStatusPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int Query(this ComPtr thisVtbl, ref HdcpStatus pStatus, int* pfStatus) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (HdcpStatus* pStatusPtr = &pStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pfStatus); + } + return ret; + } + + /// To be documented. + public static int Query(this ComPtr thisVtbl, ref HdcpStatus pStatus, ref int pfStatus) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (HdcpStatus* pStatusPtr = &pStatus) + { + fixed (int* pfStatusPtr = &pfStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pfStatusPtr); + } + } + return ret; + } + + /// To be documented. + public static int Set(this ComPtr thisVtbl, HdcpStatus status) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, status); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int Query(this ComPtr thisVtbl, HdcpStatus* pStatus, Span pfStatus) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Query(pStatus, ref pfStatus.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int Query(this ComPtr thisVtbl, Span pStatus, int* pfStatus) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Query(ref pStatus.GetPinnableReference(), pfStatus); + } + + /// To be documented. + public static int Query(this ComPtr thisVtbl, Span pStatus, Span pfStatus) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Query(ref pStatus.GetPinnableReference(), ref pfStatus.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineAudioEndpointIdVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineAudioEndpointIdVtblExtensions.gen.cs new file mode 100644 index 0000000000..5f10f8a7ed --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineAudioEndpointIdVtblExtensions.gen.cs @@ -0,0 +1,194 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineAudioEndpointIdVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int SetAudioEndpointId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* pszEndpointId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pszEndpointId); + return ret; + } + + /// To be documented. + public static int SetAudioEndpointId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char pszEndpointId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pszEndpointIdPtr = &pszEndpointId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pszEndpointIdPtr); + } + return ret; + } + + /// To be documented. + public static int SetAudioEndpointId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string pszEndpointId) + { + var @this = thisVtbl.Handle; + int ret = default; + var pszEndpointIdPtr = (byte*) SilkMarshal.StringToPtr(pszEndpointId, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pszEndpointIdPtr); + SilkMarshal.Free((nint)pszEndpointIdPtr); + return ret; + } + + /// To be documented. + public static unsafe int GetAudioEndpointId(this ComPtr thisVtbl, char** ppszEndpointId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppszEndpointId); + return ret; + } + + /// To be documented. + public static unsafe int GetAudioEndpointId(this ComPtr thisVtbl, ref char* ppszEndpointId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** ppszEndpointIdPtr = &ppszEndpointId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppszEndpointIdPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int SetAudioEndpointId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pszEndpointId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetAudioEndpointId(in pszEndpointId.GetPinnableReference()); + } + + /// To be documented. + public static int GetAudioEndpointId(this ComPtr thisVtbl, string[] ppszEndpointIdSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var ppszEndpointId = (char**) SilkMarshal.StringArrayToPtr(ppszEndpointIdSa); + var ret = @this->GetAudioEndpointId(ppszEndpointId); + SilkMarshal.CopyPtrToStringArray((nint) ppszEndpointId, ppszEndpointIdSa); + SilkMarshal.Free((nint) ppszEndpointId); + return ret; + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory2VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory2VtblExtensions.gen.cs new file mode 100644 index 0000000000..68727c315b --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory2VtblExtensions.gen.cs @@ -0,0 +1,1478 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineClassFactory2VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePath, ppKeysPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePath, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* defaultCdmStorePathPtr = &defaultCdmStorePath) + { + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeys); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + fixed (char* inprivateCdmStorePathPtr = &inprivateCdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var defaultCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(defaultCdmStorePath, NativeStringEncoding.BStr); + var inprivateCdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(inprivateCdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, defaultCdmStorePathPtr, inprivateCdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)inprivateCdmStorePathPtr); + SilkMarshal.Free((nint)defaultCdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, Span defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, Span defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, Span defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, Span defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, Span defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, Span defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, char* defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, char* defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, Span defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, Span defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, Span defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), ref defaultCdmStorePath.GetPinnableReference(), ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, ref defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, Span defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), ref defaultCdmStorePath.GetPinnableReference(), ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, Span defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, Span defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(ref keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(ref keySystem.GetPinnableReference(), defaultCdmStorePath, inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span defaultCdmStorePath, char* inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span defaultCdmStorePath, char* inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, ref defaultCdmStorePath.GetPinnableReference(), inprivateCdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, char* inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, Span inprivateCdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, ref char inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, Span inprivateCdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, ref inprivateCdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys2(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string defaultCdmStorePath, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string inprivateCdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys2(keySystem, defaultCdmStorePath, inprivateCdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory3VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory3VtblExtensions.gen.cs new file mode 100644 index 0000000000..73a70677f2 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory3VtblExtensions.gen.cs @@ -0,0 +1,365 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineClassFactory3VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, char* keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArray, uSize, ppKeyAccess); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, char* keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArray, uSize, ppKeyAccessPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, char* keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccess); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, char* keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccessPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, ref char keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccess); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, ref char keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccessPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, ref char keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccess); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, ref char keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccessPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccess); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArray, uSize, ppKeyAccessPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccess); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IPropertyStore** ppSupportedConfigurationsArrayPtr = &ppSupportedConfigurationsArray) + { + fixed (IMFMediaKeySystemAccess** ppKeyAccessPtr = &ppKeyAccess) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, ppSupportedConfigurationsArrayPtr, uSize, ppKeyAccessPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, char* keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, char* keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ref ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, Span keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem.GetPinnableReference(), ppSupportedConfigurationsArray, uSize, ppKeyAccess); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, ref char keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem, ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, Span keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem.GetPinnableReference(), ppSupportedConfigurationsArray, uSize, ref ppKeyAccess); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, Span keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, IMFMediaKeySystemAccess** ppKeyAccess) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem.GetPinnableReference(), ref ppSupportedConfigurationsArray, uSize, ppKeyAccess); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, ref char keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem, ref ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, Span keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref IMFMediaKeySystemAccess* ppKeyAccess) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeySystemAccess(ref keySystem.GetPinnableReference(), ref ppSupportedConfigurationsArray, uSize, ref ppKeyAccess); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, IPropertyStore** ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeySystemAccess(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref IPropertyStore* ppSupportedConfigurationsArray, uint uSize, ref ComPtr ppKeyAccess) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeySystemAccess(keySystem, ref ppSupportedConfigurationsArray, uSize, (IMFMediaKeySystemAccess**) ppKeyAccess.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory4VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory4VtblExtensions.gen.cs new file mode 100644 index 0000000000..507617192f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactory4VtblExtensions.gen.cs @@ -0,0 +1,403 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineClassFactory4VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystem, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObject); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObjectPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObject); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riid, ppvObjectPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObject); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.LPWStr); + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keySystemPtr, riidPtr, ppvObjectPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->CreateContentDecryptionModuleFactory(keySystem, SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(keySystem, ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(keySystem, ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan keySystem, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(in keySystem.GetPinnableReference(), riid, ppvObject); + } + + /// To be documented. + public static int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->CreateContentDecryptionModuleFactory(in keySystem, SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan keySystem, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(in keySystem.GetPinnableReference(), riid, ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan keySystem, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(in keySystem.GetPinnableReference(), ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan keySystem, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(in keySystem.GetPinnableReference(), ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->CreateContentDecryptionModuleFactory(keySystem, SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(keySystem, ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateContentDecryptionModuleFactory(keySystem, ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + + /// To be documented. + public static unsafe ComPtr CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* keySystem) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->CreateContentDecryptionModuleFactory(keySystem, out ComPtr silkRet)); + return silkRet; + } + + /// To be documented. + public static ComPtr CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char keySystem) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->CreateContentDecryptionModuleFactory(in keySystem, out ComPtr silkRet)); + return silkRet; + } + + /// To be documented. + public static ComPtr CreateContentDecryptionModuleFactory(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string keySystem) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->CreateContentDecryptionModuleFactory(keySystem, out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactoryExVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactoryExVtblExtensions.gen.cs new file mode 100644 index 0000000000..e640845ec3 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactoryExVtblExtensions.gen.cs @@ -0,0 +1,1101 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineClassFactoryExVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, IMFMediaEngine** ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayer); + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayerPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, IMFMediaEngine** ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayer); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateTimeRange(this ComPtr thisVtbl, IMFMediaTimeRange** ppTimeRange) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRange); + return ret; + } + + /// To be documented. + public static unsafe int CreateTimeRange(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppTimeRange) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppTimeRangePtr = &ppTimeRange) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRangePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateError(this ComPtr thisVtbl, IMFMediaError** ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppError); + return ret; + } + + /// To be documented. + public static unsafe int CreateError(this ComPtr thisVtbl, ref IMFMediaError* ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttr, ppMSE); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttr, ppMSEPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttrPtr, ppMSE); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, dwFlags, pAttrPtr, ppMSEPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePath, ppKeys); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePath, ppKeysPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, ref char cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeys); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, ref char cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)cdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystem, cdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)cdmStorePathPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeys); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, ref char cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, ref char cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)cdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)cdmStorePathPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeys); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePath, ppKeysPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (char* cdmStorePathPtr = &cdmStorePath) + { + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeys); + SilkMarshal.Free((nint)cdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + var cdmStorePathPtr = (byte*) SilkMarshal.StringToPtr(cdmStorePath, NativeStringEncoding.BStr); + fixed (IMFMediaKeys** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, keySystemPtr, cdmStorePathPtr, ppKeysPtr); + } + SilkMarshal.Free((nint)cdmStorePathPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, char* keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystem, isSupported); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, char* keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystem, isSupportedPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, ref char keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupported); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, ref char keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupportedPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupported); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, keySystemPtr, isSupportedPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, ref char type, char* keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupported); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, ref char type, char* keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupportedPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, ref char type, ref char keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + } + } + return ret; + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, ref char type, ref char keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (char* keySystemPtr = &keySystem) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, ref char type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupported); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystem, isSupportedPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref char keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupported); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref int isSupported) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + fixed (int* isSupportedPtr = &isSupported) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, keySystemPtr, isSupportedPtr); + } + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateInstance(dwFlags, pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, Span pAttr, IMFMediaEngine** ppPlayer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateInstance(dwFlags, ref pAttr.GetPinnableReference(), ppPlayer); + } + + /// To be documented. + public static int CreateInstance(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateInstance(dwFlags, ref pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, Span pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateInstance(dwFlags, ref pAttr.GetPinnableReference(), ref ppPlayer); + } + + /// To be documented. + public static int CreateTimeRange(this ComPtr thisVtbl, ref ComPtr ppTimeRange) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateTimeRange((IMFMediaTimeRange**) ppTimeRange.GetAddressOf()); + } + + /// To be documented. + public static int CreateError(this ComPtr thisVtbl, ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaSourceExtension(dwFlags, pAttr, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, Span pAttr, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaSourceExtension(dwFlags, ref pAttr.GetPinnableReference(), ppMSE); + } + + /// To be documented. + public static int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaSourceExtension(dwFlags, ref pAttr, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaSourceExtension(this ComPtr thisVtbl, uint dwFlags, Span pAttr, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaSourceExtension(dwFlags, ref pAttr.GetPinnableReference(), ref ppMSE); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, char* cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, Span cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, ref char cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, Span cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, char* keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span keySystem, char* cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref keySystem.GetPinnableReference(), cdmStorePath, ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, char* cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(ref keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span keySystem, char* cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref keySystem.GetPinnableReference(), cdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span keySystem, Span cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref keySystem.GetPinnableReference(), ref cdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, ref char cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(ref keySystem, ref cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span keySystem, Span cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref keySystem.GetPinnableReference(), ref cdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref keySystem.GetPinnableReference(), cdmStorePath, ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys(this ComPtr thisVtbl, ref char keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(ref keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref keySystem.GetPinnableReference(), cdmStorePath, ref ppKeys); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, char* cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span cdmStorePath, IMFMediaKeys** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, ref char cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span cdmStorePath, ref IMFMediaKeys* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(keySystem, ref cdmStorePath.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string cdmStorePath, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(keySystem, cdmStorePath, (IMFMediaKeys**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, char* keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, keySystem, ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, Span keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, ref keySystem.GetPinnableReference(), isSupported); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, Span keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, ref keySystem.GetPinnableReference(), ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, char* type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, keySystem, ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, Span type, char* keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference(), keySystem, isSupported); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, Span type, char* keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference(), keySystem, ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, Span type, Span keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference(), ref keySystem.GetPinnableReference(), isSupported); + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, Span type, Span keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference(), ref keySystem.GetPinnableReference(), ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, Span type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference(), keySystem, isSupported); + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, Span type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference(), keySystem, ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, char* keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, keySystem, ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span keySystem, int* isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, ref keySystem.GetPinnableReference(), isSupported); + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, ref keySystem.GetPinnableReference(), ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static int IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem, Span isSupported) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(type, keySystem, ref isSupported.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactoryVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactoryVtblExtensions.gen.cs new file mode 100644 index 0000000000..69bf2c7e4f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineClassFactoryVtblExtensions.gen.cs @@ -0,0 +1,259 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineClassFactoryVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, IMFMediaEngine** ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayer); + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttr, ppPlayerPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, IMFMediaEngine** ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayer); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAttributes* pAttrPtr = &pAttr) + { + fixed (IMFMediaEngine** ppPlayerPtr = &ppPlayer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dwFlags, pAttrPtr, ppPlayerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateTimeRange(this ComPtr thisVtbl, IMFMediaTimeRange** ppTimeRange) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRange); + return ret; + } + + /// To be documented. + public static unsafe int CreateTimeRange(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppTimeRange) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppTimeRangePtr = &ppTimeRange) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppTimeRangePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateError(this ComPtr thisVtbl, IMFMediaError** ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppError); + return ret; + } + + /// To be documented. + public static unsafe int CreateError(this ComPtr thisVtbl, ref IMFMediaError* ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, IMFAttributes* pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateInstance(dwFlags, pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, Span pAttr, IMFMediaEngine** ppPlayer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateInstance(dwFlags, ref pAttr.GetPinnableReference(), ppPlayer); + } + + /// To be documented. + public static int CreateInstance(this ComPtr thisVtbl, uint dwFlags, ref IMFAttributes pAttr, ref ComPtr ppPlayer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateInstance(dwFlags, ref pAttr, (IMFMediaEngine**) ppPlayer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateInstance(this ComPtr thisVtbl, uint dwFlags, Span pAttr, ref IMFMediaEngine* ppPlayer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateInstance(dwFlags, ref pAttr.GetPinnableReference(), ref ppPlayer); + } + + /// To be documented. + public static int CreateTimeRange(this ComPtr thisVtbl, ref ComPtr ppTimeRange) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateTimeRange((IMFMediaTimeRange**) ppTimeRange.GetAddressOf()); + } + + /// To be documented. + public static int CreateError(this ComPtr thisVtbl, ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineEMENotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineEMENotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..ef8a7b177f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineEMENotifyVtblExtensions.gen.cs @@ -0,0 +1,261 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineEMENotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, char* bstrInitDataType) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitData, cb, bstrInitDataType); + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, ref char bstrInitDataType) + { + var @this = thisVtbl.Handle; + fixed (char* bstrInitDataTypePtr = &bstrInitDataType) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitData, cb, bstrInitDataTypePtr); + } + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = thisVtbl.Handle; + var bstrInitDataTypePtr = (byte*) SilkMarshal.StringToPtr(bstrInitDataType, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitData, cb, bstrInitDataTypePtr); + SilkMarshal.Free((nint)bstrInitDataTypePtr); + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb, char* bstrInitDataType) + { + var @this = thisVtbl.Handle; + fixed (byte* pbInitDataPtr = &pbInitData) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataType); + } + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb, ref char bstrInitDataType) + { + var @this = thisVtbl.Handle; + fixed (byte* pbInitDataPtr = &pbInitData) + { + fixed (char* bstrInitDataTypePtr = &bstrInitDataType) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + } + } + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = thisVtbl.Handle; + fixed (byte* pbInitDataPtr = &pbInitData) + { + var bstrInitDataTypePtr = (byte*) SilkMarshal.StringToPtr(bstrInitDataType, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + SilkMarshal.Free((nint)bstrInitDataTypePtr); + } + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, char* bstrInitDataType) + { + var @this = thisVtbl.Handle; + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataType); + SilkMarshal.Free((nint)pbInitDataPtr); + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, ref char bstrInitDataType) + { + var @this = thisVtbl.Handle; + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + fixed (char* bstrInitDataTypePtr = &bstrInitDataType) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + } + SilkMarshal.Free((nint)pbInitDataPtr); + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = thisVtbl.Handle; + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + var bstrInitDataTypePtr = (byte*) SilkMarshal.StringToPtr(bstrInitDataType, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pbInitDataPtr, cb, bstrInitDataTypePtr); + SilkMarshal.Free((nint)bstrInitDataTypePtr); + SilkMarshal.Free((nint)pbInitDataPtr); + } + + /// To be documented. + public static void WaitingForKey(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb, Span bstrInitDataType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->Encrypted(pbInitData, cb, ref bstrInitDataType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbInitData, uint cb, char* bstrInitDataType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->Encrypted(in pbInitData.GetPinnableReference(), cb, bstrInitDataType); + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbInitData, uint cb, Span bstrInitDataType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->Encrypted(in pbInitData.GetPinnableReference(), cb, ref bstrInitDataType.GetPinnableReference()); + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbInitData, uint cb, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrInitDataType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->Encrypted(in pbInitData.GetPinnableReference(), cb, bstrInitDataType); + } + + /// To be documented. + public static void Encrypted(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb, Span bstrInitDataType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->Encrypted(pbInitData, cb, ref bstrInitDataType.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineEMEVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineEMEVtblExtensions.gen.cs new file mode 100644 index 0000000000..4a94eb5bcb --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineEMEVtblExtensions.gen.cs @@ -0,0 +1,187 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineEMEVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetKeys(this ComPtr thisVtbl, IMFMediaKeys** keys) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keys); + return ret; + } + + /// To be documented. + public static unsafe int GetKeys(this ComPtr thisVtbl, ref IMFMediaKeys* keys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeys** keysPtr = &keys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, keysPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetMediaKeys(this ComPtr thisVtbl, IMFMediaKeys* keys) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keys); + return ret; + } + + /// To be documented. + public static int SetMediaKeys(this ComPtr thisVtbl, ref IMFMediaKeys keys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeys* keysPtr = &keys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keysPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetKeys(this ComPtr thisVtbl, ref ComPtr keys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetKeys((IMFMediaKeys**) keys.GetAddressOf()); + } + + /// To be documented. + public static int SetMediaKeys(this ComPtr thisVtbl, ComPtr keys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->SetMediaKeys((IMFMediaKeys*) keys.Handle); + } + + /// To be documented. + public static int SetMediaKeys(this ComPtr thisVtbl, Span keys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetMediaKeys(ref keys.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineExVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineExVtblExtensions.gen.cs new file mode 100644 index 0000000000..74f3ba8958 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineExVtblExtensions.gen.cs @@ -0,0 +1,2317 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineExVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, IMFMediaError** ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppError); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ref IMFMediaError* ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public static int SetErrorCode(this ComPtr thisVtbl, MediaEngineError error) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, error); + return ret; + } + + /// To be documented. + public static unsafe int SetSourceElements(this ComPtr thisVtbl, IMFMediaEngineSrcElements* pSrcElements) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElements); + return ret; + } + + /// To be documented. + public static int SetSourceElements(this ComPtr thisVtbl, ref IMFMediaEngineSrcElements pSrcElements) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaEngineSrcElements* pSrcElementsPtr = &pSrcElements) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElementsPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetSource(this ComPtr thisVtbl, char* pUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrl); + return ret; + } + + /// To be documented. + public static int SetSource(this ComPtr thisVtbl, ref char pUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pUrlPtr = &pUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + } + return ret; + } + + /// To be documented. + public static int SetSource(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + var pUrlPtr = (byte*) SilkMarshal.StringToPtr(pUrl, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + SilkMarshal.Free((nint)pUrlPtr); + return ret; + } + + /// To be documented. + public static unsafe int GetCurrentSource(this ComPtr thisVtbl, char** ppUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrl); + return ret; + } + + /// To be documented. + public static unsafe int GetCurrentSource(this ComPtr thisVtbl, ref char* ppUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** ppUrlPtr = &ppUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrlPtr); + } + return ret; + } + + /// To be documented. + public static ushort GetNetworkState(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static MediaEnginePreload GetPreload(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + MediaEnginePreload ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + return ret; + } + + /// To be documented. + public static int SetPreload(this ComPtr thisVtbl, MediaEnginePreload Preload) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, Preload); + return ret; + } + + /// To be documented. + public static unsafe int GetBuffered(this ComPtr thisVtbl, IMFMediaTimeRange** ppBuffered) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBuffered); + return ret; + } + + /// To be documented. + public static unsafe int GetBuffered(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppBuffered) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppBufferedPtr = &ppBuffered) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBufferedPtr); + } + return ret; + } + + /// To be documented. + public static int Load(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, char* type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswer); + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, char* type, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, ref char type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + } + return ret; + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, ref char type, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static ushort GetReadyState(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsSeeking(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this); + return ret; + } + + /// To be documented. + public static double GetCurrentTime(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[16])(@this); + return ret; + } + + /// To be documented. + public static int SetCurrentTime(this ComPtr thisVtbl, double seekTime) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[17])(@this, seekTime); + return ret; + } + + /// To be documented. + public static double GetStartTime(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[18])(@this); + return ret; + } + + /// To be documented. + public static double GetDuration(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[19])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsPaused(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[20])(@this); + return ret; + } + + /// To be documented. + public static double GetDefaultPlaybackRate(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[21])(@this); + return ret; + } + + /// To be documented. + public static int SetDefaultPlaybackRate(this ComPtr thisVtbl, double Rate) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[22])(@this, Rate); + return ret; + } + + /// To be documented. + public static double GetPlaybackRate(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[23])(@this); + return ret; + } + + /// To be documented. + public static int SetPlaybackRate(this ComPtr thisVtbl, double Rate) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[24])(@this, Rate); + return ret; + } + + /// To be documented. + public static unsafe int GetPlayed(this ComPtr thisVtbl, IMFMediaTimeRange** ppPlayed) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayed); + return ret; + } + + /// To be documented. + public static unsafe int GetPlayed(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppPlayed) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppPlayedPtr = &ppPlayed) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayedPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSeekable(this ComPtr thisVtbl, IMFMediaTimeRange** ppSeekable) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekable); + return ret; + } + + /// To be documented. + public static unsafe int GetSeekable(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppSeekable) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppSeekablePtr = &ppSeekable) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekablePtr); + } + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsEnded(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[27])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetAutoPlay(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[28])(@this); + return ret; + } + + /// To be documented. + public static int SetAutoPlay(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AutoPlay) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[29])(@this, AutoPlay); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetLoop(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[30])(@this); + return ret; + } + + /// To be documented. + public static int SetLoop(this ComPtr thisVtbl, Silk.NET.Core.Bool32 Loop) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[31])(@this, Loop); + return ret; + } + + /// To be documented. + public static int Play(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[32])(@this); + return ret; + } + + /// To be documented. + public static int Pause(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[33])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetMuted(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[34])(@this); + return ret; + } + + /// To be documented. + public static int SetMuted(this ComPtr thisVtbl, Silk.NET.Core.Bool32 Muted) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[35])(@this, Muted); + return ret; + } + + /// To be documented. + public static double GetVolume(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[36])(@this); + return ret; + } + + /// To be documented. + public static int SetVolume(this ComPtr thisVtbl, double Volume) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[37])(@this, Volume); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 HasVideo(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[38])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 HasAudio(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[39])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, uint* cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cy); + return ret; + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, uint* cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, ref uint cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public static int GetNativeVideoSize(this ComPtr thisVtbl, ref uint cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, uint* cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cy); + return ret; + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, uint* cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, ref uint cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public static int GetVideoAspectRatio(this ComPtr thisVtbl, ref uint cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public static int Shutdown(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[42])(@this); + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClr); + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr); + } + } + } + return ret; + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int OnVideoStreamTick(this ComPtr thisVtbl, long* pPts) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPts); + return ret; + } + + /// To be documented. + public static int OnVideoStreamTick(this ComPtr thisVtbl, ref long pPts) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (long* pPtsPtr = &pPts) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPtsPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetSourceFromByteStream(this ComPtr thisVtbl, IMFByteStream* pByteStream, char* pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStream, pURL); + return ret; + } + + /// To be documented. + public static unsafe int SetSourceFromByteStream(this ComPtr thisVtbl, IMFByteStream* pByteStream, ref char pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStream, pURLPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetSourceFromByteStream(this ComPtr thisVtbl, IMFByteStream* pByteStream, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStream, pURLPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int SetSourceFromByteStream(this ComPtr thisVtbl, ref IMFByteStream pByteStream, char* pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStreamPtr, pURL); + } + return ret; + } + + /// To be documented. + public static int SetSourceFromByteStream(this ComPtr thisVtbl, ref IMFByteStream pByteStream, ref char pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStreamPtr, pURLPtr); + } + } + return ret; + } + + /// To be documented. + public static int SetSourceFromByteStream(this ComPtr thisVtbl, ref IMFByteStream pByteStream, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[45])(@this, pByteStreamPtr, pURLPtr); + SilkMarshal.Free((nint)pURLPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetStatistics(this ComPtr thisVtbl, MediaEngineStatistic StatisticID, tagPROPVARIANT* pStatistic) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[46])(@this, StatisticID, pStatistic); + return ret; + } + + /// To be documented. + public static int GetStatistics(this ComPtr thisVtbl, MediaEngineStatistic StatisticID, ref tagPROPVARIANT pStatistic) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (tagPROPVARIANT* pStatisticPtr = &pStatistic) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[46])(@this, StatisticID, pStatisticPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDst, pBorderClr); + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDst, pBorderClrPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDstPtr, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrc, pDstPtr, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[47])(@this, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static double GetBalance(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[48])(@this); + return ret; + } + + /// To be documented. + public static int SetBalance(this ComPtr thisVtbl, double balance) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[49])(@this, balance); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsPlaybackRateSupported(this ComPtr thisVtbl, double rate) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[50])(@this, rate); + return ret; + } + + /// To be documented. + public static int FrameStep(this ComPtr thisVtbl, Silk.NET.Core.Bool32 Forward) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[51])(@this, Forward); + return ret; + } + + /// To be documented. + public static unsafe int GetResourceCharacteristics(this ComPtr thisVtbl, uint* pCharacteristics) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[52])(@this, pCharacteristics); + return ret; + } + + /// To be documented. + public static int GetResourceCharacteristics(this ComPtr thisVtbl, ref uint pCharacteristics) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pCharacteristicsPtr = &pCharacteristics) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[52])(@this, pCharacteristicsPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPresentationAttribute(this ComPtr thisVtbl, Guid* guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttribute, pvValue); + return ret; + } + + /// To be documented. + public static unsafe int GetPresentationAttribute(this ComPtr thisVtbl, Guid* guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttribute, pvValuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPresentationAttribute(this ComPtr thisVtbl, ref Guid guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttributePtr, pvValue); + } + return ret; + } + + /// To be documented. + public static int GetPresentationAttribute(this ComPtr thisVtbl, ref Guid guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[53])(@this, guidMFAttributePtr, pvValuePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetNumberOfStreams(this ComPtr thisVtbl, uint* pdwStreamCount) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[54])(@this, pdwStreamCount); + return ret; + } + + /// To be documented. + public static int GetNumberOfStreams(this ComPtr thisVtbl, ref uint pdwStreamCount) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pdwStreamCountPtr = &pdwStreamCount) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[54])(@this, pdwStreamCountPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, Guid* guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttribute, pvValue); + return ret; + } + + /// To be documented. + public static unsafe int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, Guid* guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttribute, pvValuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, ref Guid guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttributePtr, pvValue); + } + return ret; + } + + /// To be documented. + public static int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, ref Guid guidMFAttribute, ref tagPROPVARIANT pvValue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* guidMFAttributePtr = &guidMFAttribute) + { + fixed (tagPROPVARIANT* pvValuePtr = &pvValue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[55])(@this, dwStreamIndex, guidMFAttributePtr, pvValuePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetStreamSelection(this ComPtr thisVtbl, uint dwStreamIndex, int* pEnabled) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[56])(@this, dwStreamIndex, pEnabled); + return ret; + } + + /// To be documented. + public static int GetStreamSelection(this ComPtr thisVtbl, uint dwStreamIndex, ref int pEnabled) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pEnabledPtr = &pEnabled) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[56])(@this, dwStreamIndex, pEnabledPtr); + } + return ret; + } + + /// To be documented. + public static int SetStreamSelection(this ComPtr thisVtbl, uint dwStreamIndex, Silk.NET.Core.Bool32 Enabled) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[57])(@this, dwStreamIndex, Enabled); + return ret; + } + + /// To be documented. + public static int ApplyStreamSelections(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[58])(@this); + return ret; + } + + /// To be documented. + public static unsafe int IsProtected(this ComPtr thisVtbl, int* pProtected) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[59])(@this, pProtected); + return ret; + } + + /// To be documented. + public static int IsProtected(this ComPtr thisVtbl, ref int pProtected) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pProtectedPtr = &pProtected) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[59])(@this, pProtectedPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int InsertVideoEffect(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[60])(@this, pEffect, fOptional); + return ret; + } + + /// To be documented. + public static int InsertVideoEffect(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pEffectPtr = &pEffect) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[60])(@this, pEffectPtr, fOptional); + } + return ret; + } + + /// To be documented. + public static unsafe int InsertAudioEffect(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[61])(@this, pEffect, fOptional); + return ret; + } + + /// To be documented. + public static int InsertAudioEffect(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pEffectPtr = &pEffect) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[61])(@this, pEffectPtr, fOptional); + } + return ret; + } + + /// To be documented. + public static int RemoveAllEffects(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[62])(@this); + return ret; + } + + /// To be documented. + public static int SetTimelineMarkerTimer(this ComPtr thisVtbl, double timeToFire) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[63])(@this, timeToFire); + return ret; + } + + /// To be documented. + public static unsafe int GetTimelineMarkerTimer(this ComPtr thisVtbl, double* pTimeToFire) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[64])(@this, pTimeToFire); + return ret; + } + + /// To be documented. + public static int GetTimelineMarkerTimer(this ComPtr thisVtbl, ref double pTimeToFire) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pTimeToFirePtr = &pTimeToFire) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[64])(@this, pTimeToFirePtr); + } + return ret; + } + + /// To be documented. + public static int CancelTimelineMarkerTimer(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[65])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsStereo3D(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[66])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetStereo3DFramePackingMode(this ComPtr thisVtbl, MediaEngineS3DPackingMode* packMode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[67])(@this, packMode); + return ret; + } + + /// To be documented. + public static int GetStereo3DFramePackingMode(this ComPtr thisVtbl, ref MediaEngineS3DPackingMode packMode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineS3DPackingMode* packModePtr = &packMode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[67])(@this, packModePtr); + } + return ret; + } + + /// To be documented. + public static int SetStereo3DFramePackingMode(this ComPtr thisVtbl, MediaEngineS3DPackingMode packMode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[68])(@this, packMode); + return ret; + } + + /// To be documented. + public static unsafe int GetStereo3DRenderMode(this ComPtr thisVtbl, _MF3DVideoOutputType* outputType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[69])(@this, outputType); + return ret; + } + + /// To be documented. + public static int GetStereo3DRenderMode(this ComPtr thisVtbl, ref _MF3DVideoOutputType outputType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MF3DVideoOutputType* outputTypePtr = &outputType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[69])(@this, outputTypePtr); + } + return ret; + } + + /// To be documented. + public static int SetStereo3DRenderMode(this ComPtr thisVtbl, _MF3DVideoOutputType outputType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[70])(@this, outputType); + return ret; + } + + /// To be documented. + public static int EnableWindowlessSwapchainMode(this ComPtr thisVtbl, Silk.NET.Core.Bool32 fEnable) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[71])(@this, fEnable); + return ret; + } + + /// To be documented. + public static unsafe int GetVideoSwapchainHandle(this ComPtr thisVtbl, void** phSwapchain) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[72])(@this, phSwapchain); + return ret; + } + + /// To be documented. + public static unsafe int GetVideoSwapchainHandle(this ComPtr thisVtbl, ref void* phSwapchain) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** phSwapchainPtr = &phSwapchain) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[72])(@this, phSwapchainPtr); + } + return ret; + } + + /// To be documented. + public static int EnableHorizontalMirrorMode(this ComPtr thisVtbl, Silk.NET.Core.Bool32 fEnable) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[73])(@this, fEnable); + return ret; + } + + /// To be documented. + public static unsafe int GetAudioStreamCategory(this ComPtr thisVtbl, uint* pCategory) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[74])(@this, pCategory); + return ret; + } + + /// To be documented. + public static int GetAudioStreamCategory(this ComPtr thisVtbl, ref uint pCategory) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pCategoryPtr = &pCategory) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[74])(@this, pCategoryPtr); + } + return ret; + } + + /// To be documented. + public static int SetAudioStreamCategory(this ComPtr thisVtbl, uint category) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[75])(@this, category); + return ret; + } + + /// To be documented. + public static unsafe int GetAudioEndpointRole(this ComPtr thisVtbl, uint* pRole) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[76])(@this, pRole); + return ret; + } + + /// To be documented. + public static int GetAudioEndpointRole(this ComPtr thisVtbl, ref uint pRole) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pRolePtr = &pRole) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[76])(@this, pRolePtr); + } + return ret; + } + + /// To be documented. + public static int SetAudioEndpointRole(this ComPtr thisVtbl, uint role) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[77])(@this, role); + return ret; + } + + /// To be documented. + public static unsafe int GetRealTimeMode(this ComPtr thisVtbl, int* pfEnabled) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[78])(@this, pfEnabled); + return ret; + } + + /// To be documented. + public static int GetRealTimeMode(this ComPtr thisVtbl, ref int pfEnabled) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pfEnabledPtr = &pfEnabled) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[78])(@this, pfEnabledPtr); + } + return ret; + } + + /// To be documented. + public static int SetRealTimeMode(this ComPtr thisVtbl, Silk.NET.Core.Bool32 fEnable) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[79])(@this, fEnable); + return ret; + } + + /// To be documented. + public static int SetCurrentTimeEx(this ComPtr thisVtbl, double seekTime, MediaEngineSeekMode seekMode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[80])(@this, seekTime, seekMode); + return ret; + } + + /// To be documented. + public static int EnableTimeUpdateTimer(this ComPtr thisVtbl, Silk.NET.Core.Bool32 fEnableTimer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[81])(@this, fEnableTimer); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetError(this ComPtr thisVtbl, ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public static int SetSourceElements(this ComPtr thisVtbl, ComPtr pSrcElements) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->SetSourceElements((IMFMediaEngineSrcElements*) pSrcElements.Handle); + } + + /// To be documented. + public static int SetSourceElements(this ComPtr thisVtbl, Span pSrcElements) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSourceElements(ref pSrcElements.GetPinnableReference()); + } + + /// To be documented. + public static int SetSource(this ComPtr thisVtbl, Span pUrl) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSource(ref pUrl.GetPinnableReference()); + } + + /// To be documented. + public static int GetCurrentSource(this ComPtr thisVtbl, string[] ppUrlSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var ppUrl = (char**) SilkMarshal.StringArrayToPtr(ppUrlSa); + var ret = @this->GetCurrentSource(ppUrl); + SilkMarshal.CopyPtrToStringArray((nint) ppUrl, ppUrlSa); + SilkMarshal.Free((nint) ppUrl); + return ret; + } + + /// To be documented. + public static int GetBuffered(this ComPtr thisVtbl, ref ComPtr ppBuffered) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetBuffered((IMFMediaTimeRange**) ppBuffered.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, char* type, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(type, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Span type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(ref type.GetPinnableReference(), pAnswer); + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, Span type, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(ref type.GetPinnableReference(), ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(type, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static int GetPlayed(this ComPtr thisVtbl, ref ComPtr ppPlayed) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetPlayed((IMFMediaTimeRange**) ppPlayed.GetAddressOf()); + } + + /// To be documented. + public static int GetSeekable(this ComPtr thisVtbl, ref ComPtr ppSeekable) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSeekable((IMFMediaTimeRange**) ppSeekable.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, uint* cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNativeVideoSize(cx, ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, Span cx, uint* cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNativeVideoSize(ref cx.GetPinnableReference(), cy); + } + + /// To be documented. + public static int GetNativeVideoSize(this ComPtr thisVtbl, Span cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNativeVideoSize(ref cx.GetPinnableReference(), ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, uint* cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetVideoAspectRatio(cx, ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, Span cx, uint* cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetVideoAspectRatio(ref cx.GetPinnableReference(), cy); + } + + /// To be documented. + public static int GetVideoAspectRatio(this ComPtr thisVtbl, Span cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetVideoAspectRatio(ref cx.GetPinnableReference(), ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static int OnVideoStreamTick(this ComPtr thisVtbl, Span pPts) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->OnVideoStreamTick(ref pPts.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int SetSourceFromByteStream(this ComPtr thisVtbl, IMFByteStream* pByteStream, Span pURL) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSourceFromByteStream(pByteStream, ref pURL.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int SetSourceFromByteStream(this ComPtr thisVtbl, Span pByteStream, char* pURL) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSourceFromByteStream(ref pByteStream.GetPinnableReference(), pURL); + } + + /// To be documented. + public static int SetSourceFromByteStream(this ComPtr thisVtbl, Span pByteStream, Span pURL) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSourceFromByteStream(ref pByteStream.GetPinnableReference(), ref pURL.GetPinnableReference()); + } + + /// To be documented. + public static int SetSourceFromByteStream(this ComPtr thisVtbl, Span pByteStream, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSourceFromByteStream(ref pByteStream.GetPinnableReference(), pURL); + } + + /// To be documented. + public static int GetStatistics(this ComPtr thisVtbl, MediaEngineStatistic StatisticID, Span pStatistic) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStatistics(StatisticID, ref pStatistic.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(pSrc, pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(pSrc, in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(in pSrc.GetPinnableReference(), pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static int UpdateVideoStream(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->UpdateVideoStream(in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static int GetResourceCharacteristics(this ComPtr thisVtbl, Span pCharacteristics) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetResourceCharacteristics(ref pCharacteristics.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPresentationAttribute(this ComPtr thisVtbl, Guid* guidMFAttribute, Span pvValue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPresentationAttribute(guidMFAttribute, ref pvValue.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPresentationAttribute(this ComPtr thisVtbl, Span guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPresentationAttribute(ref guidMFAttribute.GetPinnableReference(), pvValue); + } + + /// To be documented. + public static int GetPresentationAttribute(this ComPtr thisVtbl, Span guidMFAttribute, Span pvValue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPresentationAttribute(ref guidMFAttribute.GetPinnableReference(), ref pvValue.GetPinnableReference()); + } + + /// To be documented. + public static int GetNumberOfStreams(this ComPtr thisVtbl, Span pdwStreamCount) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNumberOfStreams(ref pdwStreamCount.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, Guid* guidMFAttribute, Span pvValue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStreamAttribute(dwStreamIndex, guidMFAttribute, ref pvValue.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, Span guidMFAttribute, tagPROPVARIANT* pvValue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStreamAttribute(dwStreamIndex, ref guidMFAttribute.GetPinnableReference(), pvValue); + } + + /// To be documented. + public static int GetStreamAttribute(this ComPtr thisVtbl, uint dwStreamIndex, Span guidMFAttribute, Span pvValue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStreamAttribute(dwStreamIndex, ref guidMFAttribute.GetPinnableReference(), ref pvValue.GetPinnableReference()); + } + + /// To be documented. + public static int GetStreamSelection(this ComPtr thisVtbl, uint dwStreamIndex, Span pEnabled) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStreamSelection(dwStreamIndex, ref pEnabled.GetPinnableReference()); + } + + /// To be documented. + public static int IsProtected(this ComPtr thisVtbl, Span pProtected) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsProtected(ref pProtected.GetPinnableReference()); + } + + /// To be documented. + public static int InsertVideoEffect(this ComPtr thisVtbl, ComPtr pEffect, Silk.NET.Core.Bool32 fOptional) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->InsertVideoEffect((Silk.NET.Core.Native.IUnknown*) pEffect.Handle, fOptional); + } + + /// To be documented. + public static int InsertVideoEffect(this ComPtr thisVtbl, Span pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->InsertVideoEffect(ref pEffect.GetPinnableReference(), fOptional); + } + + /// To be documented. + public static int InsertAudioEffect(this ComPtr thisVtbl, ComPtr pEffect, Silk.NET.Core.Bool32 fOptional) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->InsertAudioEffect((Silk.NET.Core.Native.IUnknown*) pEffect.Handle, fOptional); + } + + /// To be documented. + public static int InsertAudioEffect(this ComPtr thisVtbl, Span pEffect, Silk.NET.Core.Bool32 fOptional) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->InsertAudioEffect(ref pEffect.GetPinnableReference(), fOptional); + } + + /// To be documented. + public static int GetTimelineMarkerTimer(this ComPtr thisVtbl, Span pTimeToFire) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTimelineMarkerTimer(ref pTimeToFire.GetPinnableReference()); + } + + /// To be documented. + public static int GetStereo3DFramePackingMode(this ComPtr thisVtbl, Span packMode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStereo3DFramePackingMode(ref packMode.GetPinnableReference()); + } + + /// To be documented. + public static int GetStereo3DRenderMode(this ComPtr thisVtbl, Span<_MF3DVideoOutputType> outputType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStereo3DRenderMode(ref outputType.GetPinnableReference()); + } + + /// To be documented. + public static int GetAudioStreamCategory(this ComPtr thisVtbl, Span pCategory) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetAudioStreamCategory(ref pCategory.GetPinnableReference()); + } + + /// To be documented. + public static int GetAudioEndpointRole(this ComPtr thisVtbl, Span pRole) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetAudioEndpointRole(ref pRole.GetPinnableReference()); + } + + /// To be documented. + public static int GetRealTimeMode(this ComPtr thisVtbl, Span pfEnabled) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetRealTimeMode(ref pfEnabled.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineExtensionVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineExtensionVtblExtensions.gen.cs new file mode 100644 index 0000000000..306ba6e715 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineExtensionVtblExtensions.gen.cs @@ -0,0 +1,1783 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineExtensionVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, char* MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeType, pAnswer); + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, char* MimeType, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeType, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, ref char MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* MimeTypePtr = &MimeType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswer); + } + return ret; + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, ref char MimeType, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* MimeTypePtr = &MimeType) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var MimeTypePtr = (byte*) SilkMarshal.StringToPtr(MimeType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswer); + SilkMarshal.Free((nint)MimeTypePtr); + return ret; + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string MimeType, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var MimeTypePtr = (byte*) SilkMarshal.StringToPtr(MimeType, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, AudioOnly, MimeTypePtr, pAnswerPtr); + } + SilkMarshal.Free((nint)MimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkState); + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURL, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkState); + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrURLPtr = &bstrURL) + { + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStream, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkState); + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallback, punkStatePtr); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkState); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookie, pCallbackPtr, punkStatePtr); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkState); + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallback, punkStatePtr); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkState); + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrURLPtr = (byte*) SilkMarshal.StringToPtr(bstrURL, NativeStringEncoding.BStr); + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookiePtr = &ppIUnknownCancelCookie) + { + fixed (IMFAsyncCallback* pCallbackPtr = &pCallback) + { + fixed (Silk.NET.Core.Native.IUnknown* punkStatePtr = &punkState) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bstrURLPtr, pByteStreamPtr, type, ppIUnknownCancelCookiePtr, pCallbackPtr, punkStatePtr); + } + } + } + } + SilkMarshal.Free((nint)bstrURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int CancelObjectCreation(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pIUnknownCancelCookie) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pIUnknownCancelCookie); + return ret; + } + + /// To be documented. + public static int CancelObjectCreation(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pIUnknownCancelCookie) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pIUnknownCancelCookiePtr = &pIUnknownCancelCookie) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pIUnknownCancelCookiePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, IMFAsyncResult* pResult, Silk.NET.Core.Native.IUnknown** ppObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResult, ppObject); + return ret; + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, IMFAsyncResult* pResult, ref Silk.NET.Core.Native.IUnknown* ppObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown** ppObjectPtr = &ppObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResult, ppObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, ref IMFAsyncResult pResult, Silk.NET.Core.Native.IUnknown** ppObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAsyncResult* pResultPtr = &pResult) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResultPtr, ppObject); + } + return ret; + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, ref IMFAsyncResult pResult, ref Silk.NET.Core.Native.IUnknown* ppObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFAsyncResult* pResultPtr = &pResult) + { + fixed (Silk.NET.Core.Native.IUnknown** ppObjectPtr = &ppObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pResultPtr, ppObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, char* MimeType, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(AudioOnly, MimeType, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, Span MimeType, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(AudioOnly, ref MimeType.GetPinnableReference(), pAnswer); + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, Span MimeType, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(AudioOnly, ref MimeType.GetPinnableReference(), ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AudioOnly, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string MimeType, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(AudioOnly, MimeType, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, char* bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ref ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ref ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, ref char bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(ref bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, Span bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(ref bstrURL.GetPinnableReference(), ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, IMFByteStream* pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, Silk.NET.Core.Native.IUnknown** ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref ComPtr ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ref Silk.NET.Core.Native.IUnknown punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, (Silk.NET.Core.Native.IUnknown**) ppIUnknownCancelCookie.GetAddressOf(), ref pCallback, ref punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, pCallback, punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, IMFAsyncCallback* pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, pCallback, ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Silk.NET.Core.Native.IUnknown* punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), punkState); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, ref IMFByteStream pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, ref IMFAsyncCallback pCallback, ComPtr punkState) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream, type, ref ppIUnknownCancelCookie, ref pCallback, (Silk.NET.Core.Native.IUnknown*) punkState.Handle); + } + + /// To be documented. + public static unsafe int BeginCreateObject(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrURL, Span pByteStream, MF_OBJECT_TYPE type, ref Silk.NET.Core.Native.IUnknown* ppIUnknownCancelCookie, Span pCallback, Span punkState) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->BeginCreateObject(bstrURL, ref pByteStream.GetPinnableReference(), type, ref ppIUnknownCancelCookie, ref pCallback.GetPinnableReference(), ref punkState.GetPinnableReference()); + } + + /// To be documented. + public static int CancelObjectCreation(this ComPtr thisVtbl, ComPtr pIUnknownCancelCookie) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CancelObjectCreation((Silk.NET.Core.Native.IUnknown*) pIUnknownCancelCookie.Handle); + } + + /// To be documented. + public static int CancelObjectCreation(this ComPtr thisVtbl, Span pIUnknownCancelCookie) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CancelObjectCreation(ref pIUnknownCancelCookie.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, IMFAsyncResult* pResult, ref ComPtr ppObject) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->EndCreateObject(pResult, (Silk.NET.Core.Native.IUnknown**) ppObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, Span pResult, Silk.NET.Core.Native.IUnknown** ppObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->EndCreateObject(ref pResult.GetPinnableReference(), ppObject); + } + + /// To be documented. + public static int EndCreateObject(this ComPtr thisVtbl, ref IMFAsyncResult pResult, ref ComPtr ppObject) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->EndCreateObject(ref pResult, (Silk.NET.Core.Native.IUnknown**) ppObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int EndCreateObject(this ComPtr thisVtbl, Span pResult, ref Silk.NET.Core.Native.IUnknown* ppObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->EndCreateObject(ref pResult.GetPinnableReference(), ref ppObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineNeedKeyNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineNeedKeyNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..181a9d9074 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineNeedKeyNotifyVtblExtensions.gen.cs @@ -0,0 +1,155 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineNeedKeyNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe void NeedKey(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, initData, cb); + } + + /// To be documented. + public static void NeedKey(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb) + { + var @this = thisVtbl.Handle; + fixed (byte* initDataPtr = &initData) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, initDataPtr, cb); + } + } + + /// To be documented. + public static void NeedKey(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb) + { + var @this = thisVtbl.Handle; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, initDataPtr, cb); + SilkMarshal.Free((nint)initDataPtr); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static void NeedKey(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->NeedKey(in initData.GetPinnableReference(), cb); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..56b1cb1234 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineNotifyVtblExtensions.gen.cs @@ -0,0 +1,130 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static int EventNotify(this ComPtr thisVtbl, uint @event, nuint param1, uint param2) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, @event, param1, param2); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineOPMInfoVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineOPMInfoVtblExtensions.gen.cs new file mode 100644 index 0000000000..cfb017c90c --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineOPMInfoVtblExtensions.gen.cs @@ -0,0 +1,193 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineOPMInfoVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetOPMInfo(this ComPtr thisVtbl, MediaEngineOpmStatus* pStatus, int* pConstricted) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pConstricted); + return ret; + } + + /// To be documented. + public static unsafe int GetOPMInfo(this ComPtr thisVtbl, MediaEngineOpmStatus* pStatus, ref int pConstricted) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pConstrictedPtr = &pConstricted) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatus, pConstrictedPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetOPMInfo(this ComPtr thisVtbl, ref MediaEngineOpmStatus pStatus, int* pConstricted) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineOpmStatus* pStatusPtr = &pStatus) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pConstricted); + } + return ret; + } + + /// To be documented. + public static int GetOPMInfo(this ComPtr thisVtbl, ref MediaEngineOpmStatus pStatus, ref int pConstricted) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineOpmStatus* pStatusPtr = &pStatus) + { + fixed (int* pConstrictedPtr = &pConstricted) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pStatusPtr, pConstrictedPtr); + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int GetOPMInfo(this ComPtr thisVtbl, MediaEngineOpmStatus* pStatus, Span pConstricted) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetOPMInfo(pStatus, ref pConstricted.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetOPMInfo(this ComPtr thisVtbl, Span pStatus, int* pConstricted) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetOPMInfo(ref pStatus.GetPinnableReference(), pConstricted); + } + + /// To be documented. + public static int GetOPMInfo(this ComPtr thisVtbl, Span pStatus, Span pConstricted) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetOPMInfo(ref pStatus.GetPinnableReference(), ref pConstricted.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineProtectedContentVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineProtectedContentVtblExtensions.gen.cs new file mode 100644 index 0000000000..a0bacde3b9 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineProtectedContentVtblExtensions.gen.cs @@ -0,0 +1,1169 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineProtectedContentVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int ShareResources(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pUnkDeviceContext) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pUnkDeviceContext); + return ret; + } + + /// To be documented. + public static int ShareResources(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pUnkDeviceContext) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pUnkDeviceContextPtr = &pUnkDeviceContext) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pUnkDeviceContextPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetRequiredProtections(this ComPtr thisVtbl, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pFrameProtectionFlags); + return ret; + } + + /// To be documented. + public static int GetRequiredProtections(this ComPtr thisVtbl, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pFrameProtectionFlagsPtr); + } + return ret; + } + + /// To be documented. + public static int SetOPMWindow(this ComPtr thisVtbl, nint hwnd) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, hwnd); + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClr, pFrameProtectionFlags); + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlags); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlags); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr, pFrameProtectionFlagsPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlags); + } + } + } + } + return ret; + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + fixed (uint* pFrameProtectionFlagsPtr = &pFrameProtectionFlags) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, uint*, int>)@this->LpVtbl[6])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr, pFrameProtectionFlagsPtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int SetContentProtectionManager(this ComPtr thisVtbl, IMFContentProtectionManager* pCPM) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pCPM); + return ret; + } + + /// To be documented. + public static int SetContentProtectionManager(this ComPtr thisVtbl, ref IMFContentProtectionManager pCPM) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFContentProtectionManager* pCPMPtr = &pCPM) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pCPMPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetApplicationCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbBlob, uint cbBlob) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbBlob, cbBlob); + return ret; + } + + /// To be documented. + public static int SetApplicationCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbBlob, uint cbBlob) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* pbBlobPtr = &pbBlob) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbBlobPtr, cbBlob); + } + return ret; + } + + /// To be documented. + public static int SetApplicationCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbBlob, uint cbBlob) + { + var @this = thisVtbl.Handle; + int ret = default; + var pbBlobPtr = (byte*) SilkMarshal.StringToPtr(pbBlob, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbBlobPtr, cbBlob); + SilkMarshal.Free((nint)pbBlobPtr); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int ShareResources(this ComPtr thisVtbl, ComPtr pUnkDeviceContext) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->ShareResources((Silk.NET.Core.Native.IUnknown*) pUnkDeviceContext.Handle); + } + + /// To be documented. + public static int ShareResources(this ComPtr thisVtbl, Span pUnkDeviceContext) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->ShareResources(ref pUnkDeviceContext.GetPinnableReference()); + } + + /// To be documented. + public static int GetRequiredProtections(this ComPtr thisVtbl, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetRequiredProtections(ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, pDst, pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, pDst, in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, pDst, in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, uint* pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr, ref uint pFrameProtectionFlags) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr, ref pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr, pFrameProtectionFlags); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr, ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, uint* pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), pFrameProtectionFlags); + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr, Span pFrameProtectionFlags) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference(), ref pFrameProtectionFlags.GetPinnableReference()); + } + + /// To be documented. + public static int SetContentProtectionManager(this ComPtr thisVtbl, Span pCPM) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetContentProtectionManager(ref pCPM.GetPinnableReference()); + } + + /// To be documented. + public static int SetApplicationCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbBlob, uint cbBlob) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetApplicationCertificate(in pbBlob.GetPinnableReference(), cbBlob); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSrcElementsExVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSrcElementsExVtblExtensions.gen.cs new file mode 100644 index 0000000000..b47f652d96 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSrcElementsExVtblExtensions.gen.cs @@ -0,0 +1,2590 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineSrcElementsExVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetLength(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetURL(this ComPtr thisVtbl, uint index, char** pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURL); + return ret; + } + + /// To be documented. + public static unsafe int GetURL(this ComPtr thisVtbl, uint index, ref char* pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURLPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetType(this ComPtr thisVtbl, uint index, char** pType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pType); + return ret; + } + + /// To be documented. + public static unsafe int GetType(this ComPtr thisVtbl, uint index, ref char* pType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetMedia(this ComPtr thisVtbl, uint index, char** pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMedia); + return ret; + } + + /// To be documented. + public static unsafe int GetMedia(this ComPtr thisVtbl, uint index, ref char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMedia); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, ref char pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, ref char pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, char* pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, ref char pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, ref char pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int RemoveAllElements(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMedia, keySystem); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMedia, keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystem); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystem); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystem); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURL, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystem); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + } + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystem); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pType, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystem); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMedia, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystem); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, ref char keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + fixed (char* keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + } + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + var keySystemPtr = (byte*) SilkMarshal.StringToPtr(keySystem, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pURLPtr, pTypePtr, pMediaPtr, keySystemPtr); + SilkMarshal.Free((nint)keySystemPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, uint index, char** pType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, index, pType); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, uint index, ref char* pType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, index, pTypePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetURL(this ComPtr thisVtbl, uint index, string[] pURLSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pURL = (char**) SilkMarshal.StringArrayToPtr(pURLSa); + var ret = @this->GetURL(index, pURL); + SilkMarshal.CopyPtrToStringArray((nint) pURL, pURLSa); + SilkMarshal.Free((nint) pURL); + return ret; + } + + /// To be documented. + public static int GetType(this ComPtr thisVtbl, uint index, string[] pTypeSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pType = (char**) SilkMarshal.StringArrayToPtr(pTypeSa); + var ret = @this->GetType(index, pType); + SilkMarshal.CopyPtrToStringArray((nint) pType, pTypeSa); + SilkMarshal.Free((nint) pType); + return ret; + } + + /// To be documented. + public static int GetMedia(this ComPtr thisVtbl, uint index, string[] pMediaSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pMedia = (char**) SilkMarshal.StringArrayToPtr(pMediaSa); + var ret = @this->GetMedia(index, pMedia); + SilkMarshal.CopyPtrToStringArray((nint) pMedia, pMediaSa); + SilkMarshal.Free((nint) pMedia); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, Span pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, Span pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, char* pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, Span pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, Span pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(ref pURL.GetPinnableReference(), pType, pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, char* pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, char* pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, ref pType.GetPinnableReference(), pMedia, keySystem); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, char* keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, ref pMedia.GetPinnableReference(), keySystem); + } + + /// To be documented. + public static int AddElementEx(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia, Span keySystem) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElementEx(pURL, pType, pMedia, ref keySystem.GetPinnableReference()); + } + + /// To be documented. + public static int GetKeySystem(this ComPtr thisVtbl, uint index, string[] pTypeSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pType = (char**) SilkMarshal.StringArrayToPtr(pTypeSa); + var ret = @this->GetKeySystem(index, pType); + SilkMarshal.CopyPtrToStringArray((nint) pType, pTypeSa); + SilkMarshal.Free((nint) pType); + return ret; + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSrcElementsVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSrcElementsVtblExtensions.gen.cs new file mode 100644 index 0000000000..8917ce4cbb --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSrcElementsVtblExtensions.gen.cs @@ -0,0 +1,768 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineSrcElementsVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetLength(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetURL(this ComPtr thisVtbl, uint index, char** pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURL); + return ret; + } + + /// To be documented. + public static unsafe int GetURL(this ComPtr thisVtbl, uint index, ref char* pURL) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pURLPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetType(this ComPtr thisVtbl, uint index, char** pType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pType); + return ret; + } + + /// To be documented. + public static unsafe int GetType(this ComPtr thisVtbl, uint index, ref char* pType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetMedia(this ComPtr thisVtbl, uint index, char** pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMedia); + return ret; + } + + /// To be documented. + public static unsafe int GetMedia(this ComPtr thisVtbl, uint index, ref char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, index, pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMedia); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, ref char pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, ref char pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURL, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, char* pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, ref char pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, ref char pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, ref char pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pURLPtr = &pURL) + { + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMedia); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pType, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, ref char pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + fixed (char* pTypePtr = &pType) + { + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + } + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMedia); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, ref char pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + fixed (char* pMediaPtr = &pMedia) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + } + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + int ret = default; + var pURLPtr = (byte*) SilkMarshal.StringToPtr(pURL, NativeStringEncoding.BStr); + var pTypePtr = (byte*) SilkMarshal.StringToPtr(pType, NativeStringEncoding.BStr); + var pMediaPtr = (byte*) SilkMarshal.StringToPtr(pMedia, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, pURLPtr, pTypePtr, pMediaPtr); + SilkMarshal.Free((nint)pMediaPtr); + SilkMarshal.Free((nint)pTypePtr); + SilkMarshal.Free((nint)pURLPtr); + return ret; + } + + /// To be documented. + public static int RemoveAllElements(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetURL(this ComPtr thisVtbl, uint index, string[] pURLSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pURL = (char**) SilkMarshal.StringArrayToPtr(pURLSa); + var ret = @this->GetURL(index, pURL); + SilkMarshal.CopyPtrToStringArray((nint) pURL, pURLSa); + SilkMarshal.Free((nint) pURL); + return ret; + } + + /// To be documented. + public static int GetType(this ComPtr thisVtbl, uint index, string[] pTypeSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pType = (char**) SilkMarshal.StringArrayToPtr(pTypeSa); + var ret = @this->GetType(index, pType); + SilkMarshal.CopyPtrToStringArray((nint) pType, pTypeSa); + SilkMarshal.Free((nint) pType); + return ret; + } + + /// To be documented. + public static int GetMedia(this ComPtr thisVtbl, uint index, string[] pMediaSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pMedia = (char**) SilkMarshal.StringArrayToPtr(pMediaSa); + var ret = @this->GetMedia(index, pMedia); + SilkMarshal.CopyPtrToStringArray((nint) pMedia, pMediaSa); + SilkMarshal.Free((nint) pMedia); + return ret; + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, char* pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, Span pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, Span pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, char* pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, char* pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, char* pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, char* pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, Span pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, Span pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, Span pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(ref pURL.GetPinnableReference(), pType, pMedia); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, char* pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, char* pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, Span pType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, ref pType.GetPinnableReference(), pMedia); + } + + /// To be documented. + public static int AddElement(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pURL, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pType, Span pMedia) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddElement(pURL, pType, ref pMedia.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSupportsSourceTransferVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSupportsSourceTransferVtblExtensions.gen.cs new file mode 100644 index 0000000000..396979d291 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineSupportsSourceTransferVtblExtensions.gen.cs @@ -0,0 +1,486 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineSupportsSourceTransferVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int ShouldTransferSource(this ComPtr thisVtbl, int* pfShouldTransfer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pfShouldTransfer); + return ret; + } + + /// To be documented. + public static int ShouldTransferSource(this ComPtr thisVtbl, ref int pfShouldTransfer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pfShouldTransferPtr = &pfShouldTransfer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pfShouldTransferPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, IMFByteStream** ppByteStream, IMFMediaSource** ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSource, ppMSE); + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, IMFByteStream** ppByteStream, IMFMediaSource** ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSource, ppMSEPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, IMFByteStream** ppByteStream, ref IMFMediaSource* ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSourcePtr, ppMSE); + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, IMFByteStream** ppByteStream, ref IMFMediaSource* ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStream, ppMediaSourcePtr, ppMSEPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, ref IMFByteStream* ppByteStream, IMFMediaSource** ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSource, ppMSE); + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, ref IMFByteStream* ppByteStream, IMFMediaSource** ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSource, ppMSEPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, ref IMFByteStream* ppByteStream, ref IMFMediaSource* ppMediaSource, IMFMediaSourceExtension** ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSourcePtr, ppMSE); + } + } + return ret; + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, ref IMFByteStream* ppByteStream, ref IMFMediaSource* ppMediaSource, ref IMFMediaSourceExtension* ppMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream** ppByteStreamPtr = &ppByteStream) + { + fixed (IMFMediaSource** ppMediaSourcePtr = &ppMediaSource) + { + fixed (IMFMediaSourceExtension** ppMSEPtr = &ppMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppByteStreamPtr, ppMediaSourcePtr, ppMSEPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSource, pMSE); + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSource, pMSEPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, ref IMFMediaSource pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSourcePtr, pMSE); + } + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, ref IMFMediaSource pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStream, pMediaSourcePtr, pMSEPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, ref IMFByteStream pByteStream, IMFMediaSource* pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSource, pMSE); + } + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, ref IMFByteStream pByteStream, IMFMediaSource* pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSource, pMSEPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, ref IMFByteStream pByteStream, ref IMFMediaSource pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSourcePtr, pMSE); + } + } + return ret; + } + + /// To be documented. + public static int AttachMediaSource(this ComPtr thisVtbl, ref IMFByteStream pByteStream, ref IMFMediaSource pMediaSource, ref IMFMediaSourceExtension pMSE) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pByteStreamPtr = &pByteStream) + { + fixed (IMFMediaSource* pMediaSourcePtr = &pMediaSource) + { + fixed (IMFMediaSourceExtension* pMSEPtr = &pMSE) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pByteStreamPtr, pMediaSourcePtr, pMSEPtr); + } + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int ShouldTransferSource(this ComPtr thisVtbl, Span pfShouldTransfer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->ShouldTransferSource(ref pfShouldTransfer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, IMFByteStream** ppByteStream, IMFMediaSource** ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->DetachMediaSource(ppByteStream, ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, IMFByteStream** ppByteStream, ref IMFMediaSource* ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->DetachMediaSource(ppByteStream, ref ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, ref IMFByteStream* ppByteStream, IMFMediaSource** ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->DetachMediaSource(ref ppByteStream, ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public static unsafe int DetachMediaSource(this ComPtr thisVtbl, ref IMFByteStream* ppByteStream, ref IMFMediaSource* ppMediaSource, ref ComPtr ppMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->DetachMediaSource(ref ppByteStream, ref ppMediaSource, (IMFMediaSourceExtension**) ppMSE.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AttachMediaSource(pByteStream, pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, IMFMediaSource* pMediaSource, Span pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(pByteStream, pMediaSource, ref pMSE.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, Span pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(pByteStream, ref pMediaSource.GetPinnableReference(), pMSE); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, ref IMFMediaSource pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AttachMediaSource(pByteStream, ref pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, IMFByteStream* pByteStream, Span pMediaSource, Span pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(pByteStream, ref pMediaSource.GetPinnableReference(), ref pMSE.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, Span pByteStream, IMFMediaSource* pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(ref pByteStream.GetPinnableReference(), pMediaSource, pMSE); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, ref IMFByteStream pByteStream, IMFMediaSource* pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AttachMediaSource(ref pByteStream, pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, Span pByteStream, IMFMediaSource* pMediaSource, Span pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(ref pByteStream.GetPinnableReference(), pMediaSource, ref pMSE.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AttachMediaSource(this ComPtr thisVtbl, Span pByteStream, Span pMediaSource, IMFMediaSourceExtension* pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(ref pByteStream.GetPinnableReference(), ref pMediaSource.GetPinnableReference(), pMSE); + } + + /// To be documented. + public static int AttachMediaSource(this ComPtr thisVtbl, ref IMFByteStream pByteStream, ref IMFMediaSource pMediaSource, ComPtr pMSE) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AttachMediaSource(ref pByteStream, ref pMediaSource, (IMFMediaSourceExtension*) pMSE.Handle); + } + + /// To be documented. + public static int AttachMediaSource(this ComPtr thisVtbl, Span pByteStream, Span pMediaSource, Span pMSE) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AttachMediaSource(ref pByteStream.GetPinnableReference(), ref pMediaSource.GetPinnableReference(), ref pMSE.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineTransferSourceVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineTransferSourceVtblExtensions.gen.cs new file mode 100644 index 0000000000..8bdcbe853d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineTransferSourceVtblExtensions.gen.cs @@ -0,0 +1,158 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineTransferSourceVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int TransferSourceToMediaEngine(this ComPtr thisVtbl, IMFMediaEngine* destination) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destination); + return ret; + } + + /// To be documented. + public static int TransferSourceToMediaEngine(this ComPtr thisVtbl, ref IMFMediaEngine destination) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaEngine* destinationPtr = &destination) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int TransferSourceToMediaEngine(this ComPtr thisVtbl, ComPtr destination) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferSourceToMediaEngine((IMFMediaEngine*) destination.Handle); + } + + /// To be documented. + public static int TransferSourceToMediaEngine(this ComPtr thisVtbl, Span destination) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferSourceToMediaEngine(ref destination.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineVtblExtensions.gen.cs new file mode 100644 index 0000000000..5811ba1074 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineVtblExtensions.gen.cs @@ -0,0 +1,1319 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, IMFMediaError** ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppError); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ref IMFMediaError* ppError) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaError** ppErrorPtr = &ppError) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ppErrorPtr); + } + return ret; + } + + /// To be documented. + public static int SetErrorCode(this ComPtr thisVtbl, MediaEngineError error) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, error); + return ret; + } + + /// To be documented. + public static unsafe int SetSourceElements(this ComPtr thisVtbl, IMFMediaEngineSrcElements* pSrcElements) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElements); + return ret; + } + + /// To be documented. + public static int SetSourceElements(this ComPtr thisVtbl, ref IMFMediaEngineSrcElements pSrcElements) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaEngineSrcElements* pSrcElementsPtr = &pSrcElements) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pSrcElementsPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetSource(this ComPtr thisVtbl, char* pUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrl); + return ret; + } + + /// To be documented. + public static int SetSource(this ComPtr thisVtbl, ref char pUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* pUrlPtr = &pUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + } + return ret; + } + + /// To be documented. + public static int SetSource(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string pUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + var pUrlPtr = (byte*) SilkMarshal.StringToPtr(pUrl, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, pUrlPtr); + SilkMarshal.Free((nint)pUrlPtr); + return ret; + } + + /// To be documented. + public static unsafe int GetCurrentSource(this ComPtr thisVtbl, char** ppUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrl); + return ret; + } + + /// To be documented. + public static unsafe int GetCurrentSource(this ComPtr thisVtbl, ref char* ppUrl) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** ppUrlPtr = &ppUrl) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, ppUrlPtr); + } + return ret; + } + + /// To be documented. + public static ushort GetNetworkState(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static MediaEnginePreload GetPreload(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + MediaEnginePreload ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + return ret; + } + + /// To be documented. + public static int SetPreload(this ComPtr thisVtbl, MediaEnginePreload Preload) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, Preload); + return ret; + } + + /// To be documented. + public static unsafe int GetBuffered(this ComPtr thisVtbl, IMFMediaTimeRange** ppBuffered) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBuffered); + return ret; + } + + /// To be documented. + public static unsafe int GetBuffered(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppBuffered) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppBufferedPtr = &ppBuffered) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, ppBufferedPtr); + } + return ret; + } + + /// To be documented. + public static int Load(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, char* type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswer); + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, char* type, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, type, pAnswerPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, ref char type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + } + return ret; + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, ref char type, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref MediaEngineCanPlay pAnswer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (MediaEngineCanPlay* pAnswerPtr = &pAnswer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, typePtr, pAnswerPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static ushort GetReadyState(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsSeeking(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this); + return ret; + } + + /// To be documented. + public static double GetCurrentTime(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[16])(@this); + return ret; + } + + /// To be documented. + public static int SetCurrentTime(this ComPtr thisVtbl, double seekTime) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[17])(@this, seekTime); + return ret; + } + + /// To be documented. + public static double GetStartTime(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[18])(@this); + return ret; + } + + /// To be documented. + public static double GetDuration(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[19])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsPaused(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[20])(@this); + return ret; + } + + /// To be documented. + public static double GetDefaultPlaybackRate(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[21])(@this); + return ret; + } + + /// To be documented. + public static int SetDefaultPlaybackRate(this ComPtr thisVtbl, double Rate) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[22])(@this, Rate); + return ret; + } + + /// To be documented. + public static double GetPlaybackRate(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[23])(@this); + return ret; + } + + /// To be documented. + public static int SetPlaybackRate(this ComPtr thisVtbl, double Rate) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[24])(@this, Rate); + return ret; + } + + /// To be documented. + public static unsafe int GetPlayed(this ComPtr thisVtbl, IMFMediaTimeRange** ppPlayed) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayed); + return ret; + } + + /// To be documented. + public static unsafe int GetPlayed(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppPlayed) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppPlayedPtr = &ppPlayed) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[25])(@this, ppPlayedPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSeekable(this ComPtr thisVtbl, IMFMediaTimeRange** ppSeekable) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekable); + return ret; + } + + /// To be documented. + public static unsafe int GetSeekable(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppSeekable) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppSeekablePtr = &ppSeekable) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[26])(@this, ppSeekablePtr); + } + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsEnded(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[27])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetAutoPlay(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[28])(@this); + return ret; + } + + /// To be documented. + public static int SetAutoPlay(this ComPtr thisVtbl, Silk.NET.Core.Bool32 AutoPlay) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[29])(@this, AutoPlay); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetLoop(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[30])(@this); + return ret; + } + + /// To be documented. + public static int SetLoop(this ComPtr thisVtbl, Silk.NET.Core.Bool32 Loop) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[31])(@this, Loop); + return ret; + } + + /// To be documented. + public static int Play(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[32])(@this); + return ret; + } + + /// To be documented. + public static int Pause(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[33])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetMuted(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[34])(@this); + return ret; + } + + /// To be documented. + public static int SetMuted(this ComPtr thisVtbl, Silk.NET.Core.Bool32 Muted) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[35])(@this, Muted); + return ret; + } + + /// To be documented. + public static double GetVolume(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[36])(@this); + return ret; + } + + /// To be documented. + public static int SetVolume(this ComPtr thisVtbl, double Volume) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[37])(@this, Volume); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 HasVideo(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[38])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 HasAudio(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[39])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, uint* cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cy); + return ret; + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, uint* cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, ref uint cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public static int GetNativeVideoSize(this ComPtr thisVtbl, ref uint cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[40])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, uint* cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cy); + return ret; + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, uint* cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cx, cyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, ref uint cx, uint* cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cy); + } + return ret; + } + + /// To be documented. + public static int GetVideoAspectRatio(this ComPtr thisVtbl, ref uint cx, ref uint cy) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* cxPtr = &cx) + { + fixed (uint* cyPtr = &cy) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[41])(@this, cxPtr, cyPtr); + } + } + return ret; + } + + /// To be documented. + public static int Shutdown(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[42])(@this); + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClr); + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDst, pBorderClrPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrc, pDstPtr, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurf, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClr); + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDst, pBorderClrPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrc, pDstPtr, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDst, pBorderClrPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClr); + } + } + } + return ret; + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, ref Silk.NET.Core.Native.IUnknown pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Silk.NET.Core.Native.IUnknown* pDstSurfPtr = &pDstSurf) + { + fixed (VideoNormalizedRect* pSrcPtr = &pSrc) + { + fixed (Silk.NET.Maths.Box2D* pDstPtr = &pDst) + { + fixed (_MFARGB* pBorderClrPtr = &pBorderClr) + { + ret = ((delegate* unmanaged[Stdcall]*, _MFARGB*, int>)@this->LpVtbl[43])(@this, pDstSurfPtr, pSrcPtr, pDstPtr, pBorderClrPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int OnVideoStreamTick(this ComPtr thisVtbl, long* pPts) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPts); + return ret; + } + + /// To be documented. + public static int OnVideoStreamTick(this ComPtr thisVtbl, ref long pPts) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (long* pPtsPtr = &pPts) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[44])(@this, pPtsPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetError(this ComPtr thisVtbl, ref ComPtr ppError) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetError((IMFMediaError**) ppError.GetAddressOf()); + } + + /// To be documented. + public static int SetSourceElements(this ComPtr thisVtbl, ComPtr pSrcElements) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->SetSourceElements((IMFMediaEngineSrcElements*) pSrcElements.Handle); + } + + /// To be documented. + public static int SetSourceElements(this ComPtr thisVtbl, Span pSrcElements) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSourceElements(ref pSrcElements.GetPinnableReference()); + } + + /// To be documented. + public static int SetSource(this ComPtr thisVtbl, Span pUrl) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetSource(ref pUrl.GetPinnableReference()); + } + + /// To be documented. + public static int GetCurrentSource(this ComPtr thisVtbl, string[] ppUrlSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var ppUrl = (char**) SilkMarshal.StringArrayToPtr(ppUrlSa); + var ret = @this->GetCurrentSource(ppUrl); + SilkMarshal.CopyPtrToStringArray((nint) ppUrl, ppUrlSa); + SilkMarshal.Free((nint) ppUrl); + return ret; + } + + /// To be documented. + public static int GetBuffered(this ComPtr thisVtbl, ref ComPtr ppBuffered) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetBuffered((IMFMediaTimeRange**) ppBuffered.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, char* type, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(type, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int CanPlayType(this ComPtr thisVtbl, Span type, MediaEngineCanPlay* pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(ref type.GetPinnableReference(), pAnswer); + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, Span type, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(ref type.GetPinnableReference(), ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static int CanPlayType(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span pAnswer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CanPlayType(type, ref pAnswer.GetPinnableReference()); + } + + /// To be documented. + public static int GetPlayed(this ComPtr thisVtbl, ref ComPtr ppPlayed) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetPlayed((IMFMediaTimeRange**) ppPlayed.GetAddressOf()); + } + + /// To be documented. + public static int GetSeekable(this ComPtr thisVtbl, ref ComPtr ppSeekable) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSeekable((IMFMediaTimeRange**) ppSeekable.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, uint* cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNativeVideoSize(cx, ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetNativeVideoSize(this ComPtr thisVtbl, Span cx, uint* cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNativeVideoSize(ref cx.GetPinnableReference(), cy); + } + + /// To be documented. + public static int GetNativeVideoSize(this ComPtr thisVtbl, Span cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetNativeVideoSize(ref cx.GetPinnableReference(), ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, uint* cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetVideoAspectRatio(cx, ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetVideoAspectRatio(this ComPtr thisVtbl, Span cx, uint* cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetVideoAspectRatio(ref cx.GetPinnableReference(), cy); + } + + /// To be documented. + public static int GetVideoAspectRatio(this ComPtr thisVtbl, Span cx, Span cy) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetVideoAspectRatio(ref cx.GetPinnableReference(), ref cy.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Silk.NET.Core.Native.IUnknown* pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(pDstSurf, in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, ComPtr pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in VideoNormalizedRect pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in Silk.NET.Maths.Box2D pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in _MFARGB pBorderClr) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->TransferVideoFrame((Silk.NET.Core.Native.IUnknown*) pDstSurf.Handle, in pSrc, in pDst, in pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VideoNormalizedRect* pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), pSrc, in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, pBorderClr); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] Silk.NET.Maths.Box2D* pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), pDst, in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] _MFARGB* pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), pBorderClr); + } + + /// To be documented. + public static int TransferVideoFrame(this ComPtr thisVtbl, Span pDstSurf, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pSrc, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan> pDst, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan<_MFARGB> pBorderClr) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->TransferVideoFrame(ref pDstSurf.GetPinnableReference(), in pSrc.GetPinnableReference(), in pDst.GetPinnableReference(), in pBorderClr.GetPinnableReference()); + } + + /// To be documented. + public static int OnVideoStreamTick(this ComPtr thisVtbl, Span pPts) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->OnVideoStreamTick(ref pPts.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineWebSupportVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineWebSupportVtblExtensions.gen.cs new file mode 100644 index 0000000000..1654a48bd7 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaEngineWebSupportVtblExtensions.gen.cs @@ -0,0 +1,168 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaEngineWebSupportVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 ShouldDelayTheLoadEvent(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int ConnectWebAudio(this ComPtr thisVtbl, uint dwSampleRate, IAudioSourceProvider** ppSourceProvider) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, dwSampleRate, ppSourceProvider); + return ret; + } + + /// To be documented. + public static unsafe int ConnectWebAudio(this ComPtr thisVtbl, uint dwSampleRate, ref IAudioSourceProvider* ppSourceProvider) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IAudioSourceProvider** ppSourceProviderPtr = &ppSourceProvider) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, dwSampleRate, ppSourceProviderPtr); + } + return ret; + } + + /// To be documented. + public static int DisconnectWebAudio(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int ConnectWebAudio(this ComPtr thisVtbl, uint dwSampleRate, ref ComPtr ppSourceProvider) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->ConnectWebAudio(dwSampleRate, (IAudioSourceProvider**) ppSourceProvider.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaErrorVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaErrorVtblExtensions.gen.cs new file mode 100644 index 0000000000..136e4037d6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaErrorVtblExtensions.gen.cs @@ -0,0 +1,157 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaErrorVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static ushort GetErrorCode(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ushort ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static int GetExtendedErrorCode(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public static int SetErrorCode(this ComPtr thisVtbl, MediaEngineError error) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, error); + return ret; + } + + /// To be documented. + public static int SetExtendedErrorCode(this ComPtr thisVtbl, int error) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, error); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySession2VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySession2VtblExtensions.gen.cs new file mode 100644 index 0000000000..c64a6c6288 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySession2VtblExtensions.gen.cs @@ -0,0 +1,675 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeySession2VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ushort* code, uint* systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCode); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ushort* code, ref uint systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCodePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ref ushort code, uint* systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (ushort* codePtr = &code) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCode); + } + return ret; + } + + /// To be documented. + public static int GetError(this ComPtr thisVtbl, ref ushort code, ref uint systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (ushort* codePtr = &code) + { + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCodePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, char** keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, ref char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSessionId(this ComPtr thisVtbl, char** sessionId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionId); + return ret; + } + + /// To be documented. + public static unsafe int GetSessionId(this ComPtr thisVtbl, ref char* sessionId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** sessionIdPtr = &sessionId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionIdPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* key, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, key, cb); + return ret; + } + + /// To be documented. + public static int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte key, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* keyPtr = &key) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + } + return ret; + } + + /// To be documented. + public static int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string key, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var keyPtr = (byte*) SilkMarshal.StringToPtr(key, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + SilkMarshal.Free((nint)keyPtr); + return ret; + } + + /// To be documented. + public static int Close(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetKeyStatuses(this ComPtr thisVtbl, MFMediaKeyStatus** pKeyStatusesArray, uint* puSize) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArray, puSize); + return ret; + } + + /// To be documented. + public static unsafe int GetKeyStatuses(this ComPtr thisVtbl, MFMediaKeyStatus** pKeyStatusesArray, ref uint puSize) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* puSizePtr = &puSize) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArray, puSizePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetKeyStatuses(this ComPtr thisVtbl, ref MFMediaKeyStatus* pKeyStatusesArray, uint* puSize) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MFMediaKeyStatus** pKeyStatusesArrayPtr = &pKeyStatusesArray) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArrayPtr, puSize); + } + return ret; + } + + /// To be documented. + public static unsafe int GetKeyStatuses(this ComPtr thisVtbl, ref MFMediaKeyStatus* pKeyStatusesArray, ref uint puSize) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (MFMediaKeyStatus** pKeyStatusesArrayPtr = &pKeyStatusesArray) + { + fixed (uint* puSizePtr = &puSize) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pKeyStatusesArrayPtr, puSizePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int Load(this ComPtr thisVtbl, char* bstrSessionId, int* pfLoaded) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionId, pfLoaded); + return ret; + } + + /// To be documented. + public static unsafe int Load(this ComPtr thisVtbl, char* bstrSessionId, ref int pfLoaded) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* pfLoadedPtr = &pfLoaded) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionId, pfLoadedPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int Load(this ComPtr thisVtbl, ref char bstrSessionId, int* pfLoaded) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrSessionIdPtr = &bstrSessionId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoaded); + } + return ret; + } + + /// To be documented. + public static int Load(this ComPtr thisVtbl, ref char bstrSessionId, ref int pfLoaded) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* bstrSessionIdPtr = &bstrSessionId) + { + fixed (int* pfLoadedPtr = &pfLoaded) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoadedPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int Load(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrSessionId, int* pfLoaded) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrSessionIdPtr = (byte*) SilkMarshal.StringToPtr(bstrSessionId, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoaded); + SilkMarshal.Free((nint)bstrSessionIdPtr); + return ret; + } + + /// To be documented. + public static int Load(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrSessionId, ref int pfLoaded) + { + var @this = thisVtbl.Handle; + int ret = default; + var bstrSessionIdPtr = (byte*) SilkMarshal.StringToPtr(bstrSessionId, NativeStringEncoding.BStr); + fixed (int* pfLoadedPtr = &pfLoaded) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, bstrSessionIdPtr, pfLoadedPtr); + } + SilkMarshal.Free((nint)bstrSessionIdPtr); + return ret; + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataType, pbInitData, cb); + return ret; + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* pbInitDataPtr = &pbInitData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataType, pbInitDataPtr, cb); + } + return ret; + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataType, pbInitDataPtr, cb); + SilkMarshal.Free((nint)pbInitDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, ref char initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* initDataTypePtr = &initDataType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitData, cb); + } + return ret; + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, ref char initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* initDataTypePtr = &initDataType) + { + fixed (byte* pbInitDataPtr = &pbInitData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + } + } + return ret; + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, ref char initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* initDataTypePtr = &initDataType) + { + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + SilkMarshal.Free((nint)pbInitDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataTypePtr = (byte*) SilkMarshal.StringToPtr(initDataType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitData, cb); + SilkMarshal.Free((nint)initDataTypePtr); + return ret; + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataTypePtr = (byte*) SilkMarshal.StringToPtr(initDataType, NativeStringEncoding.BStr); + fixed (byte* pbInitDataPtr = &pbInitData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + } + SilkMarshal.Free((nint)initDataTypePtr); + return ret; + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataTypePtr = (byte*) SilkMarshal.StringToPtr(initDataType, NativeStringEncoding.BStr); + var pbInitDataPtr = (byte*) SilkMarshal.StringToPtr(pbInitData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, initDataTypePtr, pbInitDataPtr, cb); + SilkMarshal.Free((nint)pbInitDataPtr); + SilkMarshal.Free((nint)initDataTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int GetExpiration(this ComPtr thisVtbl, double* dblExpiration) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, dblExpiration); + return ret; + } + + /// To be documented. + public static int GetExpiration(this ComPtr thisVtbl, ref double dblExpiration) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* dblExpirationPtr = &dblExpiration) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, dblExpirationPtr); + } + return ret; + } + + /// To be documented. + public static int Remove(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public static int Shutdown(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ushort* code, Span systemCode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetError(code, ref systemCode.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, Span code, uint* systemCode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetError(ref code.GetPinnableReference(), systemCode); + } + + /// To be documented. + public static int GetError(this ComPtr thisVtbl, Span code, Span systemCode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetError(ref code.GetPinnableReference(), ref systemCode.GetPinnableReference()); + } + + /// To be documented. + public static int GetKeySystem(this ComPtr thisVtbl, string[] keySystemSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public static int GetSessionId(this ComPtr thisVtbl, string[] sessionIdSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var sessionId = (char**) SilkMarshal.StringArrayToPtr(sessionIdSa); + var ret = @this->GetSessionId(sessionId); + SilkMarshal.CopyPtrToStringArray((nint) sessionId, sessionIdSa); + SilkMarshal.Free((nint) sessionId); + return ret; + } + + /// To be documented. + public static int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan key, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Update(in key.GetPinnableReference(), cb); + } + + /// To be documented. + public static unsafe int GetKeyStatuses(this ComPtr thisVtbl, MFMediaKeyStatus** pKeyStatusesArray, Span puSize) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetKeyStatuses(pKeyStatusesArray, ref puSize.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetKeyStatuses(this ComPtr thisVtbl, ref MFMediaKeyStatus* pKeyStatusesArray, Span puSize) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetKeyStatuses(ref pKeyStatusesArray, ref puSize.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int Load(this ComPtr thisVtbl, char* bstrSessionId, Span pfLoaded) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Load(bstrSessionId, ref pfLoaded.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int Load(this ComPtr thisVtbl, Span bstrSessionId, int* pfLoaded) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Load(ref bstrSessionId.GetPinnableReference(), pfLoaded); + } + + /// To be documented. + public static int Load(this ComPtr thisVtbl, Span bstrSessionId, Span pfLoaded) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Load(ref bstrSessionId.GetPinnableReference(), ref pfLoaded.GetPinnableReference()); + } + + /// To be documented. + public static int Load(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string bstrSessionId, Span pfLoaded) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Load(bstrSessionId, ref pfLoaded.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, char* initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GenerateRequest(initDataType, in pbInitData.GetPinnableReference(), cb); + } + + /// To be documented. + public static unsafe int GenerateRequest(this ComPtr thisVtbl, Span initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GenerateRequest(ref initDataType.GetPinnableReference(), pbInitData, cb); + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, Span initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GenerateRequest(ref initDataType.GetPinnableReference(), in pbInitData.GetPinnableReference(), cb); + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, Span initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GenerateRequest(ref initDataType.GetPinnableReference(), pbInitData, cb); + } + + /// To be documented. + public static int GenerateRequest(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string initDataType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbInitData, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GenerateRequest(initDataType, in pbInitData.GetPinnableReference(), cb); + } + + /// To be documented. + public static int GetExpiration(this ComPtr thisVtbl, Span dblExpiration) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExpiration(ref dblExpiration.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionNotify2VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionNotify2VtblExtensions.gen.cs new file mode 100644 index 0000000000..87471f21c1 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionNotify2VtblExtensions.gen.cs @@ -0,0 +1,408 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeySessionNotify2VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, message, cb); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + } + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + } + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + } + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyAdded(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public static void KeyError(this ComPtr thisVtbl, ushort code, uint systemCode) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, code, systemCode); + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURL, pbMessage, cbMessage); + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + fixed (byte* pbMessagePtr = &pbMessage) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURL, pbMessagePtr, cbMessage); + } + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + var pbMessagePtr = (byte*) SilkMarshal.StringToPtr(pbMessage, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURL, pbMessagePtr, cbMessage); + SilkMarshal.Free((nint)pbMessagePtr); + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessage, cbMessage); + } + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + fixed (byte* pbMessagePtr = &pbMessage) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + } + } + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + var pbMessagePtr = (byte*) SilkMarshal.StringToPtr(pbMessage, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + SilkMarshal.Free((nint)pbMessagePtr); + } + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessage, cbMessage); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + fixed (byte* pbMessagePtr = &pbMessage) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + } + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + var pbMessagePtr = (byte*) SilkMarshal.StringToPtr(pbMessage, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, eMessageType, destinationURLPtr, pbMessagePtr, cbMessage); + SilkMarshal.Free((nint)pbMessagePtr); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyStatusChange(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(destinationURL, in message.GetPinnableReference(), cb); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(ref destinationURL.GetPinnableReference(), message, cb); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(ref destinationURL.GetPinnableReference(), in message.GetPinnableReference(), cb); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(ref destinationURL.GetPinnableReference(), message, cb); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(destinationURL, in message.GetPinnableReference(), cb); + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage2(eMessageType, destinationURL, in pbMessage.GetPinnableReference(), cbMessage); + } + + /// To be documented. + public static unsafe void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage2(eMessageType, ref destinationURL.GetPinnableReference(), pbMessage, cbMessage); + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage2(eMessageType, ref destinationURL.GetPinnableReference(), in pbMessage.GetPinnableReference(), cbMessage); + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage2(eMessageType, ref destinationURL.GetPinnableReference(), pbMessage, cbMessage); + } + + /// To be documented. + public static void KeyMessage2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_MESSAGETYPE eMessageType, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbMessage, uint cbMessage) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage2(eMessageType, destinationURL, in pbMessage.GetPinnableReference(), cbMessage); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..2899459aef --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionNotifyVtblExtensions.gen.cs @@ -0,0 +1,268 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeySessionNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, message, cb); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + } + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURL, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + } + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + } + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, ref char destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + fixed (char* destinationURLPtr = &destinationURL) + { + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + } + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, message, cb); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte message, uint cb) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + fixed (byte* messagePtr = &message) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + } + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + var destinationURLPtr = (byte*) SilkMarshal.StringToPtr(destinationURL, NativeStringEncoding.BStr); + var messagePtr = (byte*) SilkMarshal.StringToPtr(message, NativeStringEncoding.UTF8); + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, destinationURLPtr, messagePtr, cb); + SilkMarshal.Free((nint)messagePtr); + SilkMarshal.Free((nint)destinationURLPtr); + } + + /// To be documented. + public static void KeyAdded(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public static void KeyError(this ComPtr thisVtbl, ushort code, uint systemCode) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, code, systemCode); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, char* destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(destinationURL, in message.GetPinnableReference(), cb); + } + + /// To be documented. + public static unsafe void KeyMessage(this ComPtr thisVtbl, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(ref destinationURL.GetPinnableReference(), message, cb); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(ref destinationURL.GetPinnableReference(), in message.GetPinnableReference(), cb); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, Span destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(ref destinationURL.GetPinnableReference(), message, cb); + } + + /// To be documented. + public static void KeyMessage(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string destinationURL, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan message, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->KeyMessage(destinationURL, in message.GetPinnableReference(), cb); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionVtblExtensions.gen.cs new file mode 100644 index 0000000000..a9443d5255 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySessionVtblExtensions.gen.cs @@ -0,0 +1,308 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeySessionVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ushort* code, uint* systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCode); + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ushort* code, ref uint systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, code, systemCodePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ref ushort code, uint* systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (ushort* codePtr = &code) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCode); + } + return ret; + } + + /// To be documented. + public static int GetError(this ComPtr thisVtbl, ref ushort code, ref uint systemCode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (ushort* codePtr = &code) + { + fixed (uint* systemCodePtr = &systemCode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, codePtr, systemCodePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, char** keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, ref char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSessionId(this ComPtr thisVtbl, char** sessionId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionId); + return ret; + } + + /// To be documented. + public static unsafe int GetSessionId(this ComPtr thisVtbl, ref char* sessionId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** sessionIdPtr = &sessionId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, sessionIdPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* key, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, key, cb); + return ret; + } + + /// To be documented. + public static int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte key, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* keyPtr = &key) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + } + return ret; + } + + /// To be documented. + public static int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string key, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var keyPtr = (byte*) SilkMarshal.StringToPtr(key, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, keyPtr, cb); + SilkMarshal.Free((nint)keyPtr); + return ret; + } + + /// To be documented. + public static int Close(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, ushort* code, Span systemCode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetError(code, ref systemCode.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetError(this ComPtr thisVtbl, Span code, uint* systemCode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetError(ref code.GetPinnableReference(), systemCode); + } + + /// To be documented. + public static int GetError(this ComPtr thisVtbl, Span code, Span systemCode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetError(ref code.GetPinnableReference(), ref systemCode.GetPinnableReference()); + } + + /// To be documented. + public static int GetKeySystem(this ComPtr thisVtbl, string[] keySystemSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public static int GetSessionId(this ComPtr thisVtbl, string[] sessionIdSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var sessionId = (char**) SilkMarshal.StringArrayToPtr(sessionIdSa); + var ret = @this->GetSessionId(sessionId); + SilkMarshal.CopyPtrToStringArray((nint) sessionId, sessionIdSa); + SilkMarshal.Free((nint) sessionId); + return ret; + } + + /// To be documented. + public static int Update(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan key, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Update(in key.GetPinnableReference(), cb); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySystemAccessVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySystemAccessVtblExtensions.gen.cs new file mode 100644 index 0000000000..c949fd255d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeySystemAccessVtblExtensions.gen.cs @@ -0,0 +1,255 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeySystemAccessVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, IPropertyStore* pCdmCustomConfig, IMFMediaKeys2** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfig, ppKeys); + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, IPropertyStore* pCdmCustomConfig, ref IMFMediaKeys2* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeys2** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfig, ppKeysPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref IPropertyStore pCdmCustomConfig, IMFMediaKeys2** ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IPropertyStore* pCdmCustomConfigPtr = &pCdmCustomConfig) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfigPtr, ppKeys); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, ref IPropertyStore pCdmCustomConfig, ref IMFMediaKeys2* ppKeys) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IPropertyStore* pCdmCustomConfigPtr = &pCdmCustomConfig) + { + fixed (IMFMediaKeys2** ppKeysPtr = &ppKeys) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, pCdmCustomConfigPtr, ppKeysPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetSupportedConfiguration(this ComPtr thisVtbl, IPropertyStore** ppSupportedConfiguration) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppSupportedConfiguration); + return ret; + } + + /// To be documented. + public static unsafe int GetSupportedConfiguration(this ComPtr thisVtbl, ref IPropertyStore* ppSupportedConfiguration) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IPropertyStore** ppSupportedConfigurationPtr = &ppSupportedConfiguration) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppSupportedConfigurationPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, char** pKeySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pKeySystem); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, ref char* pKeySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** pKeySystemPtr = &pKeySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pKeySystemPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, IPropertyStore* pCdmCustomConfig, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(pCdmCustomConfig, (IMFMediaKeys2**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span pCdmCustomConfig, IMFMediaKeys2** ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref pCdmCustomConfig.GetPinnableReference(), ppKeys); + } + + /// To be documented. + public static int CreateMediaKeys(this ComPtr thisVtbl, ref IPropertyStore pCdmCustomConfig, ref ComPtr ppKeys) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateMediaKeys(ref pCdmCustomConfig, (IMFMediaKeys2**) ppKeys.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateMediaKeys(this ComPtr thisVtbl, Span pCdmCustomConfig, ref IMFMediaKeys2* ppKeys) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateMediaKeys(ref pCdmCustomConfig.GetPinnableReference(), ref ppKeys); + } + + /// To be documented. + public static int GetKeySystem(this ComPtr thisVtbl, string[] pKeySystemSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var pKeySystem = (char**) SilkMarshal.StringArrayToPtr(pKeySystemSa); + var ret = @this->GetKeySystem(pKeySystem); + SilkMarshal.CopyPtrToStringArray((nint) pKeySystem, pKeySystemSa); + SilkMarshal.Free((nint) pKeySystem); + return ret; + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeys2VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeys2VtblExtensions.gen.cs new file mode 100644 index 0000000000..c479a23203 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeys2VtblExtensions.gen.cs @@ -0,0 +1,3569 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeys2VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSession); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, char** keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, ref char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public static int Shutdown(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetSuspendNotify(this ComPtr thisVtbl, IMFCdmSuspendNotify** notify) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notify); + return ret; + } + + /// To be documented. + public static unsafe int GetSuspendNotify(this ComPtr thisVtbl, ref IMFCdmSuspendNotify* notify) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFCdmSuspendNotify** notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notifyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2, IMFMediaKeySession2** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2, ppSession); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySession2** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2, ppSessionPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, ref IMFMediaKeySessionNotify2 pMFMediaKeySessionNotify2, IMFMediaKeySession2** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2Ptr = &pMFMediaKeySessionNotify2) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2Ptr, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, ref IMFMediaKeySessionNotify2 pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySessionNotify2* pMFMediaKeySessionNotify2Ptr = &pMFMediaKeySessionNotify2) + { + fixed (IMFMediaKeySession2** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, eSessionType, pMFMediaKeySessionNotify2Ptr, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int SetServerCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pbServerCertificate, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbServerCertificate, cb); + return ret; + } + + /// To be documented. + public static int SetServerCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pbServerCertificate, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* pbServerCertificatePtr = &pbServerCertificate) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbServerCertificatePtr, cb); + } + return ret; + } + + /// To be documented. + public static int SetServerCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pbServerCertificate, uint cb) + { + var @this = thisVtbl.Handle; + int ret = default; + var pbServerCertificatePtr = (byte*) SilkMarshal.StringToPtr(pbServerCertificate, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, pbServerCertificatePtr, cb); + SilkMarshal.Free((nint)pbServerCertificatePtr); + return ret; + } + + /// To be documented. + public static unsafe int GetDOMException(this ComPtr thisVtbl, int systemCode, int* code) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, systemCode, code); + return ret; + } + + /// To be documented. + public static int GetDOMException(this ComPtr thisVtbl, int systemCode, ref int code) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* codePtr = &code) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, systemCode, codePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static int GetKeySystem(this ComPtr thisVtbl, string[] keySystemSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public static int GetSuspendNotify(this ComPtr thisVtbl, ref ComPtr notify) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSuspendNotify((IMFCdmSuspendNotify**) notify.GetAddressOf()); + } + + /// To be documented. + public static int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, ComPtr pMFMediaKeySessionNotify2, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession2(eSessionType, (IMFMediaKeySessionNotify2*) pMFMediaKeySessionNotify2.Handle, (IMFMediaKeySession2**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, ComPtr pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession2(eSessionType, (IMFMediaKeySessionNotify2*) pMFMediaKeySessionNotify2.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, Span pMFMediaKeySessionNotify2, IMFMediaKeySession2** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession2(eSessionType, ref pMFMediaKeySessionNotify2.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, ref IMFMediaKeySessionNotify2 pMFMediaKeySessionNotify2, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession2(eSessionType, ref pMFMediaKeySessionNotify2, (IMFMediaKeySession2**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession2(this ComPtr thisVtbl, MF_MEDIAKEYSESSION_TYPE eSessionType, Span pMFMediaKeySessionNotify2, ref IMFMediaKeySession2* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession2(eSessionType, ref pMFMediaKeySessionNotify2.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static int SetServerCertificate(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pbServerCertificate, uint cb) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetServerCertificate(in pbServerCertificate.GetPinnableReference(), cb); + } + + /// To be documented. + public static int GetDOMException(this ComPtr thisVtbl, int systemCode, Span code) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetDOMException(systemCode, ref code.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeysVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeysVtblExtensions.gen.cs new file mode 100644 index 0000000000..fcb7555adb --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaKeysVtblExtensions.gen.cs @@ -0,0 +1,3412 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaKeysVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSession); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeType, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* mimeTypePtr = &mimeType) + { + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initData, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + fixed (byte* initDataPtr = &initData) + { + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + } + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customData, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + fixed (byte* customDataPtr = &customData) + { + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + } + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSession); + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notify, ppSessionPtr); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSession); + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + int ret = default; + var mimeTypePtr = (byte*) SilkMarshal.StringToPtr(mimeType, NativeStringEncoding.BStr); + var initDataPtr = (byte*) SilkMarshal.StringToPtr(initData, NativeStringEncoding.UTF8); + var customDataPtr = (byte*) SilkMarshal.StringToPtr(customData, NativeStringEncoding.UTF8); + fixed (IMFMediaKeySessionNotify* notifyPtr = ¬ify) + { + fixed (IMFMediaKeySession** ppSessionPtr = &ppSession) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, mimeTypePtr, initDataPtr, cb, customDataPtr, cbCustomData, notifyPtr, ppSessionPtr); + } + } + SilkMarshal.Free((nint)customDataPtr); + SilkMarshal.Free((nint)initDataPtr); + SilkMarshal.Free((nint)mimeTypePtr); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, char** keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystem); + return ret; + } + + /// To be documented. + public static unsafe int GetKeySystem(this ComPtr thisVtbl, ref char* keySystem) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** keySystemPtr = &keySystem) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, keySystemPtr); + } + return ret; + } + + /// To be documented. + public static int Shutdown(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetSuspendNotify(this ComPtr thisVtbl, IMFCdmSuspendNotify** notify) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notify); + return ret; + } + + /// To be documented. + public static unsafe int GetSuspendNotify(this ComPtr thisVtbl, ref IMFCdmSuspendNotify* notify) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFCdmSuspendNotify** notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, notifyPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, char* mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, ref char mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(ref mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, Span mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(ref mimeType.GetPinnableReference(), initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, in initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, in initData.GetPinnableReference(), cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, IMFMediaKeySessionNotify* notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, notify, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, in customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, in customData.GetPinnableReference(), cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ComPtr notify, ref IMFMediaKeySession* ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, (IMFMediaKeySessionNotify*) notify.Handle, ref ppSession); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, IMFMediaKeySession** ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ppSession); + } + + /// To be documented. + public static int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, ref IMFMediaKeySessionNotify notify, ref ComPtr ppSession) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify, (IMFMediaKeySession**) ppSession.GetAddressOf()); + } + + /// To be documented. + public static unsafe int CreateSession(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string mimeType, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string initData, uint cb, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string customData, uint cbCustomData, Span notify, ref IMFMediaKeySession* ppSession) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->CreateSession(mimeType, initData, cb, customData, cbCustomData, ref notify.GetPinnableReference(), ref ppSession); + } + + /// To be documented. + public static int GetKeySystem(this ComPtr thisVtbl, string[] keySystemSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var keySystem = (char**) SilkMarshal.StringArrayToPtr(keySystemSa); + var ret = @this->GetKeySystem(keySystem); + SilkMarshal.CopyPtrToStringArray((nint) keySystem, keySystemSa); + SilkMarshal.Free((nint) keySystem); + return ret; + } + + /// To be documented. + public static int GetSuspendNotify(this ComPtr thisVtbl, ref ComPtr notify) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSuspendNotify((IMFCdmSuspendNotify**) notify.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionLiveSeekableRangeVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionLiveSeekableRangeVtblExtensions.gen.cs new file mode 100644 index 0000000000..92383c150d --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionLiveSeekableRangeVtblExtensions.gen.cs @@ -0,0 +1,139 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaSourceExtensionLiveSeekableRangeVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static int SetLiveSeekableRange(this ComPtr thisVtbl, double start, double end) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, start, end); + return ret; + } + + /// To be documented. + public static int ClearLiveSeekableRange(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..996e3feef0 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionNotifyVtblExtensions.gen.cs @@ -0,0 +1,142 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaSourceExtensionNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static void OnSourceOpen(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + } + + /// To be documented. + public static void OnSourceEnded(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public static void OnSourceClose(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionVtblExtensions.gen.cs new file mode 100644 index 0000000000..ac0308bd86 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaSourceExtensionVtblExtensions.gen.cs @@ -0,0 +1,561 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaSourceExtensionVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe IMFSourceBufferList* GetSourceBuffers(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + IMFSourceBufferList* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe IMFSourceBufferList* GetActiveSourceBuffers(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + IMFSourceBufferList* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public static MseReady GetReadyState(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + MseReady ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public static double GetDuration(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this); + return ret; + } + + /// To be documented. + public static int SetDuration(this ComPtr thisVtbl, double duration) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, duration); + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotify, ppSourceBuffer); + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotify, ppSourceBufferPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, ref IMFSourceBufferNotify pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotifyPtr, ppSourceBuffer); + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, ref IMFSourceBufferNotify pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, type, pNotifyPtr, ppSourceBufferPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, ref char type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBuffer); + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, ref char type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBufferPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, ref char type, ref IMFSourceBufferNotify pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBuffer); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, ref char type, ref IMFSourceBufferNotify pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* typePtr = &type) + { + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBufferPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBuffer); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotify, ppSourceBufferPtr); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref IMFSourceBufferNotify pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBuffer); + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref IMFSourceBufferNotify pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + fixed (IMFSourceBufferNotify* pNotifyPtr = &pNotify) + { + fixed (IMFSourceBuffer** ppSourceBufferPtr = &ppSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, typePtr, pNotifyPtr, ppSourceBufferPtr); + } + } + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe int RemoveSourceBuffer(this ComPtr thisVtbl, IMFSourceBuffer* pSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pSourceBuffer); + return ret; + } + + /// To be documented. + public static int RemoveSourceBuffer(this ComPtr thisVtbl, ref IMFSourceBuffer pSourceBuffer) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFSourceBuffer* pSourceBufferPtr = &pSourceBuffer) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pSourceBufferPtr); + } + return ret; + } + + /// To be documented. + public static int SetEndOfStream(this ComPtr thisVtbl, MseError error) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, error); + return ret; + } + + /// To be documented. + public static unsafe Silk.NET.Core.Bool32 IsTypeSupported(this ComPtr thisVtbl, char* type) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, type); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsTypeSupported(this ComPtr thisVtbl, ref char type) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + fixed (char* typePtr = &type) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, typePtr); + } + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsTypeSupported(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + var typePtr = (byte*) SilkMarshal.StringToPtr(type, NativeStringEncoding.BStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, typePtr); + SilkMarshal.Free((nint)typePtr); + return ret; + } + + /// To be documented. + public static unsafe IMFSourceBuffer* GetSourceBuffer(this ComPtr thisVtbl, uint dwStreamIndex) + { + var @this = thisVtbl.Handle; + IMFSourceBuffer* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, dwStreamIndex); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, ComPtr pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, ComPtr pNotify, ref IMFSourceBuffer* ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, ref ppSourceBuffer); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, Span pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(type, ref pNotify.GetPinnableReference(), ppSourceBuffer); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, ref IMFSourceBufferNotify pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(type, ref pNotify, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, char* type, Span pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(type, ref pNotify.GetPinnableReference(), ref ppSourceBuffer); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, Span type, IMFSourceBufferNotify* pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(ref type.GetPinnableReference(), pNotify, ppSourceBuffer); + } + + /// To be documented. + public static int AddSourceBuffer(this ComPtr thisVtbl, ref char type, ComPtr pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(ref type, (IMFSourceBufferNotify*) pNotify.Handle, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, Span type, IMFSourceBufferNotify* pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(ref type.GetPinnableReference(), pNotify, ref ppSourceBuffer); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, ref char type, ComPtr pNotify, ref IMFSourceBuffer* ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(ref type, (IMFSourceBufferNotify*) pNotify.Handle, ref ppSourceBuffer); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, Span type, Span pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(ref type.GetPinnableReference(), ref pNotify.GetPinnableReference(), ppSourceBuffer); + } + + /// To be documented. + public static int AddSourceBuffer(this ComPtr thisVtbl, ref char type, ref IMFSourceBufferNotify pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(ref type, ref pNotify, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, Span type, Span pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(ref type.GetPinnableReference(), ref pNotify.GetPinnableReference(), ref ppSourceBuffer); + } + + /// To be documented. + public static int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ComPtr pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl where TI1 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ComPtr pNotify, ref IMFSourceBuffer* ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(type, (IMFSourceBufferNotify*) pNotify.Handle, ref ppSourceBuffer); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span pNotify, IMFSourceBuffer** ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(type, ref pNotify.GetPinnableReference(), ppSourceBuffer); + } + + /// To be documented. + public static int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, ref IMFSourceBufferNotify pNotify, ref ComPtr ppSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddSourceBuffer(type, ref pNotify, (IMFSourceBuffer**) ppSourceBuffer.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddSourceBuffer(this ComPtr thisVtbl, [UnmanagedType(Silk.NET.Core.Native.UnmanagedType.BStr)] string type, Span pNotify, ref IMFSourceBuffer* ppSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddSourceBuffer(type, ref pNotify.GetPinnableReference(), ref ppSourceBuffer); + } + + /// To be documented. + public static int RemoveSourceBuffer(this ComPtr thisVtbl, ComPtr pSourceBuffer) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->RemoveSourceBuffer((IMFSourceBuffer*) pSourceBuffer.Handle); + } + + /// To be documented. + public static int RemoveSourceBuffer(this ComPtr thisVtbl, Span pSourceBuffer) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->RemoveSourceBuffer(ref pSourceBuffer.GetPinnableReference()); + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsTypeSupported(this ComPtr thisVtbl, Span type) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTypeSupported(ref type.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaTimeRangeVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaTimeRangeVtblExtensions.gen.cs new file mode 100644 index 0000000000..c4456f0560 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFMediaTimeRangeVtblExtensions.gen.cs @@ -0,0 +1,215 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFMediaTimeRangeVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetLength(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetStart(this ComPtr thisVtbl, uint index, double* pStart) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pStart); + return ret; + } + + /// To be documented. + public static int GetStart(this ComPtr thisVtbl, uint index, ref double pStart) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pStartPtr = &pStart) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, pStartPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetEnd(this ComPtr thisVtbl, uint index, double* pEnd) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pEnd); + return ret; + } + + /// To be documented. + public static int GetEnd(this ComPtr thisVtbl, uint index, ref double pEnd) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pEndPtr = &pEnd) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, pEndPtr); + } + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 ContainsTime(this ComPtr thisVtbl, double time) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, time); + return ret; + } + + /// To be documented. + public static int AddRange(this ComPtr thisVtbl, double startTime, double endTime) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, startTime, endTime); + return ret; + } + + /// To be documented. + public static int Clear(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetStart(this ComPtr thisVtbl, uint index, Span pStart) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetStart(index, ref pStart.GetPinnableReference()); + } + + /// To be documented. + public static int GetEnd(this ComPtr thisVtbl, uint index, Span pEnd) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetEnd(index, ref pEnd.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferAppendModeVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferAppendModeVtblExtensions.gen.cs new file mode 100644 index 0000000000..9bfbba25ef --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferAppendModeVtblExtensions.gen.cs @@ -0,0 +1,139 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFSourceBufferAppendModeVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static MseAppendMode GetAppendMode(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + MseAppendMode ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static int SetAppendMode(this ComPtr thisVtbl, MseAppendMode mode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, mode); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferListVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferListVtblExtensions.gen.cs new file mode 100644 index 0000000000..86a747147e --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferListVtblExtensions.gen.cs @@ -0,0 +1,139 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFSourceBufferListVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetLength(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe IMFSourceBuffer* GetSourceBuffer(this ComPtr thisVtbl, uint index) + { + var @this = thisVtbl.Handle; + IMFSourceBuffer* ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..22e48776fe --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferNotifyVtblExtensions.gen.cs @@ -0,0 +1,156 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFSourceBufferNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static void OnUpdateStart(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + } + + /// To be documented. + public static void OnAbort(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + } + + /// To be documented. + public static void OnError(this ComPtr thisVtbl, int hr) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, hr); + } + + /// To be documented. + public static void OnUpdate(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this); + } + + /// To be documented. + public static void OnUpdateEnd(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferVtblExtensions.gen.cs new file mode 100644 index 0000000000..193ecbc7dd --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFSourceBufferVtblExtensions.gen.cs @@ -0,0 +1,343 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFSourceBufferVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 GetUpdating(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetBuffered(this ComPtr thisVtbl, IMFMediaTimeRange** ppBuffered) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppBuffered); + return ret; + } + + /// To be documented. + public static unsafe int GetBuffered(this ComPtr thisVtbl, ref IMFMediaTimeRange* ppBuffered) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFMediaTimeRange** ppBufferedPtr = &ppBuffered) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, ppBufferedPtr); + } + return ret; + } + + /// To be documented. + public static double GetTimeStampOffset(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public static int SetTimeStampOffset(this ComPtr thisVtbl, double offset) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, offset); + return ret; + } + + /// To be documented. + public static double GetAppendWindowStart(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public static int SetAppendWindowStart(this ComPtr thisVtbl, double time) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, time); + return ret; + } + + /// To be documented. + public static double GetAppendWindowEnd(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + return ret; + } + + /// To be documented. + public static int SetAppendWindowEnd(this ComPtr thisVtbl, double time) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, time); + return ret; + } + + /// To be documented. + public static unsafe int Append(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* pData, uint len) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, pData, len); + return ret; + } + + /// To be documented. + public static int Append(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte pData, uint len) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* pDataPtr = &pData) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, pDataPtr, len); + } + return ret; + } + + /// To be documented. + public static int Append(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string pData, uint len) + { + var @this = thisVtbl.Handle; + int ret = default; + var pDataPtr = (byte*) SilkMarshal.StringToPtr(pData, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, pDataPtr, len); + SilkMarshal.Free((nint)pDataPtr); + return ret; + } + + /// To be documented. + public static unsafe int AppendByteStream(this ComPtr thisVtbl, IMFByteStream* pStream, ulong* pMaxLen) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStream, pMaxLen); + return ret; + } + + /// To be documented. + public static unsafe int AppendByteStream(this ComPtr thisVtbl, IMFByteStream* pStream, ref ulong pMaxLen) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (ulong* pMaxLenPtr = &pMaxLen) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStream, pMaxLenPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AppendByteStream(this ComPtr thisVtbl, ref IMFByteStream pStream, ulong* pMaxLen) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pStreamPtr = &pStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStreamPtr, pMaxLen); + } + return ret; + } + + /// To be documented. + public static int AppendByteStream(this ComPtr thisVtbl, ref IMFByteStream pStream, ref ulong pMaxLen) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* pStreamPtr = &pStream) + { + fixed (ulong* pMaxLenPtr = &pMaxLen) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, pStreamPtr, pMaxLenPtr); + } + } + return ret; + } + + /// To be documented. + public static int Abort(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this); + return ret; + } + + /// To be documented. + public static int Remove(this ComPtr thisVtbl, double start, double end) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, start, end); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetBuffered(this ComPtr thisVtbl, ref ComPtr ppBuffered) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetBuffered((IMFMediaTimeRange**) ppBuffered.GetAddressOf()); + } + + /// To be documented. + public static int Append(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pData, uint len) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->Append(in pData.GetPinnableReference(), len); + } + + /// To be documented. + public static unsafe int AppendByteStream(this ComPtr thisVtbl, IMFByteStream* pStream, Span pMaxLen) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AppendByteStream(pStream, ref pMaxLen.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AppendByteStream(this ComPtr thisVtbl, Span pStream, ulong* pMaxLen) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AppendByteStream(ref pStream.GetPinnableReference(), pMaxLen); + } + + /// To be documented. + public static int AppendByteStream(this ComPtr thisVtbl, Span pStream, Span pMaxLen) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AppendByteStream(ref pStream.GetPinnableReference(), ref pMaxLen.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextBinaryVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextBinaryVtblExtensions.gen.cs new file mode 100644 index 0000000000..1b52c06517 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextBinaryVtblExtensions.gen.cs @@ -0,0 +1,209 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextBinaryVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte** data, uint* length) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, data, length); + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte** data, ref uint length) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* lengthPtr = &length) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, data, lengthPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte* data, uint* length) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte** dataPtr = &data) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dataPtr, length); + } + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte* data, ref uint length) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte** dataPtr = &data) + { + fixed (uint* lengthPtr = &length) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, dataPtr, lengthPtr); + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] dataSa, uint* length) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var data = (byte**) SilkMarshal.StringArrayToPtr(dataSa); + var ret = @this->GetData(data, length); + SilkMarshal.CopyPtrToStringArray((nint) data, dataSa); + SilkMarshal.Free((nint) data); + return ret; + } + + /// To be documented. + public static int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] dataSa, ref uint length) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var data = (byte**) SilkMarshal.StringArrayToPtr(dataSa); + var ret = @this->GetData(data, ref length); + SilkMarshal.CopyPtrToStringArray((nint) data, dataSa); + SilkMarshal.Free((nint) data); + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte** data, Span length) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetData(data, ref length.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte* data, Span length) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetData(in data, ref length.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextBoutenVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextBoutenVtblExtensions.gen.cs new file mode 100644 index 0000000000..c8a089cb31 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextBoutenVtblExtensions.gen.cs @@ -0,0 +1,208 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextBoutenVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetBoutenType(this ComPtr thisVtbl, TimedTextBoutenType* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, value); + return ret; + } + + /// To be documented. + public static int GetBoutenType(this ComPtr thisVtbl, ref TimedTextBoutenType value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextBoutenType* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetBoutenColor(this ComPtr thisVtbl, _MFARGB* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, value); + return ret; + } + + /// To be documented. + public static int GetBoutenColor(this ComPtr thisVtbl, ref _MFARGB value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetBoutenPosition(this ComPtr thisVtbl, TimedTextBoutenPosition* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, value); + return ret; + } + + /// To be documented. + public static int GetBoutenPosition(this ComPtr thisVtbl, ref TimedTextBoutenPosition value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextBoutenPosition* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetBoutenType(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetBoutenType(ref value.GetPinnableReference()); + } + + /// To be documented. + public static int GetBoutenColor(this ComPtr thisVtbl, Span<_MFARGB> value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetBoutenColor(ref value.GetPinnableReference()); + } + + /// To be documented. + public static int GetBoutenPosition(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetBoutenPosition(ref value.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextCueListVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextCueListVtblExtensions.gen.cs new file mode 100644 index 0000000000..1bebfb7c99 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextCueListVtblExtensions.gen.cs @@ -0,0 +1,564 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextCueListVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetLength(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetCueByIndex(this ComPtr thisVtbl, uint index, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, cue); + return ret; + } + + /// To be documented. + public static unsafe int GetCueByIndex(this ComPtr thisVtbl, uint index, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, cuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetCueById(this ComPtr thisVtbl, uint id, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, id, cue); + return ret; + } + + /// To be documented. + public static unsafe int GetCueById(this ComPtr thisVtbl, uint id, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, id, cuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* originalId, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalId, cue); + return ret; + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* originalId, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalId, cuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char originalId, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* originalIdPtr = &originalId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cue); + } + return ret; + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char originalId, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* originalIdPtr = &originalId) + { + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cuePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string originalId, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + var originalIdPtr = (byte*) SilkMarshal.StringToPtr(originalId, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cue); + SilkMarshal.Free((nint)originalIdPtr); + return ret; + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string originalId, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + var originalIdPtr = (byte*) SilkMarshal.StringToPtr(originalId, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, originalIdPtr, cuePtr); + } + SilkMarshal.Free((nint)originalIdPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* text, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, text, cue); + return ret; + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* text, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, text, cuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char text, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* textPtr = &text) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cue); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char text, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* textPtr = &text) + { + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cuePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string text, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + var textPtr = (byte*) SilkMarshal.StringToPtr(text, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cue); + SilkMarshal.Free((nint)textPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string text, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + var textPtr = (byte*) SilkMarshal.StringToPtr(text, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, start, duration, textPtr, cuePtr); + } + SilkMarshal.Free((nint)textPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, data, dataSize, cue); + return ret; + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, data, dataSize, cuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* dataPtr = &data) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cue); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (byte* dataPtr = &data) + { + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cuePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + int ret = default; + var dataPtr = (byte*) SilkMarshal.StringToPtr(data, NativeStringEncoding.UTF8); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cue); + SilkMarshal.Free((nint)dataPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + var dataPtr = (byte*) SilkMarshal.StringToPtr(data, NativeStringEncoding.UTF8); + fixed (IMFTimedTextCue** cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, start, duration, dataPtr, dataSize, cuePtr); + } + SilkMarshal.Free((nint)dataPtr); + return ret; + } + + /// To be documented. + public static unsafe int RemoveCue(this ComPtr thisVtbl, IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, cue); + return ret; + } + + /// To be documented. + public static int RemoveCue(this ComPtr thisVtbl, ref IMFTimedTextCue cue) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCue* cuePtr = &cue) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, cuePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetCueByIndex(this ComPtr thisVtbl, uint index, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetCueByIndex(index, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static int GetCueById(this ComPtr thisVtbl, uint id, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetCueById(id, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* originalId, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetCueByOriginalId(originalId, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan originalId, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetCueByOriginalId(in originalId.GetPinnableReference(), cue); + } + + /// To be documented. + public static int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char originalId, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetCueByOriginalId(in originalId, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan originalId, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetCueByOriginalId(in originalId.GetPinnableReference(), ref cue); + } + + /// To be documented. + public static int GetCueByOriginalId(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string originalId, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetCueByOriginalId(originalId, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* text, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTextCue(start, duration, text, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan text, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTextCue(start, duration, in text.GetPinnableReference(), cue); + } + + /// To be documented. + public static int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char text, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTextCue(start, duration, in text, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan text, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTextCue(start, duration, in text.GetPinnableReference(), ref cue); + } + + /// To be documented. + public static int AddTextCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string text, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTextCue(start, duration, text, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] byte* data, uint dataSize, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddDataCue(start, duration, data, dataSize, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, uint dataSize, IMFTimedTextCue** cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataCue(start, duration, in data.GetPinnableReference(), dataSize, cue); + } + + /// To be documented. + public static int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in byte data, uint dataSize, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddDataCue(start, duration, in data, dataSize, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, uint dataSize, ref IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataCue(start, duration, in data.GetPinnableReference(), dataSize, ref cue); + } + + /// To be documented. + public static int AddDataCue(this ComPtr thisVtbl, double start, double duration, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, uint dataSize, ref ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddDataCue(start, duration, data, dataSize, (IMFTimedTextCue**) cue.GetAddressOf()); + } + + /// To be documented. + public static int RemoveCue(this ComPtr thisVtbl, ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->RemoveCue((IMFTimedTextCue*) cue.Handle); + } + + /// To be documented. + public static int RemoveCue(this ComPtr thisVtbl, Span cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->RemoveCue(ref cue.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextCueVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextCueVtblExtensions.gen.cs new file mode 100644 index 0000000000..bc45873b16 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextCueVtblExtensions.gen.cs @@ -0,0 +1,324 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextCueVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetId(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetOriginalId(this ComPtr thisVtbl, char** originalId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, originalId); + return ret; + } + + /// To be documented. + public static unsafe int GetOriginalId(this ComPtr thisVtbl, ref char* originalId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** originalIdPtr = &originalId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, originalIdPtr); + } + return ret; + } + + /// To be documented. + public static TimedTextTrackKind GetCueKind(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + TimedTextTrackKind ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this); + return ret; + } + + /// To be documented. + public static double GetStartTime(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this); + return ret; + } + + /// To be documented. + public static double GetDuration(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + double ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public static uint GetTrackId(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, IMFTimedTextBinary** data) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, data); + return ret; + } + + /// To be documented. + public static unsafe int GetData(this ComPtr thisVtbl, ref IMFTimedTextBinary* data) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextBinary** dataPtr = &data) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, dataPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetRegion(this ComPtr thisVtbl, IMFTimedTextRegion** region) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, region); + return ret; + } + + /// To be documented. + public static unsafe int GetRegion(this ComPtr thisVtbl, ref IMFTimedTextRegion* region) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextRegion** regionPtr = ®ion) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, regionPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetStyle(this ComPtr thisVtbl, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, style); + return ret; + } + + /// To be documented. + public static unsafe int GetStyle(this ComPtr thisVtbl, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, stylePtr); + } + return ret; + } + + /// To be documented. + public static uint GetLineCount(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetLine(this ComPtr thisVtbl, uint index, IMFTimedTextFormattedText** line) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, index, line); + return ret; + } + + /// To be documented. + public static unsafe int GetLine(this ComPtr thisVtbl, uint index, ref IMFTimedTextFormattedText* line) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextFormattedText** linePtr = &line) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, index, linePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetOriginalId(this ComPtr thisVtbl, string[] originalIdSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var originalId = (char**) SilkMarshal.StringArrayToPtr(originalIdSa); + var ret = @this->GetOriginalId(originalId); + SilkMarshal.CopyPtrToStringArray((nint) originalId, originalIdSa); + SilkMarshal.Free((nint) originalId); + return ret; + } + + /// To be documented. + public static int GetData(this ComPtr thisVtbl, ref ComPtr data) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetData((IMFTimedTextBinary**) data.GetAddressOf()); + } + + /// To be documented. + public static int GetRegion(this ComPtr thisVtbl, ref ComPtr region) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetRegion((IMFTimedTextRegion**) region.GetAddressOf()); + } + + /// To be documented. + public static int GetStyle(this ComPtr thisVtbl, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetStyle((IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public static int GetLine(this ComPtr thisVtbl, uint index, ref ComPtr line) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetLine(index, (IMFTimedTextFormattedText**) line.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextFormattedTextVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextFormattedTextVtblExtensions.gen.cs new file mode 100644 index 0000000000..4cf4b8ee83 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextFormattedTextVtblExtensions.gen.cs @@ -0,0 +1,351 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextFormattedTextVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetText(this ComPtr thisVtbl, char** text) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, text); + return ret; + } + + /// To be documented. + public static unsafe int GetText(this ComPtr thisVtbl, ref char* text) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** textPtr = &text) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, textPtr); + } + return ret; + } + + /// To be documented. + public static uint GetSubformattingCount(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, uint* charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLength, style); + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, uint* charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLength, stylePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, ref uint charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* charLengthPtr = &charLength) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLengthPtr, style); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, ref uint charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* charLengthPtr = &charLength) + { + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstChar, charLengthPtr, stylePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, ref uint firstChar, uint* charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLength, style); + } + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, ref uint firstChar, uint* charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLength, stylePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, ref uint firstChar, ref uint charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + fixed (uint* charLengthPtr = &charLength) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLengthPtr, style); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, ref uint firstChar, ref uint charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* firstCharPtr = &firstChar) + { + fixed (uint* charLengthPtr = &charLength) + { + fixed (IMFTimedTextStyle** stylePtr = &style) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, index, firstCharPtr, charLengthPtr, stylePtr); + } + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetText(this ComPtr thisVtbl, string[] textSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var text = (char**) SilkMarshal.StringArrayToPtr(textSa); + var ret = @this->GetText(text); + SilkMarshal.CopyPtrToStringArray((nint) text, textSa); + SilkMarshal.Free((nint) text); + return ret; + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, uint* charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSubformatting(index, firstChar, charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, Span charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetSubformatting(index, firstChar, ref charLength.GetPinnableReference(), style); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, ref uint charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSubformatting(index, firstChar, ref charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, uint* firstChar, Span charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetSubformatting(index, firstChar, ref charLength.GetPinnableReference(), ref style); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, Span firstChar, uint* charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetSubformatting(index, ref firstChar.GetPinnableReference(), charLength, style); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, ref uint firstChar, uint* charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSubformatting(index, ref firstChar, charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, Span firstChar, uint* charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetSubformatting(index, ref firstChar.GetPinnableReference(), charLength, ref style); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, Span firstChar, Span charLength, IMFTimedTextStyle** style) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetSubformatting(index, ref firstChar.GetPinnableReference(), ref charLength.GetPinnableReference(), style); + } + + /// To be documented. + public static int GetSubformatting(this ComPtr thisVtbl, uint index, ref uint firstChar, ref uint charLength, ref ComPtr style) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetSubformatting(index, ref firstChar, ref charLength, (IMFTimedTextStyle**) style.GetAddressOf()); + } + + /// To be documented. + public static unsafe int GetSubformatting(this ComPtr thisVtbl, uint index, Span firstChar, Span charLength, ref IMFTimedTextStyle* style) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetSubformatting(index, ref firstChar.GetPinnableReference(), ref charLength.GetPinnableReference(), ref style); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextNotifyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextNotifyVtblExtensions.gen.cs new file mode 100644 index 0000000000..f802acb83c --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextNotifyVtblExtensions.gen.cs @@ -0,0 +1,196 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextNotifyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static void TrackAdded(this ComPtr thisVtbl, uint trackId) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, trackId); + } + + /// To be documented. + public static void TrackRemoved(this ComPtr thisVtbl, uint trackId) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, trackId); + } + + /// To be documented. + public static void TrackSelected(this ComPtr thisVtbl, uint trackId, Silk.NET.Core.Bool32 selected) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, trackId, selected); + } + + /// To be documented. + public static void TrackReadyStateChanged(this ComPtr thisVtbl, uint trackId) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, trackId); + } + + /// To be documented. + public static void Error(this ComPtr thisVtbl, TimedTextErrorCode errorCode, int extendedErrorCode, uint sourceTrackId) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, errorCode, extendedErrorCode, sourceTrackId); + } + + /// To be documented. + public static unsafe void Cue(this ComPtr thisVtbl, TimedTextCueEvent cueEvent, double currentTime, IMFTimedTextCue* cue) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, cueEvent, currentTime, cue); + } + + /// To be documented. + public static void Cue(this ComPtr thisVtbl, TimedTextCueEvent cueEvent, double currentTime, ref IMFTimedTextCue cue) + { + var @this = thisVtbl.Handle; + fixed (IMFTimedTextCue* cuePtr = &cue) + { + ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, cueEvent, currentTime, cuePtr); + } + } + + /// To be documented. + public static void Reset(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this); + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static void Cue(this ComPtr thisVtbl, TimedTextCueEvent cueEvent, double currentTime, ComPtr cue) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + @this->Cue(cueEvent, currentTime, (IMFTimedTextCue*) cue.Handle); + } + + /// To be documented. + public static void Cue(this ComPtr thisVtbl, TimedTextCueEvent cueEvent, double currentTime, Span cue) + { + var @this = thisVtbl.Handle; + // SpanOverloader + @this->Cue(cueEvent, currentTime, ref cue.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextRegionVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextRegionVtblExtensions.gen.cs new file mode 100644 index 0000000000..ed3f6afc7f --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextRegionVtblExtensions.gen.cs @@ -0,0 +1,1533 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextRegionVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetName(this ComPtr thisVtbl, char** name) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, name); + return ret; + } + + /// To be documented. + public static unsafe int GetName(this ComPtr thisVtbl, ref char* name) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** namePtr = &name) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, namePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, double* pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pY, unitType); + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, double* pY, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pY, unitTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, ref double pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pYPtr = &pY) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pYPtr, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, ref double pY, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pYPtr = &pY) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pX, pYPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, ref double pX, double* pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pXPtr = &pX) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pY, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, ref double pX, double* pY, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pXPtr = &pX) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pY, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, ref double pX, ref double pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pXPtr = &pX) + { + fixed (double* pYPtr = &pY) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pYPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static int GetPosition(this ComPtr thisVtbl, ref double pX, ref double pY, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pXPtr = &pX) + { + fixed (double* pYPtr = &pY) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, pXPtr, pYPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, double* pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeight, unitType); + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, double* pHeight, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeight, unitTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, ref double pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pHeightPtr = &pHeight) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeightPtr, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, ref double pHeight, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pHeightPtr = &pHeight) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidth, pHeightPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, ref double pWidth, double* pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeight, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, ref double pWidth, double* pHeight, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeight, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, ref double pWidth, ref double pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + fixed (double* pHeightPtr = &pHeight) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeightPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static int GetExtent(this ComPtr thisVtbl, ref double pWidth, ref double pHeight, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pWidthPtr = &pWidth) + { + fixed (double* pHeightPtr = &pHeight) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, pWidthPtr, pHeightPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetBackgroundColor(this ComPtr thisVtbl, _MFARGB* bgColor) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, bgColor); + return ret; + } + + /// To be documented. + public static int GetBackgroundColor(this ComPtr thisVtbl, ref _MFARGB bgColor) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* bgColorPtr = &bgColor) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, bgColorPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetWritingMode(this ComPtr thisVtbl, TimedTextWritingMode* writingMode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, writingMode); + return ret; + } + + /// To be documented. + public static int GetWritingMode(this ComPtr thisVtbl, ref TimedTextWritingMode writingMode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextWritingMode* writingModePtr = &writingMode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, writingModePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetDisplayAlignment(this ComPtr thisVtbl, TimedTextDisplayAlignment* displayAlign) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, displayAlign); + return ret; + } + + /// To be documented. + public static int GetDisplayAlignment(this ComPtr thisVtbl, ref TimedTextDisplayAlignment displayAlign) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextDisplayAlignment* displayAlignPtr = &displayAlign) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, displayAlignPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetLineHeight(this ComPtr thisVtbl, double* pLineHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeight, unitType); + return ret; + } + + /// To be documented. + public static unsafe int GetLineHeight(this ComPtr thisVtbl, double* pLineHeight, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeight, unitTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetLineHeight(this ComPtr thisVtbl, ref double pLineHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pLineHeightPtr = &pLineHeight) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeightPtr, unitType); + } + return ret; + } + + /// To be documented. + public static int GetLineHeight(this ComPtr thisVtbl, ref double pLineHeight, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* pLineHeightPtr = &pLineHeight) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, pLineHeightPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetClipOverflow(this ComPtr thisVtbl, int* clipOverflow) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, clipOverflow); + return ret; + } + + /// To be documented. + public static int GetClipOverflow(this ComPtr thisVtbl, ref int clipOverflow) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* clipOverflowPtr = &clipOverflow) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, clipOverflowPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, end, unitType); + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, end, unitTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, endPtr, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, after, endPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, end, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, end, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, endPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, start, afterPtr, endPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, end, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, end, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, endPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, after, endPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, end, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, end, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, endPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, ref double start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, before, startPtr, afterPtr, endPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, end, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, end, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, endPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, after, endPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, end, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, end, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, endPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, double* start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, start, afterPtr, endPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, end, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, double* after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, end, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, double* after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, endPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, double* after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, after, endPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, ref double after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, end, unitType); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, ref double after, double* end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, end, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, ref double after, ref double end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, endPtr, unitType); + } + } + } + } + return ret; + } + + /// To be documented. + public static int GetPadding(this ComPtr thisVtbl, ref double before, ref double start, ref double after, ref double end, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* beforePtr = &before) + { + fixed (double* startPtr = &start) + { + fixed (double* afterPtr = &after) + { + fixed (double* endPtr = &end) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, beforePtr, startPtr, afterPtr, endPtr, unitTypePtr); + } + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetWrap(this ComPtr thisVtbl, int* wrap) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, wrap); + return ret; + } + + /// To be documented. + public static int GetWrap(this ComPtr thisVtbl, ref int wrap) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* wrapPtr = &wrap) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, wrapPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetZIndex(this ComPtr thisVtbl, int* zIndex) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, zIndex); + return ret; + } + + /// To be documented. + public static int GetZIndex(this ComPtr thisVtbl, ref int zIndex) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* zIndexPtr = &zIndex) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, zIndexPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetScrollMode(this ComPtr thisVtbl, TimedTextScrollMode* scrollMode) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, scrollMode); + return ret; + } + + /// To be documented. + public static int GetScrollMode(this ComPtr thisVtbl, ref TimedTextScrollMode scrollMode) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextScrollMode* scrollModePtr = &scrollMode) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, scrollModePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetName(this ComPtr thisVtbl, string[] nameSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var name = (char**) SilkMarshal.StringArrayToPtr(nameSa); + var ret = @this->GetName(name); + SilkMarshal.CopyPtrToStringArray((nint) name, nameSa); + SilkMarshal.Free((nint) name); + return ret; + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, double* pY, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(pX, pY, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, Span pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(pX, ref pY.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, double* pX, Span pY, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(pX, ref pY.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, Span pX, double* pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(ref pX.GetPinnableReference(), pY, unitType); + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, Span pX, double* pY, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(ref pX.GetPinnableReference(), pY, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPosition(this ComPtr thisVtbl, Span pX, Span pY, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(ref pX.GetPinnableReference(), ref pY.GetPinnableReference(), unitType); + } + + /// To be documented. + public static int GetPosition(this ComPtr thisVtbl, Span pX, Span pY, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPosition(ref pX.GetPinnableReference(), ref pY.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, double* pHeight, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(pWidth, pHeight, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, Span pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(pWidth, ref pHeight.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, double* pWidth, Span pHeight, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(pWidth, ref pHeight.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, Span pWidth, double* pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(ref pWidth.GetPinnableReference(), pHeight, unitType); + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, Span pWidth, double* pHeight, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(ref pWidth.GetPinnableReference(), pHeight, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetExtent(this ComPtr thisVtbl, Span pWidth, Span pHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(ref pWidth.GetPinnableReference(), ref pHeight.GetPinnableReference(), unitType); + } + + /// To be documented. + public static int GetExtent(this ComPtr thisVtbl, Span pWidth, Span pHeight, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetExtent(ref pWidth.GetPinnableReference(), ref pHeight.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static int GetBackgroundColor(this ComPtr thisVtbl, Span<_MFARGB> bgColor) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetBackgroundColor(ref bgColor.GetPinnableReference()); + } + + /// To be documented. + public static int GetWritingMode(this ComPtr thisVtbl, Span writingMode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetWritingMode(ref writingMode.GetPinnableReference()); + } + + /// To be documented. + public static int GetDisplayAlignment(this ComPtr thisVtbl, Span displayAlign) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetDisplayAlignment(ref displayAlign.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetLineHeight(this ComPtr thisVtbl, double* pLineHeight, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetLineHeight(pLineHeight, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetLineHeight(this ComPtr thisVtbl, Span pLineHeight, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetLineHeight(ref pLineHeight.GetPinnableReference(), unitType); + } + + /// To be documented. + public static int GetLineHeight(this ComPtr thisVtbl, Span pLineHeight, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetLineHeight(ref pLineHeight.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static int GetClipOverflow(this ComPtr thisVtbl, Span clipOverflow) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetClipOverflow(ref clipOverflow.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, after, end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, after, ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, double* after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, after, ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, Span after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, ref after.GetPinnableReference(), end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, Span after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, ref after.GetPinnableReference(), end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, Span after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, ref after.GetPinnableReference(), ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, double* start, Span after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, start, ref after.GetPinnableReference(), ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), after, end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, double* after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), after, end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, double* after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), after, ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, double* after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), after, ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, Span after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), ref after.GetPinnableReference(), end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, Span after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), ref after.GetPinnableReference(), end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, Span after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), ref after.GetPinnableReference(), ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, double* before, Span start, Span after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(before, ref start.GetPinnableReference(), ref after.GetPinnableReference(), ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, after, end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, double* after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, after, end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, double* after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, after, ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, double* after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, after, ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, Span after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, ref after.GetPinnableReference(), end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, Span after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, ref after.GetPinnableReference(), end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, Span after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, ref after.GetPinnableReference(), ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, double* start, Span after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), start, ref after.GetPinnableReference(), ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, double* after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), after, end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, double* after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), after, end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, double* after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), after, ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, double* after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), after, ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, Span after, double* end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), ref after.GetPinnableReference(), end, unitType); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, Span after, double* end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), ref after.GetPinnableReference(), end, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetPadding(this ComPtr thisVtbl, Span before, Span start, Span after, Span end, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), ref after.GetPinnableReference(), ref end.GetPinnableReference(), unitType); + } + + /// To be documented. + public static int GetPadding(this ComPtr thisVtbl, Span before, Span start, Span after, Span end, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetPadding(ref before.GetPinnableReference(), ref start.GetPinnableReference(), ref after.GetPinnableReference(), ref end.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static int GetWrap(this ComPtr thisVtbl, Span wrap) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetWrap(ref wrap.GetPinnableReference()); + } + + /// To be documented. + public static int GetZIndex(this ComPtr thisVtbl, Span zIndex) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetZIndex(ref zIndex.GetPinnableReference()); + } + + /// To be documented. + public static int GetScrollMode(this ComPtr thisVtbl, Span scrollMode) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetScrollMode(ref scrollMode.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextRubyVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextRubyVtblExtensions.gen.cs new file mode 100644 index 0000000000..d3a82f98a1 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextRubyVtblExtensions.gen.cs @@ -0,0 +1,241 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextRubyVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetRubyText(this ComPtr thisVtbl, char** rubyText) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, rubyText); + return ret; + } + + /// To be documented. + public static unsafe int GetRubyText(this ComPtr thisVtbl, ref char* rubyText) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** rubyTextPtr = &rubyText) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, rubyTextPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetRubyPosition(this ComPtr thisVtbl, TimedTextRubyPosition* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, value); + return ret; + } + + /// To be documented. + public static int GetRubyPosition(this ComPtr thisVtbl, ref TimedTextRubyPosition value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextRubyPosition* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetRubyAlign(this ComPtr thisVtbl, TimedTextRubyAlign* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, value); + return ret; + } + + /// To be documented. + public static int GetRubyAlign(this ComPtr thisVtbl, ref TimedTextRubyAlign value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextRubyAlign* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetRubyReserve(this ComPtr thisVtbl, TimedTextRubyReserve* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, value); + return ret; + } + + /// To be documented. + public static int GetRubyReserve(this ComPtr thisVtbl, ref TimedTextRubyReserve value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextRubyReserve* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetRubyText(this ComPtr thisVtbl, string[] rubyTextSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var rubyText = (char**) SilkMarshal.StringArrayToPtr(rubyTextSa); + var ret = @this->GetRubyText(rubyText); + SilkMarshal.CopyPtrToStringArray((nint) rubyText, rubyTextSa); + SilkMarshal.Free((nint) rubyText); + return ret; + } + + /// To be documented. + public static int GetRubyPosition(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetRubyPosition(ref value.GetPinnableReference()); + } + + /// To be documented. + public static int GetRubyAlign(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetRubyAlign(ref value.GetPinnableReference()); + } + + /// To be documented. + public static int GetRubyReserve(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetRubyReserve(ref value.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextStyle2VtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextStyle2VtblExtensions.gen.cs new file mode 100644 index 0000000000..dd312d5301 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextStyle2VtblExtensions.gen.cs @@ -0,0 +1,237 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextStyle2VtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetRuby(this ComPtr thisVtbl, IMFTimedTextRuby** ruby) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, ruby); + return ret; + } + + /// To be documented. + public static unsafe int GetRuby(this ComPtr thisVtbl, ref IMFTimedTextRuby* ruby) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextRuby** rubyPtr = &ruby) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, rubyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetBouten(this ComPtr thisVtbl, IMFTimedTextBouten** bouten) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, bouten); + return ret; + } + + /// To be documented. + public static unsafe int GetBouten(this ComPtr thisVtbl, ref IMFTimedTextBouten* bouten) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextBouten** boutenPtr = &bouten) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, boutenPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int IsTextCombined(this ComPtr thisVtbl, int* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, value); + return ret; + } + + /// To be documented. + public static int IsTextCombined(this ComPtr thisVtbl, ref int value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetFontAngleInDegrees(this ComPtr thisVtbl, double* value) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, value); + return ret; + } + + /// To be documented. + public static int GetFontAngleInDegrees(this ComPtr thisVtbl, ref double value) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* valuePtr = &value) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, valuePtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetRuby(this ComPtr thisVtbl, ref ComPtr ruby) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetRuby((IMFTimedTextRuby**) ruby.GetAddressOf()); + } + + /// To be documented. + public static int GetBouten(this ComPtr thisVtbl, ref ComPtr bouten) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetBouten((IMFTimedTextBouten**) bouten.GetAddressOf()); + } + + /// To be documented. + public static int IsTextCombined(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->IsTextCombined(ref value.GetPinnableReference()); + } + + /// To be documented. + public static int GetFontAngleInDegrees(this ComPtr thisVtbl, Span value) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetFontAngleInDegrees(ref value.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextStyleVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextStyleVtblExtensions.gen.cs new file mode 100644 index 0000000000..c686882456 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextStyleVtblExtensions.gen.cs @@ -0,0 +1,860 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextStyleVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetName(this ComPtr thisVtbl, char** name) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, name); + return ret; + } + + /// To be documented. + public static unsafe int GetName(this ComPtr thisVtbl, ref char* name) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** namePtr = &name) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, namePtr); + } + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsExternal(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetFontFamily(this ComPtr thisVtbl, char** fontFamily) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, fontFamily); + return ret; + } + + /// To be documented. + public static unsafe int GetFontFamily(this ComPtr thisVtbl, ref char* fontFamily) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** fontFamilyPtr = &fontFamily) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, fontFamilyPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetFontSize(this ComPtr thisVtbl, double* fontSize, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSize, unitType); + return ret; + } + + /// To be documented. + public static unsafe int GetFontSize(this ComPtr thisVtbl, double* fontSize, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSize, unitTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetFontSize(this ComPtr thisVtbl, ref double fontSize, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* fontSizePtr = &fontSize) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSizePtr, unitType); + } + return ret; + } + + /// To be documented. + public static int GetFontSize(this ComPtr thisVtbl, ref double fontSize, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* fontSizePtr = &fontSize) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, fontSizePtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetColor(this ComPtr thisVtbl, _MFARGB* color) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, color); + return ret; + } + + /// To be documented. + public static int GetColor(this ComPtr thisVtbl, ref _MFARGB color) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, colorPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetBackgroundColor(this ComPtr thisVtbl, _MFARGB* bgColor) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, bgColor); + return ret; + } + + /// To be documented. + public static int GetBackgroundColor(this ComPtr thisVtbl, ref _MFARGB bgColor) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* bgColorPtr = &bgColor) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, bgColorPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetShowBackgroundAlways(this ComPtr thisVtbl, int* showBackgroundAlways) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, showBackgroundAlways); + return ret; + } + + /// To be documented. + public static int GetShowBackgroundAlways(this ComPtr thisVtbl, ref int showBackgroundAlways) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* showBackgroundAlwaysPtr = &showBackgroundAlways) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, showBackgroundAlwaysPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetFontStyle(this ComPtr thisVtbl, TimedTextFontStyle* fontStyle) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, fontStyle); + return ret; + } + + /// To be documented. + public static int GetFontStyle(this ComPtr thisVtbl, ref TimedTextFontStyle fontStyle) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextFontStyle* fontStylePtr = &fontStyle) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, fontStylePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetBold(this ComPtr thisVtbl, int* bold) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, bold); + return ret; + } + + /// To be documented. + public static int GetBold(this ComPtr thisVtbl, ref int bold) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* boldPtr = &bold) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, boldPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetRightToLeft(this ComPtr thisVtbl, int* rightToLeft) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, rightToLeft); + return ret; + } + + /// To be documented. + public static int GetRightToLeft(this ComPtr thisVtbl, ref int rightToLeft) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (int* rightToLeftPtr = &rightToLeft) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, rightToLeftPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextAlignment(this ComPtr thisVtbl, TimedTextAlignment* textAlign) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textAlign); + return ret; + } + + /// To be documented. + public static int GetTextAlignment(this ComPtr thisVtbl, ref TimedTextAlignment textAlign) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextAlignment* textAlignPtr = &textAlign) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textAlignPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextDecoration(this ComPtr thisVtbl, uint* textDecoration) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, textDecoration); + return ret; + } + + /// To be documented. + public static int GetTextDecoration(this ComPtr thisVtbl, ref uint textDecoration) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* textDecorationPtr = &textDecoration) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, textDecorationPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadius, unitType); + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadius, unitTypePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadiusPtr, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thickness, blurRadiusPtr, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, ref double thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadius, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, ref double thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadius, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, ref double thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadiusPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, ref double thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, color, thicknessPtr, blurRadiusPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, double* thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadius, unitType); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, double* thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadius, unitTypePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, double* thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadiusPtr, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, double* thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thickness, blurRadiusPtr, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, ref double thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadius, unitType); + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, ref double thickness, double* blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadius, unitTypePtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, ref double thickness, ref double blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadiusPtr, unitType); + } + } + } + return ret; + } + + /// To be documented. + public static int GetTextOutline(this ComPtr thisVtbl, ref _MFARGB color, ref double thickness, ref double blurRadius, ref TimedTextUnitType unitType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (_MFARGB* colorPtr = &color) + { + fixed (double* thicknessPtr = &thickness) + { + fixed (double* blurRadiusPtr = &blurRadius) + { + fixed (TimedTextUnitType* unitTypePtr = &unitType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, colorPtr, thicknessPtr, blurRadiusPtr, unitTypePtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetName(this ComPtr thisVtbl, string[] nameSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var name = (char**) SilkMarshal.StringArrayToPtr(nameSa); + var ret = @this->GetName(name); + SilkMarshal.CopyPtrToStringArray((nint) name, nameSa); + SilkMarshal.Free((nint) name); + return ret; + } + + /// To be documented. + public static int GetFontFamily(this ComPtr thisVtbl, string[] fontFamilySa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var fontFamily = (char**) SilkMarshal.StringArrayToPtr(fontFamilySa); + var ret = @this->GetFontFamily(fontFamily); + SilkMarshal.CopyPtrToStringArray((nint) fontFamily, fontFamilySa); + SilkMarshal.Free((nint) fontFamily); + return ret; + } + + /// To be documented. + public static unsafe int GetFontSize(this ComPtr thisVtbl, double* fontSize, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetFontSize(fontSize, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetFontSize(this ComPtr thisVtbl, Span fontSize, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetFontSize(ref fontSize.GetPinnableReference(), unitType); + } + + /// To be documented. + public static int GetFontSize(this ComPtr thisVtbl, Span fontSize, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetFontSize(ref fontSize.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static int GetColor(this ComPtr thisVtbl, Span<_MFARGB> color) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetColor(ref color.GetPinnableReference()); + } + + /// To be documented. + public static int GetBackgroundColor(this ComPtr thisVtbl, Span<_MFARGB> bgColor) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetBackgroundColor(ref bgColor.GetPinnableReference()); + } + + /// To be documented. + public static int GetShowBackgroundAlways(this ComPtr thisVtbl, Span showBackgroundAlways) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetShowBackgroundAlways(ref showBackgroundAlways.GetPinnableReference()); + } + + /// To be documented. + public static int GetFontStyle(this ComPtr thisVtbl, Span fontStyle) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetFontStyle(ref fontStyle.GetPinnableReference()); + } + + /// To be documented. + public static int GetBold(this ComPtr thisVtbl, Span bold) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetBold(ref bold.GetPinnableReference()); + } + + /// To be documented. + public static int GetRightToLeft(this ComPtr thisVtbl, Span rightToLeft) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetRightToLeft(ref rightToLeft.GetPinnableReference()); + } + + /// To be documented. + public static int GetTextAlignment(this ComPtr thisVtbl, Span textAlign) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextAlignment(ref textAlign.GetPinnableReference()); + } + + /// To be documented. + public static int GetTextDecoration(this ComPtr thisVtbl, Span textDecoration) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextDecoration(ref textDecoration.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, double* blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, thickness, blurRadius, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, Span blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, thickness, ref blurRadius.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, double* thickness, Span blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, thickness, ref blurRadius.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, Span thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, ref thickness.GetPinnableReference(), blurRadius, unitType); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, Span thickness, double* blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, ref thickness.GetPinnableReference(), blurRadius, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, Span thickness, Span blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, ref thickness.GetPinnableReference(), ref blurRadius.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, _MFARGB* color, Span thickness, Span blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(color, ref thickness.GetPinnableReference(), ref blurRadius.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, double* thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), thickness, blurRadius, unitType); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, double* thickness, double* blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), thickness, blurRadius, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, double* thickness, Span blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), thickness, ref blurRadius.GetPinnableReference(), unitType); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, double* thickness, Span blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), thickness, ref blurRadius.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, Span thickness, double* blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), ref thickness.GetPinnableReference(), blurRadius, unitType); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, Span thickness, double* blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), ref thickness.GetPinnableReference(), blurRadius, ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, Span thickness, Span blurRadius, TimedTextUnitType* unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), ref thickness.GetPinnableReference(), ref blurRadius.GetPinnableReference(), unitType); + } + + /// To be documented. + public static int GetTextOutline(this ComPtr thisVtbl, Span<_MFARGB> color, Span thickness, Span blurRadius, Span unitType) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetTextOutline(ref color.GetPinnableReference(), ref thickness.GetPinnableReference(), ref blurRadius.GetPinnableReference(), ref unitType.GetPinnableReference()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextTrackListVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextTrackListVtblExtensions.gen.cs new file mode 100644 index 0000000000..4a7fd298a6 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextTrackListVtblExtensions.gen.cs @@ -0,0 +1,188 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextTrackListVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetLength(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetTrack(this ComPtr thisVtbl, uint index, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, track); + return ret; + } + + /// To be documented. + public static unsafe int GetTrack(this ComPtr thisVtbl, uint index, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, index, trackPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTrackById(this ComPtr thisVtbl, uint trackId, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, trackId, track); + return ret; + } + + /// To be documented. + public static unsafe int GetTrackById(this ComPtr thisVtbl, uint trackId, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, trackId, trackPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetTrack(this ComPtr thisVtbl, uint index, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetTrack(index, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static int GetTrackById(this ComPtr thisVtbl, uint trackId, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetTrackById(trackId, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextTrackVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextTrackVtblExtensions.gen.cs new file mode 100644 index 0000000000..0aa8df62a5 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextTrackVtblExtensions.gen.cs @@ -0,0 +1,381 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextTrackVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static uint GetId(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetLabel(this ComPtr thisVtbl, char** label) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, label); + return ret; + } + + /// To be documented. + public static unsafe int GetLabel(this ComPtr thisVtbl, ref char* label) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int SetLabel(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, label); + return ret; + } + + /// To be documented. + public static int SetLabel(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, labelPtr); + } + return ret; + } + + /// To be documented. + public static int SetLabel(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, labelPtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int GetLanguage(this ComPtr thisVtbl, char** language) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, language); + return ret; + } + + /// To be documented. + public static unsafe int GetLanguage(this ComPtr thisVtbl, ref char* language) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, languagePtr); + } + return ret; + } + + /// To be documented. + public static TimedTextTrackKind GetTrackKind(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + TimedTextTrackKind ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsInBand(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetInBandMetadataTrackDispatchType(this ComPtr thisVtbl, char** dispatchType) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, dispatchType); + return ret; + } + + /// To be documented. + public static unsafe int GetInBandMetadataTrackDispatchType(this ComPtr thisVtbl, ref char* dispatchType) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char** dispatchTypePtr = &dispatchType) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, dispatchTypePtr); + } + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsActive(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this); + return ret; + } + + /// To be documented. + public static TimedTextErrorCode GetErrorCode(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + TimedTextErrorCode ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this); + return ret; + } + + /// To be documented. + public static int GetExtendedErrorCode(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetDataFormat(this ComPtr thisVtbl, Guid* format) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, format); + return ret; + } + + /// To be documented. + public static int GetDataFormat(this ComPtr thisVtbl, ref Guid format) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* formatPtr = &format) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, formatPtr); + } + return ret; + } + + /// To be documented. + public static TimedTextTrackReadyState GetReadyState(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + TimedTextTrackReadyState ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this); + return ret; + } + + /// To be documented. + public static unsafe int GetCueList(this ComPtr thisVtbl, IMFTimedTextCueList** cues) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, cues); + return ret; + } + + /// To be documented. + public static unsafe int GetCueList(this ComPtr thisVtbl, ref IMFTimedTextCueList* cues) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextCueList** cuesPtr = &cues) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, cuesPtr); + } + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int GetLabel(this ComPtr thisVtbl, string[] labelSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var label = (char**) SilkMarshal.StringArrayToPtr(labelSa); + var ret = @this->GetLabel(label); + SilkMarshal.CopyPtrToStringArray((nint) label, labelSa); + SilkMarshal.Free((nint) label); + return ret; + } + + /// To be documented. + public static int SetLabel(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->SetLabel(in label.GetPinnableReference()); + } + + /// To be documented. + public static int GetLanguage(this ComPtr thisVtbl, string[] languageSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var language = (char**) SilkMarshal.StringArrayToPtr(languageSa); + var ret = @this->GetLanguage(language); + SilkMarshal.CopyPtrToStringArray((nint) language, languageSa); + SilkMarshal.Free((nint) language); + return ret; + } + + /// To be documented. + public static int GetInBandMetadataTrackDispatchType(this ComPtr thisVtbl, string[] dispatchTypeSa) + { + var @this = thisVtbl.Handle; + // StringArrayOverloader + var dispatchType = (char**) SilkMarshal.StringArrayToPtr(dispatchTypeSa); + var ret = @this->GetInBandMetadataTrackDispatchType(dispatchType); + SilkMarshal.CopyPtrToStringArray((nint) dispatchType, dispatchTypeSa); + SilkMarshal.Free((nint) dispatchType); + return ret; + } + + /// To be documented. + public static int GetDataFormat(this ComPtr thisVtbl, Span format) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetDataFormat(ref format.GetPinnableReference()); + } + + /// To be documented. + public static int GetCueList(this ComPtr thisVtbl, ref ComPtr cues) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetCueList((IMFTimedTextCueList**) cues.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextVtblExtensions.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextVtblExtensions.gen.cs new file mode 100644 index 0000000000..65c56bee6c --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/MFTimedTextVtblExtensions.gen.cs @@ -0,0 +1,2790 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation; + +public unsafe static class MFTimedTextVtblExtensions +{ + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObject); + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Guid* riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riid, ppvObjectPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObject); + } + return ret; + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, ref Guid riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (Guid* riidPtr = &riid) + { + fixed (void** ppvObjectPtr = &ppvObject) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[0])(@this, riidPtr, ppvObjectPtr); + } + } + return ret; + } + + /// To be documented. + public static uint AddRef(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[1])(@this); + return ret; + } + + /// To be documented. + public static uint Release(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + uint ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[2])(@this); + return ret; + } + + /// To be documented. + public static unsafe int RegisterNotifications(this ComPtr thisVtbl, IMFTimedTextNotify* notify) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, notify); + return ret; + } + + /// To be documented. + public static int RegisterNotifications(this ComPtr thisVtbl, ref IMFTimedTextNotify notify) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextNotify* notifyPtr = ¬ify) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[3])(@this, notifyPtr); + } + return ret; + } + + /// To be documented. + public static int SelectTrack(this ComPtr thisVtbl, uint trackId, Silk.NET.Core.Bool32 selected) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[4])(@this, trackId, selected); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, language, kind, isDefault, trackId); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, language, kind, isDefault, trackIdPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStream, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + } + return ret; + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, ref IMFByteStream byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFByteStream* byteStreamPtr = &byteStream) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[5])(@this, byteStreamPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, language, kind, isDefault, trackId); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, language, kind, isDefault, trackIdPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, url, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackId); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackIdPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + } + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* urlPtr = &url) + { + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, label, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackId); + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, language, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + } + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackId); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, ref uint trackId) + { + var @this = thisVtbl.Handle; + int ret = default; + var urlPtr = (byte*) SilkMarshal.StringToPtr(url, NativeStringEncoding.LPWStr); + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (uint* trackIdPtr = &trackId) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[6])(@this, urlPtr, labelPtr, languagePtr, kind, isDefault, trackIdPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + SilkMarshal.Free((nint)urlPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, language, kind, track); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, language, kind, trackPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, track); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* languagePtr = &language) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, trackPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, track); + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, label, languagePtr, kind, trackPtr); + } + SilkMarshal.Free((nint)languagePtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, track); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, trackPtr); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + fixed (char* languagePtr = &language) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + } + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (char* labelPtr = &label) + { + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + SilkMarshal.Free((nint)languagePtr); + } + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, track); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, language, kind, trackPtr); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + fixed (char* languagePtr = &language) + { + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + } + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, track); + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + var labelPtr = (byte*) SilkMarshal.StringToPtr(label, NativeStringEncoding.LPWStr); + var languagePtr = (byte*) SilkMarshal.StringToPtr(language, NativeStringEncoding.LPWStr); + fixed (IMFTimedTextTrack** trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[7])(@this, labelPtr, languagePtr, kind, trackPtr); + } + SilkMarshal.Free((nint)languagePtr); + SilkMarshal.Free((nint)labelPtr); + return ret; + } + + /// To be documented. + public static unsafe int RemoveTrack(this ComPtr thisVtbl, IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, track); + return ret; + } + + /// To be documented. + public static int RemoveTrack(this ComPtr thisVtbl, ref IMFTimedTextTrack track) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrack* trackPtr = &track) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[8])(@this, trackPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetCueTimeOffset(this ComPtr thisVtbl, double* offset) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, offset); + return ret; + } + + /// To be documented. + public static int GetCueTimeOffset(this ComPtr thisVtbl, ref double offset) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (double* offsetPtr = &offset) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[9])(@this, offsetPtr); + } + return ret; + } + + /// To be documented. + public static int SetCueTimeOffset(this ComPtr thisVtbl, double offset) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[10])(@this, offset); + return ret; + } + + /// To be documented. + public static unsafe int GetTracks(this ComPtr thisVtbl, IMFTimedTextTrackList** tracks) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, tracks); + return ret; + } + + /// To be documented. + public static unsafe int GetTracks(this ComPtr thisVtbl, ref IMFTimedTextTrackList* tracks) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrackList** tracksPtr = &tracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[11])(@this, tracksPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetActiveTracks(this ComPtr thisVtbl, IMFTimedTextTrackList** activeTracks) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, activeTracks); + return ret; + } + + /// To be documented. + public static unsafe int GetActiveTracks(this ComPtr thisVtbl, ref IMFTimedTextTrackList* activeTracks) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrackList** activeTracksPtr = &activeTracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[12])(@this, activeTracksPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetTextTracks(this ComPtr thisVtbl, IMFTimedTextTrackList** textTracks) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textTracks); + return ret; + } + + /// To be documented. + public static unsafe int GetTextTracks(this ComPtr thisVtbl, ref IMFTimedTextTrackList* textTracks) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrackList** textTracksPtr = &textTracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[13])(@this, textTracksPtr); + } + return ret; + } + + /// To be documented. + public static unsafe int GetMetadataTracks(this ComPtr thisVtbl, IMFTimedTextTrackList** metadataTracks) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, metadataTracks); + return ret; + } + + /// To be documented. + public static unsafe int GetMetadataTracks(this ComPtr thisVtbl, ref IMFTimedTextTrackList* metadataTracks) + { + var @this = thisVtbl.Handle; + int ret = default; + fixed (IMFTimedTextTrackList** metadataTracksPtr = &metadataTracks) + { + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[14])(@this, metadataTracksPtr); + } + return ret; + } + + /// To be documented. + public static int SetInBandEnabled(this ComPtr thisVtbl, Silk.NET.Core.Bool32 enabled) + { + var @this = thisVtbl.Handle; + int ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[15])(@this, enabled); + return ret; + } + + /// To be documented. + public static Silk.NET.Core.Bool32 IsInBandEnabled(this ComPtr thisVtbl) + { + var @this = thisVtbl.Handle; + Silk.NET.Core.Bool32 ret = default; + ret = ((delegate* unmanaged[Stdcall])@this->LpVtbl[16])(@this); + return ret; + } + + /// To be documented. + public static int QueryInterface(this ComPtr thisVtbl, out ComPtr ppvObject) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + ppvObject = default; + return @this->QueryInterface(SilkMarshal.GuidPtrOf(), (void**) ppvObject.GetAddressOf()); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, void** ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ppvObject); + } + + /// To be documented. + public static unsafe int QueryInterface(this ComPtr thisVtbl, Span riid, ref void* ppvObject) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->QueryInterface(ref riid.GetPinnableReference(), ref ppvObject); + } + + /// To be documented. + public static int RegisterNotifications(this ComPtr thisVtbl, ComPtr notify) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->RegisterNotifications((IMFTimedTextNotify*) notify.Handle); + } + + /// To be documented. + public static int RegisterNotifications(this ComPtr thisVtbl, Span notify) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->RegisterNotifications(ref notify.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, IMFByteStream* byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(byteStream, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSource(this ComPtr thisVtbl, Span byteStream, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSource(ref byteStream.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(in url.GetPinnableReference(), label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, in label.GetPinnableReference(), language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, uint* trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, trackId); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, in language.GetPinnableReference(), kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static int AddDataSourceFromUrl(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string url, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, Silk.NET.Core.Bool32 isDefault, Span trackId) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddDataSourceFromUrl(url, label, language, kind, isDefault, ref trackId.GetPinnableReference()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(label, in language.GetPinnableReference(), kind, track); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(label, in language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(label, in language.GetPinnableReference(), kind, ref track); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(in label.GetPinnableReference(), language, kind, track); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(in label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(in label.GetPinnableReference(), language, kind, ref track); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(in label.GetPinnableReference(), in language.GetPinnableReference(), kind, track); + } + + /// To be documented. + public static int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(in label, in language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(in label.GetPinnableReference(), in language.GetPinnableReference(), kind, ref track); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(in label.GetPinnableReference(), language, kind, track); + } + + /// To be documented. + public static int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(in label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(in label.GetPinnableReference(), language, kind, ref track); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] char* language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, IMFTimedTextTrack** track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(label, in language.GetPinnableReference(), kind, track); + } + + /// To be documented. + public static int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] [RequiresLocation] in char language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(label, in language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static unsafe int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan language, TimedTextTrackKind kind, ref IMFTimedTextTrack* track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->AddTrack(label, in language.GetPinnableReference(), kind, ref track); + } + + /// To be documented. + public static int AddTrack(this ComPtr thisVtbl, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string label, [Flow(Silk.NET.Core.Native.FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPWStr)] string language, TimedTextTrackKind kind, ref ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->AddTrack(label, language, kind, (IMFTimedTextTrack**) track.GetAddressOf()); + } + + /// To be documented. + public static int RemoveTrack(this ComPtr thisVtbl, ComPtr track) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->RemoveTrack((IMFTimedTextTrack*) track.Handle); + } + + /// To be documented. + public static int RemoveTrack(this ComPtr thisVtbl, Span track) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->RemoveTrack(ref track.GetPinnableReference()); + } + + /// To be documented. + public static int GetCueTimeOffset(this ComPtr thisVtbl, Span offset) + { + var @this = thisVtbl.Handle; + // SpanOverloader + return @this->GetCueTimeOffset(ref offset.GetPinnableReference()); + } + + /// To be documented. + public static int GetTracks(this ComPtr thisVtbl, ref ComPtr tracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetTracks((IMFTimedTextTrackList**) tracks.GetAddressOf()); + } + + /// To be documented. + public static int GetActiveTracks(this ComPtr thisVtbl, ref ComPtr activeTracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetActiveTracks((IMFTimedTextTrackList**) activeTracks.GetAddressOf()); + } + + /// To be documented. + public static int GetTextTracks(this ComPtr thisVtbl, ref ComPtr textTracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetTextTracks((IMFTimedTextTrackList**) textTracks.GetAddressOf()); + } + + /// To be documented. + public static int GetMetadataTracks(this ComPtr thisVtbl, ref ComPtr metadataTracks) where TI0 : unmanaged, IComVtbl, IComVtbl + { + var @this = thisVtbl.Handle; + // ComPtrOverloader + return @this->GetMetadataTracks((IMFTimedTextTrackList**) metadataTracks.GetAddressOf()); + } + + /// To be documented. + public static ComPtr QueryInterface(this ComPtr thisVtbl) where TI0 : unmanaged, IComVtbl + { + var @this = thisVtbl.Handle; + // NonKhrReturnTypeOverloader + SilkMarshal.ThrowHResult(@this->QueryInterface(out ComPtr silkRet)); + return silkRet; + } + +} diff --git a/src/Microsoft/Silk.NET.MediaFoundation/Structs/VideoNormalizedRect.gen.cs b/src/Microsoft/Silk.NET.MediaFoundation/Structs/VideoNormalizedRect.gen.cs new file mode 100644 index 0000000000..484e0326a4 --- /dev/null +++ b/src/Microsoft/Silk.NET.MediaFoundation/Structs/VideoNormalizedRect.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.MediaFoundation +{ + [NativeName("Name", "MFVideoNormalizedRect")] + public unsafe partial struct VideoNormalizedRect + { + public VideoNormalizedRect + ( + float? left = null, + float? top = null, + float? right = null, + float? bottom = null + ) : this() + { + if (left is not null) + { + Left = left.Value; + } + + if (top is not null) + { + Top = top.Value; + } + + if (right is not null) + { + Right = right.Value; + } + + if (bottom is not null) + { + Bottom = bottom.Value; + } + } + + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "left")] + public float Left; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "top")] + public float Top; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "right")] + public float Right; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "bottom")] + public float Bottom; + } +}