C#C
C#β€’7mo ago
LPeter1997

CsWin32 not generating CreateSemaphoreA

I'm using CsWin32 to generate PInvokes for win32 methods. When I specify CreateSemaphore (with or without the suffix, doesn't matter), it does not generate CreateSemaphoreA, only CreateSemaphoreW. I have a NativeMethods.json created in the project root next to NativeMethods.txt:
{
  "$schema": "https://aka.ms/CsWin32.schema.json",
  "wideCharOnly": false
}
Was this page helpful?