Hi, I would like to call the following Windows DLL function from Nim (here the
declaration for C#):
> [DllImport("uxtheme.dll", EntryPoint = "#96", CharSet = CharSet.Unicode,
> PreserveSig = true)] internal static extern uint
> GetImmersiveColorTypeFromName(
string name);
The problem is, the function is not "exported" in the DLL, since it is not a
public API. It is present, but can only be called by ordinal number. I tried
something like:
> proc GetImmersiveColorTypeFromName*(name: cwstring): uint32 {. stdcall,
> dynlib: "uxtheme", importc: "#96" .}
but that is not supported. Is there any way to access this function from Nim,
or do I have to resort to LoadLibrary?