You can use Windows API multithreading functions from C level, not from PRG level.
Please review many examples provided in these forums that use #pragma BEGINDUMP ... #pragma ENDDUMP to see how to implement calls to the Windows API functions using the C language.