// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.

using static Win32.Apis;

namespace Win32.Graphics.Imaging;

public static unsafe partial class Apis
{
    public static HResult CreateWICImagingFactory(IWICImagingFactory** factory)
    {
        return CoCreateInstance(
            (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in CLSID_WICImagingFactory)),
            null,
            CLSCTX_INPROC_SERVER,
            __uuidof<IWICImagingFactory>(),
            (void**)factory);
    }
}
