How to add and call third party C++ code with DLL call

Now I have created a BlueprintFunctionLibrary class. So far I only have two functions in the .h document: loading and unloading Dll. And it works, UE5 loads and unloads. Now I’m still thinking about how to transfer the rest of the code. I’m almost new to writing code in UE

#include "MyBlueprintFunctionLibrary.h"

void* v_dllHandle;

bool UMyBlueprintFunctionLibrary::importDLL(FString folder, FString name)
{
    FString filePath = *FPaths::ProjectPluginsDir() + folder + "/" + name;

    if (FPaths::FileExists(filePath))
    {
        v_dllHandle = FPlatformProcess::GetDllHandle(*filePath); // Retrieve the DLL.
        if (v_dllHandle != NULL)
        {
            return true;
        }
    }
    return false;   // Return an error.
}

void UMyBlueprintFunctionLibrary::freeDLL()
{
    if (v_dllHandle != NULL)
    {
        FPlatformProcess::FreeDllHandle(v_dllHandle);
        v_dllHandle = NULL;
    }
}