#include <windows.h>
#include <dxcore.h>
#include <wrl.h>
#include <iostream>

int main() {
    Microsoft::WRL::ComPtr<IDXCoreAdapterFactory> factory;
    HRESULT hr = DXCoreCreateAdapterFactory(__uuidof(IDXCoreAdapterFactory), (void**)&factory);

    if (SUCCEEDED(hr)) {
        std::cout << "✅ DXCoreCreateAdapterFactory succeeded.\n";
    }
    else {
        std::cout << "❌ DXCoreCreateAdapterFactory failed. HRESULT = 0x" << std::hex << hr << "\n";
    }

    return 0;
}