C#C
C#8mo ago
LPeter1997

✅ CsWin32 not generating PInvoke for GetThreadContext

I'm using CsWin32 without issuees so far, except when I try to involve GetThreadContext (https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadcontext) which is not generated by the library for some reason. All I found is the issue talking about alignment issues for the CONTEXT structure (https://github.com/microsoft/CsWin32/issues/1415) but I can't even get to the lib generating the PInvoke for the method.
Note that OpenThread
  • which is also from the processthreads API - generates without issues.
Was this page helpful?